|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A data structure for storing namespaces and their associated name/value pairs.
| Field Summary | |
static String |
DEFAULT_NAMESPACE
The default namespace that all name/value pairs are inserted. |
| Method Summary | |
Object |
get(String namespace,
String name)
Get a value from the NamespaceMap |
String[] |
getNames(String namespace)
Get the names of all the values in the NamespaceMap |
String[] |
getNamespaces()
Get all value namespaces. |
void |
put(String namespace,
String name,
Object value)
Put an value into NamespaceMap Put an object into the NamespaceMap via a name string and namespace. |
void |
remove(String namespace,
String name)
Remove a value from the NamespaceMap |
int |
size()
Returns the number of key-value mappings in this map. |
| Methods inherited from interface com.cafesoft.core.util.Recyclable |
recycle |
| Field Detail |
public static final String DEFAULT_NAMESPACE
| Method Detail |
public void put(String namespace,
String name,
Object value)
Put an object into the NamespaceMap via a name string and namespace.
namespace - a namespace used to distinguish a name (perhaps
used by a particular application), from an identical name
used in another context. If null, then use the "default"
namespace.name - the name of the valuevalue - The value to insert into the NamespaceMap
IllegalArgumentException - thrown if the name is null
public void remove(String namespace,
String name)
namespace - the namespace of the name/value pairname - the name string of the value to remove
IllegalArgumentException - thrown if the name is null
public Object get(String namespace,
String name)
namespace - the namespace of the name/value pairname - the name string to get the value for
IllegalArgumentException - thrown if the name is nullpublic String[] getNamespaces()
public String[] getNames(String namespace)
namespace - the namespace of values to be retrieved. If null the default
namespace is used.
public int size()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||