public interface AttributeStore
getAttribute) reflects the most recently completed update operation
(setAttribute and removeAttribute).| Modifier and Type | Method and Description |
|---|---|
void |
clearAttributes()
Remove all the attributes set by the application from this attribute store.
|
Object |
getAttribute(String name)
Returns the object bound with the specified name in this store,
or null if no object is bound under the name.
|
Set<String> |
getAttributeNameSet()
Returns a
Set of the String objects containing the names of all the
objects bound to this store. |
void |
removeAttribute(String name)
Removes the object bound with the specified name from this store.
|
void |
setAttribute(String name,
Object attribute)
Binds an object to this store, using the name specified.
|
Object getAttribute(String name)
name - a string specifying the name of the objectIllegalStateException - if this method is called on an invalid attribute storeNullPointerException - if the name is nullvoid removeAttribute(String name)
name - the name of the object to remove from this storeIllegalStateException - if this method is called on an invalid attribute storevoid setAttribute(String name, Object attribute)
name - the name to which the object is bound; cannot be nullattribute - the object to be bound; cannot be nullIllegalStateException - if this method is called on an invalid attribute storeNullPointerException - if the name or attribute is nullSet<String> getAttributeNameSet()
Set of the String objects containing the names of all the
objects bound to this store.IllegalStateException - if this method is called on an invalid attribute storevoid clearAttributes()
IllegalStateException - if this method is called on an invalid attribute storeCopyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.