public class Category extends Object implements 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 String |
SCHEME_FLICKR_TAGS
Schem for FLICKR tags
|
Constructor and Description |
---|
Category(String value) |
Category(String scheme,
String label,
String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLabel()
label is the human readable label that can be displayed in end user applications.
|
String |
getScheme()
scheme is the URI that identifies the categorization scheme.
|
String |
getValue()
value of the category
|
int |
hashCode() |
String |
toString() |
public static final String SCHEME_FLICKR_TAGS
public Category(String scheme, String label, String value)
scheme
- scheme usedlabel
- label for the categoryvalue
- value of the category itempublic Category(String value)
value
- value of the category.public String getLabel()
public String getScheme()
public String getValue()
Copyright © 2020. All rights reserved.