public class AttributeGenerator
extends java.util.LinkedHashMap<java.lang.String,java.lang.String>
null are ignored when generating XML.| Constructor and Description |
|---|
AttributeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent() |
void |
put(java.lang.String key,
boolean value)
Associates the specified boolean value with the specified key in this map.
|
void |
put(java.lang.String key,
double value)
Associates the specified double value with the specified key in this map.
|
void |
put(java.lang.String key,
float value)
Associates the specified float value with the specified key in this map.
|
void |
put(java.lang.String key,
long value)
Associates the specified long value with the specified key in this map.
|
void |
put(java.lang.String key,
java.lang.Object value)
Associates the specified Object's
AbstractMap.toString() value with the
specified key in this map. |
<T extends java.lang.Enum<T>> |
put(java.lang.String key,
T value,
AttributeHelper.EnumToAttributeValue<T> enumToAttributeValue)
Associates the specified enum value with the specified key in this map.
|
void |
setContent(java.lang.String content) |
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuespublic java.lang.String getContent()
public void setContent(java.lang.String content)
public void put(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.String key,
java.lang.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 java.lang.Enum<T>> void put(java.lang.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 value