public class

BatchOperation

extends ExtensionPoint
implements Extension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.batch.BatchOperation

Class Overview

Entry and Feed extension that defines the batch operation to apply, defined by its type (BatchOperationType).

Summary

Fields
private BatchOperationType type
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
BatchOperation(BatchOperationType type)
Creates a new BatchOperation object.
BatchOperation()
Creates a BatchOperation without type.
Public Methods
void generate(XmlWriter w, ExtensionProfile extProfile)
Generates an XML representation for the extension.
static ExtensionDescription getDefaultDescription()
Returns the suggested extension description.
XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.
BatchOperationType getType()
Gets the operation type (DELETE, INSERT or UPDATE.
void setType(BatchOperationType type)
Sets the operation type.
[Expand]
Inherited Methods
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

private BatchOperationType type

Public Constructors

public BatchOperation (BatchOperationType type)

Creates a new BatchOperation object.

Parameters
type

public BatchOperation ()

Creates a BatchOperation without type.

Public Methods

public void generate (XmlWriter w, ExtensionProfile extProfile)

Generates an XML representation for the extension.

Parameters
w XML writer
extProfile Extension profile
Throws
IOException

public static ExtensionDescription getDefaultDescription ()

Returns the suggested extension description.

public XmlParser.ElementHandler getHandler (ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)

The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.

Parameters
extProfile Extension profile
namespace Extension namespace
localName Tag name, without the namespace prefix
attrs Tag attributes
Returns
  • an element handler

public BatchOperationType getType ()

Gets the operation type (DELETE, INSERT or UPDATE.

public void setType (BatchOperationType type)

Sets the operation type.

Parameters
type