org.restlet.ext.atom
Class Category

java.lang.Object
  extended by org.restlet.ext.atom.Category

public class Category
extends Object

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

Author:
Jerome Louvel

Constructor Summary
Category()
          Constructor.
Category(String label, Reference scheme, String term)
          Constructor.
 
Method Summary
 String getLabel()
          Returns the label.
 Reference getScheme()
          Returns the scheme.
 String getTerm()
          Returns the term.
 void setLabel(String label)
          Sets the label.
 void setScheme(Reference scheme)
          Sets the scheme.
 void setTerm(String term)
          Sets the term.
 void writeElement(XmlWriter writer)
          Writes the current object as an XML element using the given SAX writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Category

public Category()
Constructor.


Category

public Category(String label,
                Reference scheme,
                String term)
Constructor.

Parameters:
label - The identifier term.
scheme - The IRI that identifies a categorization scheme.
term - The human-readable label for display in end-user applications.
Method Detail

getLabel

public String getLabel()
Returns the label.

Returns:
The label.

getScheme

public Reference getScheme()
Returns the scheme.

Returns:
The scheme.

getTerm

public String getTerm()
Returns the term.

Returns:
The term.

setLabel

public void setLabel(String label)
Sets the label.

Parameters:
label - The label.

setScheme

public void setScheme(Reference scheme)
Sets the scheme.

Parameters:
scheme - The scheme.

setTerm

public void setTerm(String term)
Sets the term.

Parameters:
term - The term.

writeElement

public void writeElement(XmlWriter writer)
                  throws SAXException
Writes the current object as an XML element using the given SAX writer.

Parameters:
writer - The SAX writer.
Throws:
SAXException


Copyright © 2005-2013 Restlet.