Lizzy v1.1.1

christophedelory.rss.media
Class Category

java.lang.Object
  extended by christophedelory.rss.media.Category

public class Category
extends Object

Includes the media content in one or more categories. Allows a taxonomy to be set that gives an indication of the type of media content, and its particular contents.
Examples:

 <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">ycantparkmobile</media:category>
 

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
Category()
           
 
Method Summary
 String getLabel()
          Returns the human readable label that can be displayed in end user applications.
 String getScheme()
          Returns a string (URI) that identifies a categorization taxonomy.
 String getValue()
          Returns a forward-slash-separated string that identifies a hierarchic location in the indicated taxonomy.
 void setLabel(String label)
          Initializes the human readable label that can be displayed in end user applications.
 void setScheme(String scheme)
          Initializes a string (URI) that identifies a categorization taxonomy.
 void setValue(String value)
          Initializes a forward-slash-separated string that identifies a hierarchic location in the indicated taxonomy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Category

public Category()
Method Detail

getValue

public String getValue()
Returns a forward-slash-separated string that identifies a hierarchic location in the indicated taxonomy. Processors may establish conventions for the interpretation of categories. Examples: "Grateful Dead", "MSFT", "1765".

Returns:
the category's value. May be null if not yet initialized.
See Also:
setValue(java.lang.String)

setValue

public void setValue(String value)
Initializes a forward-slash-separated string that identifies a hierarchic location in the indicated taxonomy.

Parameters:
value - the category's value. Shall not be null.
Throws:
NullPointerException - if value is null.
See Also:
getValue()

getScheme

public String getScheme()
Returns a string (URI) that identifies a categorization taxonomy. If this attribute is not included, the default scheme is 'http://search.yahoo.com/mrss/category_schema'. Examples: "http://www.fool.com/cusips", "Syndic8".

Returns:
the category's scheme. May be null.
See Also:
setScheme(java.lang.String)

setScheme

public void setScheme(String scheme)
Initializes a string (URI) that identifies a categorization taxonomy.

Parameters:
scheme - the category's scheme. May be null.
See Also:
getScheme()

getLabel

public String getLabel()
Returns the human readable label that can be displayed in end user applications.

Returns:
a category label. May be null.
See Also:
setLabel(java.lang.String)

setLabel

public void setLabel(String label)
Initializes the human readable label that can be displayed in end user applications.

Parameters:
label - a category label. May be null.
See Also:
getLabel()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.