public interface Context
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object key) |
Object |
get(Object key) |
void |
hide(Object key)
Hides the item in the context.
|
void |
makeReadOnly()
Make the context read-only.
|
void |
put(Object key,
Object value)
Adds the item to the context.
|
Object get(Object key) throws ContextException
ContextException
boolean contains(Object key)
void put(Object key, Object value) throws IllegalStateException
key
- the key of the itemvalue
- the itemIllegalStateException
- if context is read onlyvoid hide(Object key) throws IllegalStateException
key
- the items keyIllegalStateException
- if context is read onlyvoid makeReadOnly()