public class YtAspectRatio extends AbstractExtension
| Modifier and Type | Class and Description |
|---|---|
static class |
YtAspectRatio.Value |
AbstractExtension.AttributesHandlerlocalName, 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, throwExceptionIfImmutablepublic 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)
AbstractExtensiongenerateAttributes in class AbstractExtensionprotected 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 exceptionprotected void validate()
throws java.lang.IllegalStateException
AbstractExtensionvalidate in class AbstractExtensionjava.lang.IllegalStateException - if any problems are found with the
attributes