com.sun.syndication.feed.module.mediarss.types
Class Category

java.lang.Object
  extended by com.sun.syndication.feed.module.mediarss.types.Category
All Implemented Interfaces:
java.io.Serializable

public class Category
extends java.lang.Object
implements java.io.Serializable

<media:category>

Allows a taxonomy to be set that gives an indication of the type of media content, and its particular contents. It has 2 optional attributes.

        <media:category scheme="http://search.yahoo.com/mrss/category_
        schema">music/artist/album/song</media:category>

        <media:category scheme="http://dmoz.org" label="Ace Ventura - Pet
        Detective">Arts/Movies/Titles/A/Ace_Ventura_Series/Ace_Ventura_
        -_Pet_Detective</media:category>

        <media:category scheme="urn:flickr:tags">ycantpark
        mobile</media:category>

scheme is the URI that identifies the categorization scheme. It is an optional attribute. If this attribute is not included, the default scheme is 'http://search.yahoo.com/mrss/category_schema'.

label is the human readable label that can be displayed in end user applications. It is an optional attribute.

Author:
cooper
See Also:
Serialized Form

Field Summary
static java.lang.String SCHEME_FLICKR_TAGS
          Schem for FLICKR tags
 
Constructor Summary
Category(java.lang.String value)
          Creates a new Category.
Category(java.lang.String scheme, java.lang.String label, java.lang.String value)
          Creates a new instance of Category
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getLabel()
          label is the human readable label that can be displayed in end user applications.
 java.lang.String getScheme()
          scheme is the URI that identifies the categorization scheme.
 java.lang.String getValue()
          value of the category
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCHEME_FLICKR_TAGS

public static final java.lang.String SCHEME_FLICKR_TAGS
Schem for FLICKR tags

See Also:
Constant Field Values
Constructor Detail

Category

public Category(java.lang.String scheme,
                java.lang.String label,
                java.lang.String value)
Creates a new instance of Category

Parameters:
scheme - scheme used
label - label for the category
value - value of the category item

Category

public Category(java.lang.String value)
Creates a new Category.

Parameters:
value - value of the category.
Method Detail

getLabel

public java.lang.String getLabel()
label is the human readable label that can be displayed in end user applications. It is an optional attribute.

Returns:
label is the human readable label that can be displayed in end user applications. It is an optional attribute.

getScheme

public java.lang.String getScheme()
scheme is the URI that identifies the categorization scheme. It is an optional attribute. If this attribute is not included, the default scheme is 'http://search.yahoo.com/mrss/category_schema'.

Returns:
scheme is the URI that identifies the categorization scheme. It is an optional attribute. If this attribute is not included, the default scheme is 'http://search.yahoo.com/mrss/category_schema'.

getValue

public java.lang.String getValue()
value of the category

Returns:
value of the category

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.