org.dspace.app.xmlui.wing
Class AttributeMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
org.dspace.app.xmlui.wing.AttributeMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,String>
public class AttributeMap
- extends HashMap<String,String>
A simplified Wing version of an AttributeMap. If a namespace is set it is
applied to all attributes in the Map. This is typically not what one would
expect but it makes the syntax easier for Wing Elements. Either all the
attributes come from one namespace or the other, but never two at the same
time.
- Author:
- Scott Phillips
- See Also:
- Serialized Form
|
Method Summary |
Namespace |
getNamespace()
|
String |
put(String key,
boolean value)
Another variation of the put method to convert boolean values into
strings. |
String |
put(String key,
int value)
Another variation of the put method to convert integer values into
strings. |
void |
setNamespace(Namespace namespace)
Set the namespace for all attributes contained within this map. |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
AttributeMap
public AttributeMap()
setNamespace
public void setNamespace(Namespace namespace)
- Set the namespace for all attributes contained within this map.
- Parameters:
namespace - The new namespace.
getNamespace
public Namespace getNamespace()
- Returns:
- The namespace for all the attributes contained within this map.
put
public String put(String key,
int value)
- Another variation of the put method to convert integer values into
strings.
- Parameters:
key - The attribute's name.value - The value of the attribute.
- Returns:
put
public String put(String key,
boolean value)
- Another variation of the put method to convert boolean values into
strings. The values "yes" or "no" will be used in replacement of the
boolean value.
- Parameters:
key - value -
- Returns:
Copyright © 2012 DuraSpace. All Rights Reserved.