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

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

public class RssCategory
extends java.lang.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  java.lang.String content
           
protected  java.lang.String domain
           
 
Constructor Summary
RssCategory()
           
 
Method Summary
 java.lang.String getContent()
          Gets the value of the content property.
 java.lang.String getDomain()
          Gets the value of the domain property.
 void setContent(java.lang.String value)
          Sets the value of the content property.
 void setDomain(java.lang.String value)
          Sets the value of the domain property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

protected java.lang.String content

domain

protected java.lang.String domain
Constructor Detail

RssCategory

public RssCategory()
Method Detail

getContent

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

Returns:
possible object is String

setContent

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

Parameters:
value - allowed object is String

getDomain

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

Returns:
possible object is String

setDomain

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

Parameters:
value - allowed object is String


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