public class AttributeMap
extends java.lang.Object
implements java.io.Serializable, java.lang.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 |
|---|---|
java.lang.Object |
clone()
Creates a copy of this map.
|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getAttribute(java.lang.String namespace,
java.lang.String attribute)
Returns the attribute value for the given namespace and attribute-name.
|
java.util.Map |
getAttributes(java.lang.String namespace)
Returns all attributes of the given namespace as unmodifable map.
|
java.lang.Object |
getFirstAttribute(java.lang.String attribute)
Looks up all namespaces and returns the value from the first namespace that has this attribute defined.
|
java.lang.String[] |
getNames(java.lang.String namespace)
Returns all names for the given namespace that have values in this map.
|
java.lang.String[] |
getNameSpaces()
Returns all namespaces that have values in this map.
|
int |
hashCode() |
void |
putAll(AttributeMap attributeMap) |
java.lang.Object |
setAttribute(java.lang.String namespace,
java.lang.String attribute,
java.lang.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 java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.Object setAttribute(java.lang.String namespace,
java.lang.String attribute,
java.lang.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 java.lang.Object getAttribute(java.lang.String namespace,
java.lang.String attribute)
namespace - the namespace.attribute - the attribute name.public java.lang.Object getFirstAttribute(java.lang.String attribute)
attribute - the the attribute name.public java.util.Map getAttributes(java.lang.String namespace)
namespace - the namespace for which the attributes should be returned.public java.lang.String[] getNames(java.lang.String namespace)
namespace - the namespace for which known attribute names should be looked up.public java.lang.String[] getNameSpaces()
public void putAll(AttributeMap attributeMap)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object