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

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

public class RssFeed
extends java.lang.Object

Java class for "rss" element of RSS 2.0 Specification.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="channel" type="{}rssChannel"/>
       </sequence>
       <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 

At the top level, a RSS document is a <rss> element, with a mandatory attribute called version, that specifies the version of RSS that the document conforms to. If it conforms to RSS 2.0 specification, the version attribute must be 2.0.

Subordinate to the <rss> element is a single <channel> element, which contains information about the channel (metadata) and its contents.

See Also:
RssChannel.

Field Summary
protected  RssChannel channel
           
protected  java.lang.String version
           
 
Constructor Summary
RssFeed()
           
 
Method Summary
 RssChannel getChannel()
          Gets the value of the channel property.
 java.lang.String getVersion()
          Gets the value of the version property.
 void setChannel(RssChannel value)
          Sets the value of the channel property.
 void setVersion(java.lang.String value)
          Sets the value of the version property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channel

protected RssChannel channel

version

protected java.lang.String version
Constructor Detail

RssFeed

public RssFeed()
Method Detail

getChannel

public RssChannel getChannel()
Gets the value of the channel property.

Returns:
possible object is RssChannel

setChannel

public void setChannel(RssChannel value)
Sets the value of the channel property.

Parameters:
value - allowed object is RssChannel

getVersion

public java.lang.String getVersion()
Gets the value of the version property.

Returns:
possible object is String

setVersion

public void setVersion(java.lang.String value)
Sets the value of the version property.

Parameters:
value - allowed object is String


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