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