Lizzy v1.1.1

christophedelory.atom
Class Category

java.lang.Object
  extended by christophedelory.atom.Common
      extended by christophedelory.atom.Category

public class Category
extends Common

Conveys information about a category associated with an entry or feed.

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
Category()
           
 
Method Summary
 String getLabel()
          Returns a human-readable label for display in end-user applications.
 String getScheme()
          Returns an URI that identifies a categorization scheme.
 String getTerm()
          Returns the category to which the entry or feed belongs.
 void setLabel(String label)
          Initializes a human-readable label for display in end-user applications.
 void setScheme(String scheme)
          Initializes an URI that identifies a categorization scheme.
 void setTerm(String term)
          Initializes the category to which the entry or feed belongs.
 
Methods inherited from class christophedelory.atom.Common
getBaseString, getLang, setBaseString, setLang
 
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

getTerm

public String getTerm()
Returns the category to which the entry or feed belongs. No default value.

Returns:
the category term. May be null if not yet initialized.
See Also:
setTerm(java.lang.String)

setTerm

public void setTerm(String term)
Initializes the category to which the entry or feed belongs.

Parameters:
term - the category term. Shall not be null.
Throws:
NullPointerException - if term is null.
See Also:
getTerm()

getScheme

public String getScheme()
Returns an URI that identifies a categorization scheme.

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

setScheme

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

Parameters:
scheme - a category scheme. May be null.
See Also:
getScheme()

getLabel

public String getLabel()
Returns a human-readable label for display in end-user applications.

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

setLabel

public void setLabel(String label)
Initializes a human-readable label for display 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.