phelps

Class Namespace

public class Namespace extends Object

NOT IMPLEMENTED. A nestable Hashtable. Namespace names are case sensitive and should be named with mixed case (upper and lowercase) to prevent collisions with keys at the same level, which are normalized to all uppercase. Keys must be Strings, but values can be any Object type. Separate namespaces and keys with ".", as in Bib.AUTHOR, or Http.Headers.LAST-MODIFIED

Namespaces are automatically created as something is put into them. For instance, within an empty global namespace, the statement put("Http.Headers.Last-Modified", 929387423) will create a namespace named "Http", and within that a namespace named "Headers" and finally within that a key named "LAST-MODIFIED" with the value 929387423.

A Browser uses Namespaces in both its (persistent) attributes and its (non-persistent) globals.

See Also: Browser

Method Summary
booleancontainsKey(String key)
Objectget(String key)
Objectput(String key, Object value)
booleanremove(String key)

Method Detail

containsKey

public boolean containsKey(String key)

get

public Object get(String key)

put

public Object put(String key, Object value)

remove

public boolean remove(String key)