public class ResourceProperty extends AbstractExtension
AbstractExtension.AttributesHandler
Modifier and Type | Field and Description |
---|---|
static ResourceProperty |
FALSE |
protected java.lang.String |
id |
static ResourceProperty |
TRUE |
protected java.lang.String |
value |
localName, namespace
Constructor and Description |
---|
ResourceProperty() |
ResourceProperty(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
protected void |
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
|
boolean |
equals(java.lang.Object o) |
static ExtensionDescription |
getDefaultDescription() |
java.lang.String |
getId() |
java.lang.String |
getValue() |
int |
hashCode() |
protected void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
void |
setId(java.lang.String resId) |
void |
setValue(java.lang.String value) |
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, throwExceptionIfImmutable
public static final ResourceProperty TRUE
public static final ResourceProperty FALSE
protected java.lang.String id
protected java.lang.String value
public ResourceProperty()
public ResourceProperty(java.lang.String value)
public static ExtensionDescription getDefaultDescription()
public java.lang.String getId()
public void setId(java.lang.String resId)
public java.lang.String getValue()
public void setValue(java.lang.String value)
protected void putAttributes(AttributeGenerator generator)
AbstractExtension
AbstractExtension.generate(XmlWriter,ExtensionProfile)
. Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.putAttributes
in class AbstractExtension
generator
- attribute generatorprotected void consumeAttributes(AttributeHelper helper) throws ParseException
AbstractExtension
AttributeHelper.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 AbstractExtension
helper
- attribute helperParseException
- any parsing exceptionprotected void validate()
AbstractExtension
validate
in class AbstractExtension
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object