public class

YtAspectRatio

extends AbstractExtension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.youtube.YtAspectRatio

Class Overview

Object representation for the yt:aspectRatio tag.

Summary

Nested Classes
enum YtAspectRatio.Value  
Fields
private YtAspectRatio.Value value
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
YtAspectRatio()
YtAspectRatio(YtAspectRatio.Value value)
Creates a tag and sets the aspect ratio.
Public Methods
YtAspectRatio.Value getValue()
Gets the aspect ratio.
void setValue(YtAspectRatio.Value value)
Sets the aspect ratio.
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void generateAttributes(List<XmlWriter.Attribute> attrs, AttributeGenerator generator)
Generates the attributes in the generator into the list of attributes.
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

private YtAspectRatio.Value value

Public Constructors

public YtAspectRatio ()

public YtAspectRatio (YtAspectRatio.Value value)

Creates a tag and sets the aspect ratio.

Parameters
value The aspect ratio

Public Methods

public YtAspectRatio.Value getValue ()

Gets the aspect ratio.

public void setValue (YtAspectRatio.Value value)

Sets the aspect ratio.

Parameters
value

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper

protected void generateAttributes (List<XmlWriter.Attribute> attrs, AttributeGenerator generator)

Generates the attributes in the generator into the list of attributes.

Parameters
attrs
generator

protected void validate ()

Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.

Throws
IllegalStateException