Package com.oorian.rss
Class RssCategory
java.lang.Object
com.oorian.rss.RssCategory
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 Summary
ConstructorsConstructorDescriptionRssCategory(String value) Creates a category with the specified value and no domain.RssCategory(String value, String domain) Creates a category with the specified value and domain. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()com.oorian.xml.XmlElementConverts this category to anXmlElement.
-
Constructor Details
-
RssCategory
Creates a category with the specified value and no domain.- Parameters:
value- The category text value.
-
RssCategory
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
-
getDomain
-
toXmlElement
public com.oorian.xml.XmlElement toXmlElement()Converts this category to anXmlElement.- Returns:
- An XmlElement representing this
<category>element.
-