Attributes.
IndexedAttributeHolder, NamedAttributeHolder
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | copyFrom(AttributeHolder srcAttributes)
Copies attributes from the srcAttributes to this AttributeHolder |
| public void | copyTo(AttributeHolder dstAttributes)
Copies attributes from this AttributeHolder to the dstAttributes. |
| public Object | Returns: - attribute value for the name, null if name does not exist in attributes- name of an attribute name)Return an object based on a name. |
| public Object | Returns: - attribute value for the name, null if name does not exist in attributes- name of an attribute name, Supplier<T> the initializer to be used to assign a default attribute value, in case it hasn't been assigned initializer)Return an object based on a name. |
| public AttributeBuilder | |
| public Set | |
| public IndexedAttributeAccessor | Returns: IndexedAttributeAccessor.If AttributeHolder supports attribute access by index - it will return an |
| public void | |
| public Object | Returns: attribute which has been removed- name of an attribute name)Remove a name/value object. |
| public void | setAttribute(String
- name of an attribute name, Object - value of named attribute value)Set a name/value object. |
| clear | back to summary |
|---|---|
| public void clear() Clear all the attributes. | |
| copyFrom | back to summary |
|---|---|
| public void copyFrom(AttributeHolder srcAttributes) Copies attributes from the srcAttributes to this AttributeHolder | |
| copyTo | back to summary |
|---|---|
| public void copyTo(AttributeHolder dstAttributes) Copies attributes from this AttributeHolder to the dstAttributes. | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Return an object based on a name. | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name, Supplier<T> initializer) Return an object based on a name. | |
| getAttributeBuilder | back to summary |
|---|---|
| public AttributeBuilder getAttributeBuilder() Get AttributeBuilder, associated with this holder
| |
| getAttributeNames | back to summary |
|---|---|
| public Set Return a | |
| getIndexedAttributeAccessor | back to summary |
|---|---|
| public IndexedAttributeAccessor getIndexedAttributeAccessor() If AttributeHolder supports attribute access by index - it will return an | |
| recycle | back to summary |
|---|---|
| public void recycle() Recycle AttributeHolder | |
| removeAttribute | back to summary |
|---|---|
| public Object removeAttribute(String name) Remove a name/value object. | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) Set a name/value object. | |