|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Context
Describes the behavior of a Mentawai context. A context has attributes that can be any java object. Each attribute is associated to the context by a name. A context can be invalidated.
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Gets an attribute value associated with the given name. |
boolean |
hasAttribute(java.lang.String name)
Returns true is an attribute exists with this name. |
java.util.Iterator<java.lang.String> |
keys()
Return an iterator with all the attribute names in this context. |
void |
removeAttribute(java.lang.String name)
Removes an attribute associated with the given name. |
void |
reset()
Resets this context. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an attribute value associated with the given name. |
Method Detail |
---|
java.lang.Object getAttribute(java.lang.String name)
name
- The name of the attribute.
void setAttribute(java.lang.String name, java.lang.Object value)
name
- The name of the attribute.value
- The value of the attribute.void removeAttribute(java.lang.String name)
name
- The name of the attribute.void reset()
boolean hasAttribute(java.lang.String name)
name
- The name of the attribute.
java.util.Iterator<java.lang.String> keys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |