public final class DefaultContext extends java.lang.Object implements Context
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
entries
Stores the context entries.
|
| Constructor and Description |
|---|
DefaultContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String key,
java.lang.Object value)
Adds a context entry.
|
java.lang.Object |
get(java.lang.String key)
Searches for the value with the specified attribute key in this context.
|
java.util.Collection<java.lang.String> |
getAttributeNames()
Returns the names of all attributes of this context.
|
private final java.util.Map<java.lang.String,java.lang.Object> entries
public DefaultContext()
public java.lang.Object get(java.lang.String key)
Contextpublic java.util.Collection<java.lang.String> getAttributeNames()
ContextgetAttributeNames in interface Contextpublic void add(java.lang.String key, java.lang.Object value)
key - the context keyvalue - the value for keyCopyright © 2001-2022. All Rights Reserved.