| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final DefaultContext. | |
| private final Map | |
| private final Context | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | DefaultContext(final Map<K, V>
the context data contextData, final Context the parent Context (may be null) parent)Create a Context with specified data and parent. |
| public | |
| public | DefaultContext(final Context
the parent Context (may be null) parent)Create a Context with specified parent. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public Object | Returns: the item stored in contextthe key of item key)Implements org. |
| protected final Map | |
| protected final Context | |
| public int | |
| public void | |
| public void | |
| public void |
| HIDDEN_MAKER | back to summary |
|---|---|
| private static final DefaultContext. | |
| m_contextData | back to summary |
|---|---|
| private final Map<K, V> m_contextData | |
| m_parent | back to summary |
|---|---|
| private final Context m_parent | |
| m_readOnly | back to summary |
|---|---|
| private boolean m_readOnly | |
| DefaultContext | back to summary |
|---|---|
| public DefaultContext(final Map<K, V> contextData, final Context parent) Create a Context with specified data and parent. | |
| DefaultContext | back to summary |
|---|---|
| public DefaultContext(final Map<K, V> contextData) Create a Context with specified data.
| |
| DefaultContext | back to summary |
|---|---|
| public DefaultContext(final Context parent) Create a Context with specified parent.
| |
| DefaultContext | back to summary |
|---|---|
| public DefaultContext() Create a Context with no parent. | |
| checkWriteable | back to summary |
|---|---|
| protected final void checkWriteable() throws IllegalStateException Utility method to check if context is writeable and if not throw exception.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Check for equality between two DefaultContext objects. Equality is said to be true if, and only if, the following criteria are met;
| |
| get | back to summary |
|---|---|
| public Object get(final Object key) throws ContextException Implements org. Retrieve an item from the Context.
| |
| getContextData | back to summary |
|---|---|
| protected final Map Utility method to retrieve context data.
| |
| getParent | back to summary |
|---|---|
| protected final Context getParent() Get parent context if any.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hide | back to summary |
|---|---|
| public void hide(final Object key) throws IllegalStateException Hides the item in the context. After remove(key) has been called, a get(key) will always fail, even if the parent context has such a mapping.
| |
| makeReadOnly | back to summary |
|---|---|
| public void makeReadOnly() Make the context read-only. Any attempt to write to the context via put() will result in an IllegalStateException. | |
| put | back to summary |
|---|---|
| public void put(final Object key, final Object value) throws IllegalStateException Helper method fo adding items to Context.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Hidden | back to summary |
|---|---|
| private Hidden() | |