|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.libraries.xmlns.common.AttributeMap
public class AttributeMap
A attribute map holding <namspace;name>-value pairs.
Constructor Summary | |
---|---|
AttributeMap()
Default constructor. |
|
AttributeMap(AttributeMap copy)
Creates a new attibute map using the given parameter as source for the initial values. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a copy of this map. |
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. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeMap()
public AttributeMap(AttributeMap copy)
copy
- the attribute map that should be copied.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |