|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.model.Element
com.google.gdata.model.batch.BatchId
public class BatchId
Identifies an entry inside of a batch feed.
| Field Summary | |
|---|---|
static ElementKey<java.lang.String,BatchId> |
KEY
The key for this element. |
| Constructor Summary | |
|---|---|
BatchId()
Default mutable constructor. |
|
BatchId(java.lang.String id)
Constructs a new instance with the given value. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getId()
Returns the value. |
static java.lang.String |
getIdFrom(Element element)
Convenience method for getting a batchId from an element if it's there. |
int |
hashCode()
|
boolean |
hasId()
Returns whether it has the value. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
BatchId |
setId(java.lang.String id)
Sets the value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ElementKey<java.lang.String,BatchId> KEY
| Constructor Detail |
|---|
public BatchId()
public BatchId(java.lang.String id)
id - value.| Method Detail |
|---|
public static void registerMetadata(MetadataRegistry registry)
public static java.lang.String getIdFrom(Element element)
element - element to get id from.
null if it's not defined.public java.lang.String getId()
public BatchId setId(java.lang.String id)
id - value or null to resetpublic boolean hasId()
public boolean equals(java.lang.Object obj)
equals in class Elementpublic int hashCode()
hashCode in class Elementpublic java.lang.String toString()
toString in class Element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||