|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.tools.attribute.AttributeMap
public final class AttributeMap
A default implementation for IAttributeSupport
. The API is "doubled"
to be usable as a simple replacement for a Map
.
The keys are looked up using object identity!
Constructor Summary | |
---|---|
AttributeMap()
|
|
AttributeMap(int initialCapacity)
|
Method Summary | |
---|---|
void |
clear()
|
Object |
get(Object key)
|
Object |
getAttribute(Object key)
get an attribute 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 in the context |
Object |
setAttribute(Object key,
Object value)
set the value of an attribute in the context |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeMap()
public AttributeMap(int initialCapacity)
Method Detail |
---|
public void clear()
public Object get(Object key)
public Object getAttribute(Object key)
IAttributeSupport
getAttribute
in interface IAttributeSupport
key
- the name of the attribute to get
public Object[] getKeys()
!! This is not intended to be published to client code, as this would compromise IAttributeSupport security !!
public Object put(Object key, Object o)
public Object remove(Object key)
public Object removeAttribute(Object key)
IAttributeSupport
removeAttribute
in interface IAttributeSupport
key
- the name of the attribute to remove
key
public Object setAttribute(Object key, Object value)
IAttributeSupport
setAttribute
in interface IAttributeSupport
key
- the name of the attribute to setvalue
- the new value the attribute
key
|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |