|
|||||||||
| 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 |
|---|
eq, generate, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, 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 ratio| Method 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
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 helper
ParseException - any parsing exception
protected void validate()
throws java.lang.IllegalStateException
AbstractExtension
validate in class AbstractExtensionjava.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 | ||||||||