com.google.gdata.model.batch
Class BatchOperation

java.lang.Object
  extended by com.google.gdata.model.Element
      extended by com.google.gdata.model.batch.BatchOperation

public class BatchOperation
extends Element

Describes the batch operation to apply.


Field Summary
static ElementKey<java.lang.Void,BatchOperation> KEY
          The key for this element.
static AttributeKey<BatchOperationType> TYPE
          The operation type.
 
Constructor Summary
BatchOperation()
          Default mutable constructor.
BatchOperation(BatchOperationType type)
          Constructs a new instance with the given operation type.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 BatchOperationType getType()
          Returns the operation type.
 int hashCode()
           
 boolean hasType()
          Returns whether it has the operation type.
static void registerMetadata(MetadataRegistry registry)
          Registers the metadata for this element.
 BatchOperation setType(BatchOperationType type)
          Sets the operation type.
 java.lang.String toString()
           
 
Methods inherited from class com.google.gdata.model.Element
addElement, addElement, addElement, clear, createElement, createElement, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hasTextValue, isLocked, lock, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, visit
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY

public static final ElementKey<java.lang.Void,BatchOperation> KEY
The key for this element.


TYPE

public static final AttributeKey<BatchOperationType> TYPE
The operation type.

Constructor Detail

BatchOperation

public BatchOperation()
Default mutable constructor.


BatchOperation

public BatchOperation(BatchOperationType type)
Constructs a new instance with the given operation type.

Parameters:
type - operation type.
Method Detail

registerMetadata

public static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.


getType

public BatchOperationType getType()
Returns the operation type.

Returns:
operation type

setType

public BatchOperation setType(BatchOperationType type)
Sets the operation type.

Parameters:
type - operation type or null to reset

hasType

public boolean hasType()
Returns whether it has the operation type.

Returns:
whether it has the operation type

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class Element

hashCode

public int hashCode()
Overrides:
hashCode in class Element

toString

public java.lang.String toString()
Overrides:
toString in class Element