Node
, Attributable
public abstract class BaseNode extends java.lang.Object implements Node
Attributable.Utils
Constructor | Description |
---|---|
BaseNode() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
getAttribute(java.lang.String name) |
|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributeMap() |
Gets the entire attribute map.
|
java.util.Set<java.lang.String> |
getAttributeNames() |
|
void |
removeAttribute(java.lang.String name) |
|
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
Sets an named attribute for this object.
|
public void setAttribute(java.lang.String name, java.lang.Object value)
Attributable
setAttribute
in interface Attributable
name
- the name of the attribute.value
- the new value of the attribute.public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface Attributable
name
- the name of the attribute of interest, or null if the attribute doesn't exist.public void removeAttribute(java.lang.String name)
removeAttribute
in interface Attributable
name
- name of attribute to removepublic java.util.Set<java.lang.String> getAttributeNames()
getAttributeNames
in interface Attributable
public java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
Attributable
getAttributeMap
in interface Attributable
http://code.google.com/p/jebl2/