|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wink.common.model.rss.RssCategory
public class RssCategory
Java class for "category" element of RSS 2.0 Specification.
The following schema fragment specifies the expected content contained within this class.
<complexType name="rssCategory">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="domain" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
<category> is an optional sub-element of <item>.
It has one optional attribute, domain, a string that identifies a categorization taxonomy.
The value of the element is a forward-slash-separated string that identifies a hierarchic location in the indicated taxonomy. Processors may establish conventions for the interpretation of categories. Two examples are provided below:
<category>Grateful Dead</category>
<category domain="http://www.fool.com/cusips">MSFT</category>
You may include as many category elements as you need to, for different domains, and to have an item cross-referenced in different parts of the same domain.
| Field Summary | |
|---|---|
protected String |
content
|
protected String |
domain
|
| Constructor Summary | |
|---|---|
RssCategory()
Creates an RssCategory object |
|
RssCategory(SyndCategory syndCategory)
Creates an RssCategory object out of a SyndCategory object. |
|
| Method Summary | |
|---|---|
String |
getContent()
Gets the value of the content property. |
String |
getDomain()
Gets the value of the domain property. |
void |
setContent(String value)
Sets the value of the content property. |
void |
setDomain(String value)
Sets the value of the domain property. |
SyndCategory |
toSynd(SyndCategory syndCategory)
Maps an RssCategory object into a SyndCategory object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String content
protected String domain
| Constructor Detail |
|---|
public RssCategory()
public RssCategory(SyndCategory syndCategory)
syndCategory - the SyndCategory object which has to be mapped into
an RssCategory object.| Method Detail |
|---|
public SyndCategory toSynd(SyndCategory syndCategory)
syndCategory - the SyndCategory object into which the given
RssCategory object has to be mapped into
public String getContent()
Stringpublic void setContent(String value)
value - allowed object is Stringpublic String getDomain()
Stringpublic void setDomain(String value)
value - allowed object is String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||