public class ArchiveStatus extends AbstractExtension
| Modifier and Type | Class and Description |
|---|---|
static class |
ArchiveStatus.Value
Value.
|
AbstractExtension.AttributesHandlerlocalName, namespace| Constructor and Description |
|---|
ArchiveStatus()
Default mutable constructor.
|
ArchiveStatus(ArchiveStatus.Value value)
Immutable constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
|
boolean |
equals(java.lang.Object obj) |
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
|
ArchiveStatus.Value |
getValue()
Returns the value.
|
int |
hashCode() |
boolean |
hasValue()
Returns whether it has the value.
|
protected void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
void |
setValue(ArchiveStatus.Value value)
Sets the value.
|
java.lang.String |
toString() |
protected void |
validate()
Checks the attributes to see if there are any problems.
|
disableStrictValidation, enableStrictValidation, eq, generate, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutablepublic ArchiveStatus()
public ArchiveStatus(ArchiveStatus.Value value)
value - value.public ArchiveStatus.Value getValue()
public void setValue(ArchiveStatus.Value value)
value - value or null to resetpublic boolean hasValue()
protected void validate()
AbstractExtensionvalidate in class AbstractExtensionpublic static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required - whether it is requiredrepeatable - whether it is repeatableprotected void putAttributes(AttributeGenerator generator)
AbstractExtensionAbstractExtension.generate(XmlWriter,ExtensionProfile). Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.putAttributes in class AbstractExtensiongenerator - attribute generatorprotected void consumeAttributes(AttributeHelper helper) throws ParseException
AbstractExtensionAttributeHelper.consumeContent(boolean) to consume the element's text
content. Called from AbstractExtension.getHandler(com.google.gdata.data.ExtensionProfile, java.lang.String, java.lang.String, org.xml.sax.Attributes). Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.consumeAttributes in class AbstractExtensionhelper - attribute helperParseException - any parsing exceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object