public class YAttributeMap
extends java.util.TreeMap<java.lang.String,java.lang.String>
| Constructor and Description | 
|---|
| YAttributeMap()Construct an (initially) empty attribute map. | 
| YAttributeMap(java.util.Map<java.lang.String,java.lang.String> attributes)Construct an attribute map, and initialise it with the specified attributes. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | fromJDOM(java.util.List<Attribute> jdomAttributes)Replace the stored attributes (if any) with the JDOM attributes specified. | 
| void | fromXMLElements(java.lang.String xml) | 
| java.lang.String | get(java.lang.String key)Gets the stored value for the key (as a String). | 
| boolean | getBoolean(java.lang.String key)Get the boolean value matching the stored key. | 
| DynamicValue | put(java.lang.String key,
   DynamicValue value)Adds a key + DynamicValue to the dynamic map | 
| void | remove(java.lang.String key)Removes a value the store | 
| void | set(java.util.Map<java.lang.String,java.lang.String> attributes)Replace the stored attributes (if any) with those specified. | 
| java.util.Set<Attribute> | toJDOM()Get the contents of the attribute map as a set of JDOM attributes. | 
| java.lang.String | toXML()Write the full set of attributes stored in the map, in XML attribute format,
 for insertion into an XML element. | 
| java.lang.String | toXML(java.lang.String key)Write a specified key=value pair in XML attribute format: key="value" | 
| java.lang.String | toXMLElement(java.lang.String key)Write a specified key=value pair in XML element format: <key>value</key> | 
| java.lang.String | toXMLElements()Write the full set of attributes stored in the map, in XML element format. | 
| void | transformDynamicValues(java.lang.Object owner) | 
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuespublic YAttributeMap()
public YAttributeMap(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes - a map of key=value pairs to initialise the map.public void set(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes - a map of key=value pairs to place in this map, replacing
 any previous contents.public boolean getBoolean(java.lang.String key)
key - the attribute key to retrieve the value of.public DynamicValue put(java.lang.String key, DynamicValue value)
key - the keyvalue - the DynamicValuepublic java.lang.String get(java.lang.String key)
key - the keypublic void remove(java.lang.String key)
key - the key that refers to a DynamicValuepublic java.util.Set<Attribute> toJDOM()
public void fromJDOM(java.util.List<Attribute> jdomAttributes)
jdomAttributes - a List of JDOM Attribute objects to convert to key=value
 pairs and place in this map, replacing any previous contents.public void transformDynamicValues(java.lang.Object owner)
public java.lang.String toXML(java.lang.String key)
key - the key to write out, with its corresponding value.public java.lang.String toXMLElement(java.lang.String key)
key - the key to write out, with its corresponding value.public java.lang.String toXML()
public java.lang.String toXMLElements()
public void fromXMLElements(java.lang.String xml)
Copyright © 2004-2014 The YAWL Foundation.