|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.batch.BatchInterrupted
public class BatchInterrupted
Entry extension for the element <batch:interrupted>, which marks
the batch feed as having been aborted.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
|---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
| Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
|---|
AbstractExtension.AttributesHandler |
| Field Summary |
|---|
| Fields inherited from class com.google.gdata.data.ExtensionPoint |
|---|
xmlBlob |
| Fields inherited from class com.google.gdata.data.AbstractExtension |
|---|
localName, namespace |
| Constructor Summary | |
|---|---|
BatchInterrupted()
Creates an empty object. |
|
BatchInterrupted(java.lang.String reason,
int totalCount,
int successCount,
int errorCount)
Creates and initializes a BatchInterrupted object. |
|
BatchInterrupted(java.lang.Throwable cause,
int totalCount,
int successCount,
int errorCount)
Creates and initializes a BatchInterrupted object. |
|
| Method Summary | |
|---|---|
void |
generate(com.google.gdata.util.common.xml.XmlWriter w,
ExtensionProfile extProfile)
Generates an XML representation for batch:interrupted. |
java.lang.String |
getContent()
Gets this tag content. |
ContentType |
getContentType()
Describe the content of this tag. |
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description. |
int |
getErrorCount()
Gets the number of entries that were rejected. |
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Creates an XML ElementHandler that will initialize the object based on a tag batch:interrupted parsed by the XML parser. |
java.lang.String |
getReason()
Gets a short message describing what happened. |
int |
getSkippedCount()
Gets the number of entries that were skipped. |
int |
getSuccessCount()
Gets the number of entries that were processed successfully. |
int |
getTotalCount()
Gets the total number of entries read. |
void |
setContent(java.lang.String content)
Sets this tag content. |
void |
setContentType(ContentType contentType)
Sets the content type for this tag. |
| Methods inherited from class com.google.gdata.data.AbstractExtension |
|---|
consumeAttributes, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchInterrupted(java.lang.String reason,
int totalCount,
int successCount,
int errorCount)
reason - exception that caused batch processing to stoptotalCount - number of entries parsed so far, note that
it is to be expected that totalCount >= successCount + errorCountsuccessCount - number of entries processed successfully so farerrorCount - number of entries rejected so farpublic BatchInterrupted()
getHandler(ExtensionProfile,String,String,Attributes).
public BatchInterrupted(java.lang.Throwable cause,
int totalCount,
int successCount,
int errorCount)
cause - exception that caused batch processing to stoptotalCount - number of entries parsed so far, note that
it is to be expected that totalCount >= successCount + errorCountsuccessCount - number of entries processed successfully so farerrorCount - number of entries rejected so far| Method Detail |
|---|
public static ExtensionDescription getDefaultDescription()
public java.lang.String getReason()
getReason in interface IBatchInterruptedpublic int getTotalCount()
getTotalCount in interface IBatchInterruptedpublic int getSuccessCount()
getSuccessCount in interface IBatchInterruptedpublic int getErrorCount()
getErrorCount in interface IBatchInterruptedpublic int getSkippedCount()
getSkippedCount in interface IBatchInterruptedpublic ContentType getContentType()
getContentType in interface IBatchInterruptedpublic void setContentType(ContentType contentType)
public java.lang.String getContent()
getContentType().
getContent in interface IBatchInterruptedpublic void setContent(java.lang.String content)
contentType.
public void generate(com.google.gdata.util.common.xml.XmlWriter w,
ExtensionProfile extProfile)
throws java.io.IOException
generate in interface Extensiongenerate in class AbstractExtensionw - XML writerextProfile - extension profile
java.io.IOException
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws ParseException
getHandler in interface ExtensiongetHandler in class ExtensionPointextProfile - namespace - localName - attrs - attributes of batch:interrupted
ParseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||