public class

AttributeGenerator

extends LinkedHashMap<K, V>
java.lang.Object
   ↳ java.util.AbstractMap<K, V>
     ↳ java.util.HashMap<K, V>
       ↳ java.util.LinkedHashMap<K, V>
         ↳ com.google.gdata.data.AttributeGenerator

Class Overview

Helps generate tag attributes, preserving the order of the attributes. Attributes whose the value is null are ignored when generating XML.

Summary

[Expand]
Inherited Constants
From class java.util.LinkedHashMap
From class java.util.HashMap
Fields
private String content element's text content or null for no text content
[Expand]
Inherited Fields
From class java.util.LinkedHashMap
From class java.util.HashMap
From class java.util.AbstractMap
Public Constructors
AttributeGenerator()
Public Methods
String getContent()
void put(String key, Object value)
Associates the specified Object's toString() value with the specified key in this map.
<T extends Enum<T>> void put(String key, T value, EnumToAttributeValue<T> enumToAttributeValue)
Associates the specified enum 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, boolean value)
Associates the specified boolean 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, double value)
Associates the specified double value with the specified key in this map.
void setContent(String content)
[Expand]
Inherited Methods
From class java.util.LinkedHashMap
From class java.util.HashMap
From class java.util.AbstractMap
From class java.lang.Object
From interface java.util.Map

Fields

private String content

element's text content or null for no text content

Public Constructors

public AttributeGenerator ()

Public Methods

public String getContent ()

public void put (String key, Object value)

Associates the specified Object's toString() value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.

Parameters
key Key with which the specified value is to be associated
value Object whose toString() value is to be associated with the specified key or null

public void put (String key, T value, EnumToAttributeValue<T> enumToAttributeValue)

Associates the specified enum value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.

Parameters
key Key with which the specified value is to be associated
value Enum value to be associated with the specified key or null
enumToAttributeValue Custom mapping of enum to attribute value

public void put (String key, float value)

Associates the specified float value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.

Parameters
key Key with which the specified value is to be associated
value Float value to be associated with the specified key

public void put (String key, boolean value)

Associates the specified boolean value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.

Parameters
key Key with which the specified value is to be associated
value Boolean value to be associated with the specified key

public void put (String key, long value)

Associates the specified long value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.

Parameters
key Key with which the specified value is to be associated
value Long value to be associated with the specified key

public void put (String key, double value)

Associates the specified double value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.

Parameters
key Key with which the specified value is to be associated
value Double value to be associated with the specified key

public void setContent (String content)

Parameters
content