|
|||||||||
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.youtube.YtAspectRatio
public class YtAspectRatio
Object representation for the yt:aspectRatio tag.
Nested Class Summary | |
---|---|
static class |
YtAspectRatio.Value
|
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
---|
AbstractExtension.AttributesHandler |
Field Summary |
---|
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Constructor Summary | |
---|---|
YtAspectRatio()
|
|
YtAspectRatio(YtAspectRatio.Value value)
Creates a tag and sets the aspect ratio. |
Method Summary | |
---|---|
protected void |
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper. |
protected void |
generateAttributes(java.util.List<com.google.gdata.util.common.xml.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. |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
disableStrictValidation, enableStrictValidation, eq, generate, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YtAspectRatio()
public YtAspectRatio(YtAspectRatio.Value value)
value
- the aspect ratioMethod Detail |
---|
public void setValue(YtAspectRatio.Value value)
public YtAspectRatio.Value getValue()
protected void generateAttributes(java.util.List<com.google.gdata.util.common.xml.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 helper
ParseException
- 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |