org.apache.abdera.model
Interface Category

All Superinterfaces:
Base, java.lang.Cloneable, Element, ExtensibleElement, java.io.Serializable

public interface Category
extends ExtensibleElement

Provides categorization informaton for a feed or entry

Per RFC4287:

  The "atom:category" element conveys information about a category
  associated with an entry or feed.  This specification assigns no
  meaning to the content (if any) of this element.

  atomCategory =
     element atom:category {
        atomCommonAttributes,
        attribute term { text },
        attribute scheme { atomUri }?,
        attribute label { text }?,
        undefinedContent
     }
 


Method Summary
 java.lang.String getLabel()
          RFC4287: The "label" attribute provides a human-readable label for display in end-user applications.
 java.net.URI getScheme()
          RFC4287: The "scheme" attribute is an IRI that identifies a categorization scheme.
 java.lang.String getTerm()
          RFC4287: The "term" attribute is a string that identifies the category to which the entry or feed belongs.
 void setLabel(java.lang.String label)
          RFC4287: The "label" attribute provides a human-readable label for display in end-user applications.
 void setScheme(java.lang.String scheme)
          RFC4287: The "scheme" attribute is an IRI that identifies a categorization scheme.
 void setTerm(java.lang.String term)
          RFC4287: The "term" attribute is a string that identifies the category to which the entry or feed belongs.
 
Methods inherited from interface org.apache.abdera.model.ExtensibleElement
addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension
 
Methods inherited from interface org.apache.abdera.model.Element
discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText
 
Methods inherited from interface org.apache.abdera.model.Base
clone, getFactory, writeTo, writeTo
 

Method Detail

getTerm

java.lang.String getTerm()
RFC4287: The "term" attribute is a string that identifies the category to which the entry or feed belongs. Category elements MUST have a "term" attribute.


setTerm

void setTerm(java.lang.String term)
RFC4287: The "term" attribute is a string that identifies the category to which the entry or feed belongs. Category elements MUST have a "term" attribute.


getScheme

java.net.URI getScheme()
                       throws java.net.URISyntaxException
RFC4287: The "scheme" attribute is an IRI that identifies a categorization scheme. Category elements MAY have a "scheme" attribute.

Throws:
java.net.URISyntaxException

setScheme

void setScheme(java.lang.String scheme)
               throws java.net.URISyntaxException
RFC4287: The "scheme" attribute is an IRI that identifies a categorization scheme. Category elements MAY have a "scheme" attribute.

Throws:
java.net.URISyntaxException

getLabel

java.lang.String getLabel()
RFC4287: The "label" attribute provides a human-readable label for display in end-user applications. The content of the "label" attribute is Language-Sensitive. Entities such as "&amp;" and "&lt;" represent their corresponding characters ("&" and "<", respectively), not markup. Category elements MAY have a "label" attribute.


setLabel

void setLabel(java.lang.String label)
RFC4287: The "label" attribute provides a human-readable label for display in end-user applications. The content of the "label" attribute is Language-Sensitive. Entities such as "&amp;" and "&lt;" represent their corresponding characters ("&" and "<", respectively), not markup. Category elements MAY have a "label" attribute.