Class GoogleAtom (1.35.1)

public class GoogleAtom

Beta
Utilities for working with the Atom XML of Google Data APIs.

Inheritance

Object > GoogleAtom

Static Fields

ERROR_CONTENT_TYPE

public static final String ERROR_CONTENT_TYPE

Content type used on an error formatted in XML.

Field Value
TypeDescription
String

GD_NAMESPACE

public static final String GD_NAMESPACE

GData namespace.

Field Value
TypeDescription
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.

Parameters
NameDescription
patchedObject

patched object

originalObject

original object

Returns
TypeDescription
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.

Parameters
NameDescription
feedClassClass<?>

feed data class

entryClassClass<?>

entry data class

Returns
TypeDescription
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.

Parameter
NameDescription
dataClassClass<?>

data class of key/value pairs

Returns
TypeDescription
String