public interface AttributeHolder
Attributes.IndexedAttributeHolder,
NamedAttributeHolder| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all the attributes.
|
java.lang.Object |
getAttribute(java.lang.String name)
Return an object based on a name.
|
AttributeBuilder |
getAttributeBuilder()
Get AttributeBuilder, associated with this holder
|
java.util.Set<java.lang.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. |
void |
recycle()
Recycle AttributeHolder
|
java.lang.Object |
removeAttribute(java.lang.String name)
Remove a name/value object.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set a name/value object.
|
java.lang.Object removeAttribute(java.lang.String name)
name - - name of an attributevoid setAttribute(java.lang.String name,
java.lang.Object value)
name - - name of an attributevalue - - value of named attributejava.lang.Object getAttribute(java.lang.String name)
name - - name of an attributejava.util.Set<java.lang.String> getAttributeNames()
Set of attribute names.Set of attribute namesvoid clear()
void recycle()
AttributeBuilder getAttributeBuilder()
IndexedAttributeAccessor getIndexedAttributeAccessor()
IndexedAttributeAccessor, which will make Attribute
access as fast as access to array element.IndexedAttributeAccessor.Copyright © 2013 Oracle Corporation. All Rights Reserved.