|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Context
Context is a Map of arbitrary data associated with the container.
| Method Summary | |
|---|---|
boolean |
contains(Object key)
Returns true if this context contains a value for the specified key. |
Object |
get(Object key)
Returns the value of the key. |
Map<Object,Object> |
getContextData()
Utility method to retrieve containerContext data. |
void |
hide(Object key)
Hides the item in the containerContext. |
void |
makeReadOnly()
Make the containerContext read-only. |
void |
put(Object key,
Object value)
Adds the item to the containerContext. |
| Method Detail |
|---|
boolean contains(Object key)
key - the key to search
Object get(Object key)
throws ContextException
key - the key of the value to look up.
ContextException - if the key doesn't existMap<Object,Object> getContextData()
void put(Object key,
Object value)
throws IllegalStateException
key - the key of the itemvalue - the item
IllegalStateException - if this context is read-only
void hide(Object key)
throws IllegalStateException
key - the items key
IllegalStateException - if this context is read-onlyvoid makeReadOnly()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||