org.restlet.ext.atom
Class Category

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

public class Category
extends java.lang.Object

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

Author:
Jerome Louvel

Constructor Summary
Category()
          Constructor.
Category(java.lang.String label, Reference scheme, java.lang.String term)
          Constructor.
 
Method Summary
 java.lang.String getLabel()
          Returns the label.
 Reference getScheme()
          Returns the scheme.
 java.lang.String getTerm()
          Returns the term.
 void setLabel(java.lang.String label)
          Sets the label.
 void setScheme(Reference scheme)
          Sets the scheme.
 void setTerm(java.lang.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(java.lang.String label,
                Reference scheme,
                java.lang.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 java.lang.String getLabel()
Returns the label.

Returns:
The label.

getScheme

public Reference getScheme()
Returns the scheme.

Returns:
The scheme.

getTerm

public java.lang.String getTerm()
Returns the term.

Returns:
The term.

setLabel

public void setLabel(java.lang.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(java.lang.String term)
Sets the term.

Parameters:
term - The term.

writeElement

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

Parameters:
writer - The SAX writer.
Throws:
org.xml.sax.SAXException


Copyright © 2005-2008 Noelios Technologies.