|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attributable
Interface for associating attributeNames with an object.
Nested Class Summary | |
---|---|
static class |
Attributable.Utils
|
Method Summary | |
---|---|
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. |
Method Detail |
---|
void setAttribute(java.lang.String name, java.lang.Object value)
name
- the name of the attribute.value
- the new value of the attribute.java.lang.Object getAttribute(java.lang.String name)
name
- the name of the attribute of interest, or null if the attribute doesn't exist.
void removeAttribute(java.lang.String name)
name
- name of attribute to removejava.util.Set<java.lang.String> getAttributeNames()
java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |