Class GoogleAtom (2.7.0)

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
Type Description
String

GD_NAMESPACE

public static final String GD_NAMESPACE

GData namespace.

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

Parameters
Name Description
patched Object

patched object

original Object

original object

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

Parameters
Name Description
feedClass Class<?>

feed data class

entryClass Class<?>

entry data class

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

Parameter
Name Description
dataClass Class<?>

data class of key/value pairs

Returns
Type Description
String