public class

YtGender

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

Class Overview

Object representation for the yt:gender tag

Summary

Nested Classes
enum YtGender.Value Gender Value. 
Fields
private YtGender.Value gender
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
YtGender()
Creates an empty tag.
YtGender(YtGender.Value gender)
Creates a tag and initializes its content.
Public Methods
YtGender.Value getGender()
Gets the gender.
void setGender(YtGender.Value gender)
Sets the gender.
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
[Expand]
Inherited Methods
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

private YtGender.Value gender

Public Constructors

public YtGender ()

Creates an empty tag.

public YtGender (YtGender.Value gender)

Creates a tag and initializes its content.

Parameters
gender FEMALE, MALE or null

Public Methods

public YtGender.Value getGender ()

Gets the gender.

Returns

public void setGender (YtGender.Value gender)

Sets the gender.

Parameters
gender FEMALE, MALE or null

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 putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator