|
||||||||||
| 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 have associated
Attributes.
IndexedAttributeHolder,
NamedAttributeHolder| Method Summary | |
|---|---|
void |
clear()
Clear all the attributes. |
Object |
getAttribute(String name)
Return an object based on a name. |
AttributeBuilder |
getAttributeBuilder()
Get AttributeBuilder, associated with this holder |
Set<String> |
getAttributeNames()
Return a Set of attribute names. |
IndexedAttributeAccessor |
getIndexedAttributeAccessor()
If AttributeHolder supports attribute access by index - it will return an IndexedAttributeAccessor, which will make Attribute
access as fast as access to array element. |
Object |
removeAttribute(String name)
Remove a name/value object. |
void |
setAttribute(String name,
Object value)
Set a name/value object. |
| 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 attributeObject getAttribute(String name)
name - - name of an attribute
Set<String> getAttributeNames()
Set of attribute names.
Set of attribute namesvoid clear()
AttributeBuilder getAttributeBuilder()
IndexedAttributeAccessor getIndexedAttributeAccessor()
IndexedAttributeAccessor, which will make Attribute
access as fast as access to array element.
IndexedAttributeAccessor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||