Example usage for com.google.api.client.googleapis.xml.atom AtomPatchRelativeToOriginalContent AtomPatchRelativeToOriginalContent

List of usage examples for com.google.api.client.googleapis.xml.atom AtomPatchRelativeToOriginalContent AtomPatchRelativeToOriginalContent

Introduction

In this page you can find the example usage for com.google.api.client.googleapis.xml.atom AtomPatchRelativeToOriginalContent AtomPatchRelativeToOriginalContent.

Prototype

public AtomPatchRelativeToOriginalContent(XmlNamespaceDictionary namespaceDictionary, Object originalEntry,
        Object patchedEntry) 

Source Link

Usage

From source file:cd.education.data.collector.android.picasa.GDataXmlClient.java

License:Apache License

protected final <T> T executePatchRelativeToOriginal(GenericUrl url, T original, T updated, String etag)
        throws IOException {
    AtomPatchRelativeToOriginalContent content = new AtomPatchRelativeToOriginalContent(namespaceDictionary,
            original, updated);//  w w w . j  av  a  2s  .com
    @SuppressWarnings("unchecked")
    Class<T> parseAsType = (Class<T>) updated.getClass();
    return executePatchRelativeToOriginal(url, content, parseAsType, etag);
}

From source file:de.kurashigegollub.com.google.calender.GDataXmlClient.java

License:Apache License

protected final <T> T executePatchRelativeToOriginal(GoogleUrl url, T original, T updated, String etag)
        throws IOException {
    AtomPatchRelativeToOriginalContent content = new AtomPatchRelativeToOriginalContent(namespaceDictionary,
            original, updated);//w ww  .  j av  a 2  s.  co m
    @SuppressWarnings("unchecked")
    Class<T> parseAsType = (Class<T>) updated.getClass();
    return executePatchRelativeToOriginal(url, content, parseAsType, etag);
}