public class AttributeGenerator extends LinkedHashMap<String,String>
null are ignored when generating XML.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
AttributeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContent() |
void |
put(String key,
boolean value)
Associates the specified boolean value with the specified key in this map.
|
void |
put(String key,
double value)
Associates the specified double value with the specified key in this map.
|
void |
put(String key,
float value)
Associates the specified float value with the specified key in this map.
|
void |
put(String key,
long value)
Associates the specified long value with the specified key in this map.
|
void |
put(String key,
Object value)
Associates the specified Object's
AbstractMap.toString() value with the
specified key in this map. |
<T extends Enum<T>> |
put(String key,
T value,
AttributeHelper.EnumToAttributeValue<T> enumToAttributeValue)
Associates the specified enum value with the specified key in this map.
|
void |
setContent(String content) |
clear, containsValue, get, removeEldestEntryclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic String getContent()
public void setContent(String content)
public void put(String key, long value)
key - key with which the specified value is to be associatedvalue - long value to be associated with the specified keypublic void put(String key, boolean value)
key - key with which the specified value is to be associatedvalue - boolean value to be associated with the specified keypublic void put(String key, float value)
key - key with which the specified value is to be associatedvalue - float value to be associated with the specified keypublic void put(String key, double value)
key - key with which the specified value is to be associatedvalue - double value to be associated with the specified keypublic void put(String key, Object value)
AbstractMap.toString() value with the
specified key in this map. If the map previously contained a mapping for
this key, the old value is replaced.key - key with which the specified value is to be associatedvalue - Object whose AbstractMap.toString() value is to be associated
with the specified key or nullpublic <T extends Enum<T>> void put(String key, T value, AttributeHelper.EnumToAttributeValue<T> enumToAttributeValue)
key - key with which the specified value is to be
associatedvalue - enum value to be associated with the specified
key or nullenumToAttributeValue - custom mapping of enum to attribute valueCopyright © 2012. All Rights Reserved.