public final class AttributeMap extends Object implements IAttributeSupport
IAttributeSupport. The API is "doubled"
to be usable as a simple replacement for a Map.
null is not a legal key.
| Constructor and Description |
|---|
AttributeMap() |
AttributeMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
AttributeMap |
copy() |
Object |
get(Object key) |
Object |
getAttribute(Object key)
Get an attribute value from the context
|
Object[] |
getKeys()
The keys used in this attribute lookup map.
|
Object |
put(Object key,
Object o) |
Object |
remove(Object key) |
Object |
removeAttribute(Object key)
Remove an attribute binding in the context
|
Object |
setAttribute(Object key,
Object value)
Set the value of an attribute in the context
|
public AttributeMap()
public AttributeMap(int initialCapacity)
public void clear()
public AttributeMap copy()
public Object getAttribute(Object key)
IAttributeSupportgetAttribute in interface IAttributeSupportkey - the name of the attribute to getkeypublic Object[] getKeys()
!! This is not intended to be published to client code, as this would
compromise IAttributeSupport security !!
public Object removeAttribute(Object key)
IAttributeSupportremoveAttribute in interface IAttributeSupportkey - the name of the attribute to removekeypublic Object setAttribute(Object key, Object value)
IAttributeSupportsetAttribute in interface IAttributeSupportkey - the name of the attribute to setvalue - the new value the attributekeyCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.