public class

BatchId

extends Object
implements Extension
java.lang.Object
   ↳ com.google.gdata.data.batch.BatchId

Class Overview

Entry extension for <batch:id> tags.

Summary

Fields
private String id
Public Constructors
BatchId(String id)
Creates a BatchId object.
BatchId()
Creates a BatchId object without ID.
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)
Gets an XML element handler for the extension.
String getId()
Gets the id.
static String getIdFrom(BaseEntry<?> entry)
Convenience method for getting a batchId from an entry if it's there.
void setId(String id)
Sets the id.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

private String id

Public Constructors

public BatchId (String id)

Creates a BatchId object.

Parameters
id

public BatchId ()

Creates a BatchId object without ID.

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)

Gets an XML element handler for the extension.

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

public String getId ()

Gets the id.

public static String getIdFrom (BaseEntry<?> entry)

Convenience method for getting a batchId from an entry if it's there.

Parameters
entry
Returns
  • the id or null if it's not defined

public void setId (String id)

Sets the id.

Parameters
id