|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Specifies state and transition access to the context data.
Method Summary | |
boolean |
containsValue(String aKey)
Determines if the specified value exists in the context set. |
Object |
getValue(String aKey)
Retrieves the value mapped by aKey . |
void |
removeValue(String aKey)
Removes the value mapped by aKey . |
void |
setValue(String aKey,
Object aValue)
Sets the specified key-value under the local context. |
void |
updateValue(String aKey,
Object aValue)
Updates the value mapped by aKey . |
Method Detail |
public Object getValue(String aKey) throws ValueNotFoundException
aKey
. If the value is not found
in the local context then ancestor contexts are searched including the
root context.
ValueNotFoundException
- if the key-value cannot be found.public void setValue(String aKey, Object aValue)
public void removeValue(String aKey) throws ValueNotFoundException
aKey
. If the value is not found
in the local context, an exception is thrown.
ValueNotFoundException
- if the key-value cannot be found in the local context.public void updateValue(String aKey, Object aValue) throws ValueNotFoundException
aKey
. If the value is not found
in the local context then ancestor contexts are searched including the
root context. The value will be updated at the context level in which
it is found.
ValueNotFoundException
- if the key-value cannot be found.public boolean containsValue(String aKey)
true
if the value is found, otherwise false
.
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |