Class Category

  • All Implemented Interfaces:
    Serializable

    public class Category
    extends Object
    implements 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.

    See Also:
    Serialized Form
    • Constructor Detail

      • Category

        public Category​(String scheme,
                        String label,
                        String value)
        Parameters:
        scheme - scheme used
        label - label for the category
        value - value of the category item
      • Category

        public Category​(String value)
        Parameters:
        value - value of the category.
    • Method Detail

      • getLabel

        public 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 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 String getValue()
        value of the category
        Returns:
        value of the category
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object