org.codehaus.plexus.context
public interface Context
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object key)
Returns true if the map or the parent map contains the key.
|
java.lang.Object |
get(java.lang.Object key)
Returns the value of the key.
|
java.util.Map |
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.
|
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 exist.java.util.Map getContextData()
boolean contains(java.lang.Object key)
key
- The key to search for.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 containerContext is read onlyvoid hide(java.lang.Object key) throws java.lang.IllegalStateException
key
- the items keyjava.lang.IllegalStateException
- if containerContext is read onlyvoid makeReadOnly()
Copyright © 2014. All Rights Reserved.