public interface AttributeAccessor
| Modifier and Type | Method and Description | 
|---|---|
| String[] | attributeNames()Return the names of all attributes. | 
| Object | getAttribute(String name)Get the value of the attribute identified by  name. | 
| boolean | hasAttribute(String name)Return  trueif the attribute identified bynameexists. | 
| Object | removeAttribute(String name)Remove the attribute identified by  nameand return its value. | 
| void | setAttribute(String name,
            Object value)Set the attribute defined by  nameto the suppliedvalue. | 
void setAttribute(String name, @Nullable Object value)
name to the supplied value.
 If value is null, the attribute is removed.
 In general, users should take care to prevent overlaps with other metadata attributes by using fully-qualified names, perhaps using class or package names as prefix.
name - the unique attribute keyvalue - the attribute value to be attached@Nullable Object getAttribute(String name)
name.
 Return null if the attribute doesn't exist.name - the unique attribute key@Nullable Object removeAttribute(String name)
name and return its value.
 Return null if no attribute under name is found.name - the unique attribute keyboolean hasAttribute(String name)
true if the attribute identified by name exists.
 Otherwise return false.name - the unique attribute keyString[] attributeNames()