|
||||||||||
| 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 | |
|---|---|
Object |
getAttribute(String name)
Gets an attribute value associated with the given name. |
boolean |
hasAttribute(String name)
Returns true is an attribute exists with this name. |
Iterator<String> |
keys()
Return an iterator with all the attribute names in this context. |
void |
removeAttribute(String name)
Removes an attribute associated with the given name. |
void |
reset()
Resets this context. |
void |
setAttribute(String name,
Object value)
Sets an attribute value associated with the given name. |
| Method Detail |
|---|
Object getAttribute(String name)
name - The name of the attribute.
void setAttribute(String name,
Object value)
name - The name of the attribute.value - The value of the attribute.void removeAttribute(String name)
name - The name of the attribute.void reset()
boolean hasAttribute(String name)
name - The name of the attribute.
Iterator<String> keys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||