|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeHolder
Interface declares common functionality for objects, which could have associated attributes.
Method Summary | |
---|---|
Object |
getAttribute(String name)
Return an object based on a name. |
Map<String,Object> |
getAttributes()
Return a Map of attribute name/value pairs. |
Object |
removeAttribute(String name)
Remove a name/value object. |
void |
setAttribute(String name,
Object value)
Set a name/value object. |
void |
setAttributes(Map<String,Object> attributes)
Set a Map of attribute name/value pairs. |
Method Detail |
---|
Object removeAttribute(String name)
name
- - name of an attribute
void setAttribute(String name, Object value)
name
- - name of an attributevalue
- - value of named attributevoid setAttributes(Map<String,Object> attributes)
Map
of attribute name/value pairs.
Old AttributeHolder
values will not be available.
Later changes of this Map
will lead to changes to the current
AttributeHolder
.
attributes
- - map of name/value pairsObject getAttribute(String name)
name
- - name of an attribute
Map<String,Object> getAttributes()
Map
of attribute name/value pairs.
Updates, performed on the returned Map
will be reflected in
this AttributeHolder
Map
of attribute name/value pairs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |