org.apache.wink.common.model.rss
Class RssCategory

java.lang.Object
  extended by org.apache.wink.common.model.rss.RssCategory

public class RssCategory
extends Object

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> sub-element of <item>

<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

content

protected String content

domain

protected String domain
Constructor Detail

RssCategory

public RssCategory()
Creates an RssCategory object


RssCategory

public RssCategory(SyndCategory syndCategory)
Creates an RssCategory object out of a SyndCategory object. Used for mapping Syndication Object Model into RSS.

Parameters:
syndCategory - the SyndCategory object which has to be mapped into an RssCategory object.
Method Detail

toSynd

public SyndCategory toSynd(SyndCategory syndCategory)
Maps an RssCategory object into a SyndCategory object. Used for mapping RSS into Syndication Object Model.

Parameters:
syndCategory - the SyndCategory object into which the given RssCategory object has to be mapped into
Returns:
the SyndCategory object into which the given RssCategory object has been mapped into

getContent

public String getContent()
Gets the value of the content property.

Returns:
possible object is String

setContent

public void setContent(String value)
Sets the value of the content property.

Parameters:
value - allowed object is String

getDomain

public String getDomain()
Gets the value of the domain property.

Returns:
possible object is String

setDomain

public void setDomain(String value)
Sets the value of the domain property.

Parameters:
value - allowed object is String


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.