org.apache.empire.commons
Class Attributes
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,Object>
org.apache.empire.commons.Attributes
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,Object>
public class Attributes
- extends LinkedHashMap<String,Object>
This class holds a map of objects which are identified by a case insensitive key string.
- See Also:
- Serialized Form
Attributes
public Attributes()
get
public Object get(String key)
- Parameters:
key
- the attribute
- Returns:
- the attribute value
get
public Object get(Object key)
- Specified by:
get
in interface Map<String,Object>
- Overrides:
get
in class LinkedHashMap<String,Object>
put
public Object put(String key,
Object v)
- Specified by:
put
in interface Map<String,Object>
- Overrides:
put
in class HashMap<String,Object>
set
public void set(String name,
Object object)
- Parameters:
name
- the attributeobject
- the attribute value
addXml
public void addXml(Element element,
long flags)
- Parameters:
element
- the XMLElement to which to append the optionsflags
- options (currently unused)
Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.