public class

MediaCategory

extends AbstractExtension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.media.mediarss.MediaCategory

Class Overview

<media:category>. See description on http://search.yahoo.com/mrss.

Summary

Constants
String DEFAULT_SCHEME Default scheme as defined by the specification.
Fields
private String label
private String scheme
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
MediaCategory()
Creates an empty category tag.
MediaCategory(String scheme, String content)
Creates an initializes a category tag.
Public Methods
String getContent()
String getLabel()
String getScheme()
void setContent(String content)
void setLabel(String label)
void setScheme(String scheme)
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.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

public static final String DEFAULT_SCHEME

Default scheme as defined by the specification. This scheme is defined on : http://search.yahoo.com/mrss/category_schema

Constant Value: "http://search.yahoo.com/mrss/category_schema"

Fields

private String label

private String scheme

Public Constructors

public MediaCategory ()

Creates an empty category tag.

public MediaCategory (String scheme, String content)

Creates an initializes a category tag.

Parameters
scheme
content

Public Methods

public String getContent ()

public String getLabel ()

public String getScheme ()

public void setContent (String content)

Parameters
content

public void setLabel (String label)

Parameters
label

public void setScheme (String scheme)

Parameters
scheme

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