public interface Context
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean contains(Object key)
key - the key to searchObject 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 itemIllegalStateException - if this context is read-onlyvoid hide(Object key) throws IllegalStateException
key - the items keyIllegalStateException - if this context is read-onlyvoid makeReadOnly()
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.