|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.common.model.rss.RssFeed
public class RssFeed
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.
RssChannel.
Field Summary | |
---|---|
protected RssChannel |
channel
|
protected java.lang.String |
version
|
Constructor Summary | |
---|---|
RssFeed()
Creates an RssFeed object |
|
RssFeed(SyndFeed syndFeed)
Creates an RssFeed object out of a SyndFeed object. |
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. |
SyndFeed |
toSynd(SyndFeed syndFeed)
Maps RssFeed into Syndication Object Model (SyndFeed). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RssChannel channel
protected java.lang.String version
Constructor Detail |
---|
public RssFeed()
public RssFeed(SyndFeed syndFeed)
syndFeed
- the SyndFeed object which has to be mapped into an RSS
objectMethod Detail |
---|
public SyndFeed toSynd(SyndFeed syndFeed)
... // perform a GET on the RSS resource. The resource will be returned as an Rss object RssFeed rssFeed = resource.accept(MediaType.APPLICATION_XML).get(RssFeed.class); // Map RSS into SyndFeed SyndFeed syndFeed = new SyndFeed(); syndFeed = rssFeed.toSynd(syndFeed); // Now access RSS using SyndFeed APIs ...
syndFeed
- the SyndFeed object into which the given RSS object has to be mapped into
public RssChannel getChannel()
RssChannel
public void setChannel(RssChannel value)
value
- allowed object is RssChannel
public java.lang.String getVersion()
String
public void setVersion(java.lang.String value)
value
- allowed object is String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |