public class

BatchId

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

Class Overview

Identifies an entry inside of a batch feed.

Summary

Fields
public static final ElementKey<String, BatchId> KEY The key for this element.
[Expand]
Inherited Fields
From class com.google.gdata.model.Element
Public Constructors
BatchId()
Default mutable constructor.
BatchId(String id)
Constructs a new instance with the given value.
Public Methods
boolean equals(Object obj)
String getId()
Returns the value.
static String getIdFrom(Element element)
Convenience method for getting a batchId from an element if it's there.
boolean hasId()
Returns whether it has the value.
int hashCode()
static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
BatchId setId(String id)
Sets the value.
String toString()
[Expand]
Inherited Methods
From class com.google.gdata.model.Element
From class java.lang.Object

Fields

public static final ElementKey<String, BatchId> KEY

The key for this element.

Public Constructors

public BatchId ()

Default mutable constructor.

public BatchId (String id)

Constructs a new instance with the given value.

Parameters
id Value.

Public Methods

public boolean equals (Object obj)

Parameters
obj

public String getId ()

Returns the value.

Returns
  • value

public static String getIdFrom (Element element)

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

Parameters
element Element to get id from.
Returns
  • the id or null if it's not defined.

public boolean hasId ()

Returns whether it has the value.

Returns
  • whether it has the value

public int hashCode ()

public static void registerMetadata (MetadataRegistry registry)

Registers the metadata for this element.

Parameters
registry

public BatchId setId (String id)

Sets the value.

Parameters
id Value or null to reset

public String toString ()