|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<java.lang.String,java.lang.String>
com.google.gdata.data.AttributeGenerator
public class AttributeGenerator
Helps generate tag attributes, preserving the order of the attributes.
Attributes whose the value is null
are ignored when generating XML.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
AttributeGenerator()
|
Method Summary | ||
---|---|---|
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. |
|
|
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)
|
Methods inherited from class java.util.LinkedHashMap |
---|
clear, containsValue, get, removeEldestEntry |
Methods inherited from class java.util.HashMap |
---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
---|
public AttributeGenerator()
Method Detail |
---|
public 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 null
public <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 null
enumToAttributeValue
- custom mapping of enum to attribute value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |