com.google.api.client.googleapis.xml.atom
Class GData

java.lang.Object
  extended by com.google.api.client.googleapis.xml.atom.GData

public class GData
extends Object

Utilities for working with the Atom XML of Google Data API's.

Since:
1.0
Author:
Yaniv Inbar

Method Summary
static ArrayMap<String,Object> computePatch(Object patched, Object original)
           
static ArrayMap<String,Object> computePatchInternal(com.google.api.client.googleapis.xml.atom.GData.FieldsMask fieldsMask, Object patchedObject, Object originalObject)
           
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.
static String getFieldsFor(Class<?> dataClass)
          Returns the fields mask to use for the given data class of key/value pairs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFieldsFor

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.


getFeedFields

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.


computePatch

public static ArrayMap<String,Object> computePatch(Object patched,
                                                   Object original)

computePatchInternal

public static ArrayMap<String,Object> computePatchInternal(com.google.api.client.googleapis.xml.atom.GData.FieldsMask fieldsMask,
                                                           Object patchedObject,
                                                           Object originalObject)


Copyright © 2010 Google. All Rights Reserved.