Class Category


  • public class Category
    extends java.lang.Object
    Conveys information about a category associated with an entry or feed.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String label
      The human-readable label for display in end-user applications.
      private Reference scheme
      The IRI that identifies a categorization scheme.
      private java.lang.String term
      The identifier term.
    • Constructor Summary

      Constructors 
      Constructor Description
      Category()
      Constructor.
      Category​(java.lang.String label, Reference scheme, java.lang.String term)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Field Detail

      • label

        private volatile java.lang.String label
        The human-readable label for display in end-user applications.
      • scheme

        private volatile Reference scheme
        The IRI that identifies a categorization scheme.
      • term

        private volatile java.lang.String term
        The identifier term.
    • 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