|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HasAttributes
Interface that declares support for arbitrary attributes that can be attached to the object (servlet style).
| Method Summary | ||
|---|---|---|
Object |
getAttribute(String name)
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists. |
|
|
getAttribute(String name,
Class<T> clazz)
Returns the value of the named attribute typed to the specified class, or null if no attribute of
the given name exists. |
|
Iterator<String> |
getAttributeNames()
Returns an Iterator containing the names of the attributes available to this Simon. |
|
Map<String,Object> |
getCopyAsSortedMap()
Returns copy of attributes as a sorted map, this can be used further for operations like toString. |
|
void |
removeAttribute(String name)
Removes an attribute from this Simon. |
|
void |
setAttribute(String name,
Object value)
Stores an attribute in this Simon. |
|
| Method Detail |
|---|
void setAttribute(String name,
Object value)
name - a String specifying the name of the attributevalue - the Object to be storedObject getAttribute(String name)
name - a String specifying the name of the attribute
void removeAttribute(String name)
name - a String specifying the name of the attribute to removeIterator<String> getAttributeNames()
Map<String,Object> getCopyAsSortedMap()
toString.
<T> T getAttribute(String name,
Class<T> clazz)
null if no attribute of
the given name exists.
name - a String specifying the name of the attribute
null if the attribute does not exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||