public class Category
extends java.lang.Object
implements java.io.Serializable
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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SCHEME_FLICKR_TAGS
Schem for FLICKR tags
|
| Constructor and Description |
|---|
Category(java.lang.String value) |
Category(java.lang.String scheme,
java.lang.String label,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public static final java.lang.String SCHEME_FLICKR_TAGS
public Category(java.lang.String scheme,
java.lang.String label,
java.lang.String value)
scheme - scheme usedlabel - label for the categoryvalue - value of the category itempublic Category(java.lang.String value)
value - value of the category.public java.lang.String getLabel()
public java.lang.String getScheme()
public java.lang.String getValue()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2025. All rights reserved.