Class RssCategory

java.lang.Object
com.oorian.rss.RssCategory

public class RssCategory extends Object
Represents an RSS <category> element with an optional domain attribute.

Categories can be applied to both channels and items. The optional domain attribute identifies a categorization taxonomy.

Usage:


 RssCategory category = new RssCategory("Technology");
 RssCategory withDomain = new RssCategory("Java", "http://example.com/categories");
 
Since:
0.1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • RssCategory

      public RssCategory(String value)
      Creates a category with the specified value and no domain.
      Parameters:
      value - The category text value.
    • RssCategory

      public RssCategory(String value, String domain)
      Creates a category with the specified value and domain.
      Parameters:
      value - The category text value.
      domain - The domain URI identifying the categorization taxonomy.
  • Method Details

    • getValue

      public String getValue()
    • getDomain

      public String getDomain()
    • toXmlElement

      public com.oorian.xml.XmlElement toXmlElement()
      Converts this category to an XmlElement.
      Returns:
      An XmlElement representing this <category> element.