public class

BatchOperation

extends Element
java.lang.Object
   ↳ com.google.gdata.model.Element
     ↳ com.google.gdata.model.batch.BatchOperation

Class Overview

Describes the batch operation to apply.

Summary

Fields
public static final ElementKey<Void, BatchOperation> KEY The key for this element.
public static final AttributeKey<BatchOperationType> TYPE The operation type.
[Expand]
Inherited Fields
From class com.google.gdata.model.Element
Public Constructors
BatchOperation()
Default mutable constructor.
BatchOperation(BatchOperationType type)
Constructs a new instance with the given operation type.
Public Methods
boolean equals(Object obj)
BatchOperationType getType()
Returns the operation type.
boolean hasType()
Returns whether it has the operation type.
int hashCode()
static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
BatchOperation setType(BatchOperationType type)
Sets the operation type.
String toString()
[Expand]
Inherited Methods
From class com.google.gdata.model.Element
From class java.lang.Object

Fields

public static final ElementKey<Void, BatchOperation> KEY

The key for this element.

public static final AttributeKey<BatchOperationType> TYPE

The operation type.

Public Constructors

public BatchOperation ()

Default mutable constructor.

public BatchOperation (BatchOperationType type)

Constructs a new instance with the given operation type.

Parameters
type Operation type.

Public Methods

public boolean equals (Object obj)

Parameters
obj

public BatchOperationType getType ()

Returns the operation type.

Returns
  • operation type

public boolean hasType ()

Returns whether it has the operation type.

Returns
  • whether it has the operation type

public int hashCode ()

public static void registerMetadata (MetadataRegistry registry)

Registers the metadata for this element.

Parameters
registry

public BatchOperation setType (BatchOperationType type)

Sets the operation type.

Parameters
type Operation type or null to reset

public String toString ()