|
|||||||||
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(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, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, 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 + errorCount
successCount
- 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 + errorCount
successCount
- number of entries processed successfully so farerrorCount
- number of entries rejected so farMethod Detail |
---|
public static ExtensionDescription getDefaultDescription()
public java.lang.String getReason()
getReason
in interface IBatchInterrupted
public int getTotalCount()
getTotalCount
in interface IBatchInterrupted
public int getSuccessCount()
getSuccessCount
in interface IBatchInterrupted
public int getErrorCount()
getErrorCount
in interface IBatchInterrupted
public int getSkippedCount()
getSkippedCount
in interface IBatchInterrupted
public ContentType getContentType()
getContentType
in interface IBatchInterrupted
public void setContentType(ContentType contentType)
public java.lang.String getContent()
getContentType()
.
getContent
in interface IBatchInterrupted
public void setContent(java.lang.String content)
contentType
.
public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generate
in interface Extension
generate
in class AbstractExtension
w
- 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 Extension
getHandler
in class ExtensionPoint
extProfile
- namespace
- localName
- attrs
- attributes of batch:interrupted
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |