public class AttributeMap extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
AttributeMap()
Default constructor.
|
AttributeMap(AttributeMap copy)
Creates a new attibute map using the given parameter as source for the initial values.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a copy of this map.
|
Object |
getAttribute(String namespace,
String attribute)
Returns the attribute value for the given namespace and attribute-name.
|
Map |
getAttributes(String namespace)
Returns all attributes of the given namespace as unmodifable map.
|
Object |
getFirstAttribute(String attribute)
Looks up all namespaces and returns the value from the first namespace that has this attribute defined.
|
String[] |
getNames(String namespace)
Returns all names for the given namespace that have values in this map.
|
String[] |
getNameSpaces()
Returns all namespaces that have values in this map.
|
Object |
setAttribute(String namespace,
String attribute,
Object value)
Defines the attribute for the given namespace and attribute name.
|
public AttributeMap()
public AttributeMap(AttributeMap copy)
copy - the attribute map that should be copied.public Object clone()
public Object setAttribute(String namespace, String attribute, Object value)
namespace - the namespace under which the value should be stored.attribute - the attribute name under which the value should be stored within the namespace.value - the value.public Object getAttribute(String namespace, String attribute)
namespace - the namespace.attribute - the attribute name.public Object getFirstAttribute(String attribute)
attribute - the the attribute name.public Map getAttributes(String namespace)
namespace - the namespace for which the attributes should be returned.public String[] getNames(String namespace)
namespace - the namespace for which known attribute names should be looked up.public String[] getNameSpaces()