public class

YouTubeMediaCredit

extends MediaCredit
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.media.mediarss.MediaCredit
       ↳ com.google.gdata.data.youtube.YouTubeMediaCredit

Class Overview

Adds attributes to media:credit.

Summary

Nested Classes
enum YouTubeMediaCredit.Type Partner type. 
[Expand]
Inherited Constants
From class com.google.gdata.data.media.mediarss.MediaCredit
Fields
private String typeString
[Expand]
Inherited Fields
From class com.google.gdata.data.media.mediarss.MediaCredit
From class com.google.gdata.data.AbstractExtension
Public Constructors
YouTubeMediaCredit()
Public Methods
YouTubeMediaCredit.Type getType()
Returns the type as an enum.
String getTypeString()
Returns the type as a string.
void setType(YouTubeMediaCredit.Type type)
Sets the type as an enum.
void setTypeString(String typeString)
Sets the type as a string.
Protected Methods
void consumeAttributes(AttributeHelper attrsHelper)
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.media.mediarss.MediaCredit
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

private String typeString

Public Constructors

public YouTubeMediaCredit ()

Public Methods

public YouTubeMediaCredit.Type getType ()

Returns the type as an enum.

Returns
  • a type or null if no type was set or if the type is unknown

public String getTypeString ()

Returns the type as a string.

public void setType (YouTubeMediaCredit.Type type)

Sets the type as an enum.

Parameters
type

public void setTypeString (String typeString)

Sets the type as a string.

Parameters
typeString

Protected Methods

protected void consumeAttributes (AttributeHelper attrsHelper)

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
attrsHelper 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