public interface Context
Modifier and Type | Method and Description |
---|---|
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.
|
boolean contains(java.lang.Object key)
key
- the key to searchjava.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 itemjava.lang.IllegalStateException
- if this context is read-onlyvoid hide(java.lang.Object key) throws java.lang.IllegalStateException
key
- the items keyjava.lang.IllegalStateException
- if this context is read-onlyvoid makeReadOnly()