public class GoogleAtomBeta
Utilities for working with the Atom XML of Google Data APIs.
Static Fields
ERROR_CONTENT_TYPE
public static final String ERROR_CONTENT_TYPEContent type used on an error formatted in XML.
| Type | Description |
| String |
GD_NAMESPACE
public static final String GD_NAMESPACEGData namespace.
| Type | Description |
| String |
Static Methods
computePatch(Object patched, Object original)
public static Map<String,Object> computePatch(Object patched, Object original)Compute the patch object of key/value pairs from the given original and patched objects, adding
a @gd:fields key for the fields mask.
| Name | Description |
| patched | Objectpatched object |
| original | Objectoriginal object |
| Type | Description |
| Map<String,Object> | patch object of key/value pairs |
getFeedFields(Class<?> feedClass, Class<?> entryClass)
public static String getFeedFields(Class<?> feedClass, Class<?> entryClass)Returns the fields mask to use for the given data class of key/value pairs for the feed class and for the entry class. This should only be used if the feed class does not contain the entry class as a field. The data classes cannot be a Map, GenericData or a Collection.
| Name | Description |
| feedClass | Class<?>feed data class |
| entryClass | Class<?>entry data class |
| Type | Description |
| String |
getFieldsFor(Class<?> dataClass)
public static String getFieldsFor(Class<?> dataClass)Returns the fields mask to use for the given data class of key/value pairs. It cannot be a Map, GenericData or a Collection.
| Name | Description |
| dataClass | Class<?>data class of key/value pairs |
| Type | Description |
| String |