public class YtAspectRatio extends AbstractExtension
Modifier and Type | Class and Description |
---|---|
static class |
YtAspectRatio.Value |
AbstractExtension.AttributesHandler
localName, namespace
Constructor and Description |
---|
YtAspectRatio() |
YtAspectRatio(YtAspectRatio.Value value)
Creates a tag and sets the aspect ratio.
|
Modifier and Type | Method and Description |
---|---|
protected void |
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
|
protected void |
generateAttributes(java.util.List<XmlWriter.Attribute> attrs,
AttributeGenerator generator)
Generates the attributes in the generator into the list of attributes.
|
YtAspectRatio.Value |
getValue()
Gets the aspect ratio.
|
void |
setValue(YtAspectRatio.Value value)
Sets the aspect ratio.
|
protected void |
validate()
Checks the attributes to see if there are any problems.
|
disableStrictValidation, enableStrictValidation, eq, generate, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable
public YtAspectRatio()
public YtAspectRatio(YtAspectRatio.Value value)
value
- the aspect ratiopublic void setValue(YtAspectRatio.Value value)
public YtAspectRatio.Value getValue()
protected void generateAttributes(java.util.List<XmlWriter.Attribute> attrs, AttributeGenerator generator)
AbstractExtension
generateAttributes
in class AbstractExtension
protected 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() throws java.lang.IllegalStateException
AbstractExtension
validate
in class AbstractExtension
java.lang.IllegalStateException
- if any problems are found with the
attributes