|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ecf.provider.rss.channel.RssFeed
public class RssFeed
Represents a particular RSS feed.
Field Summary | |
---|---|
static java.lang.String |
SSE_NAMESPACE
|
static java.lang.String |
SSE_NAMESPACE_URI
|
Constructor Summary | |
---|---|
RssFeed(java.lang.String title,
java.lang.String link,
java.lang.String description)
Constructs a feed with the specified title, link and description. |
|
RssFeed(java.lang.String title,
java.net.URL link,
java.lang.String description)
Constructs a feed with the specified title, link and description. |
Method Summary | |
---|---|
void |
addExtension(org.w3c.dom.Element newElement)
Adds a new extension element. |
boolean |
addItem(RssItem newItem)
Appends the specified item element to the end of the item list (optional operation). |
void |
addNamespace(java.lang.String nsName,
java.lang.String nsURI)
Adds a new namespace |
java.lang.String |
getDescription()
Gets phrase or sentence describing the channel. |
java.util.List |
getExtensions()
Gets the rss extensions. |
java.util.List |
getItems()
Gets the item list within this feed. |
java.lang.String |
getLanguage()
Gets the language the channel is written in. |
java.net.URL |
getLink()
Gets the URL to the HTML website corresponding to the channel. |
java.util.Properties |
getNamespaces()
Gets the namespace list that is associated with this feed. |
java.lang.String |
getNamespaceURI(java.lang.String nsName)
Gets the namespace URI. |
SseSharing |
getSharing()
Gets the sharing element |
java.lang.String |
getTitle()
Gets the name of the channel |
RSSVersion |
getVersion()
Gets the RSS version of this feed. |
static RssFeed |
load(java.io.File fromFile)
Reads a feed from the file specified as RSS feed. |
RssFeed |
merge(RssFeed mergeFeed)
Merge specified RSS feed with this feed. |
void |
save(java.io.File toFile)
Stores this feed to the specified file. |
void |
setDescription(java.lang.String description)
Sets phrase or sentence describing the channel. |
void |
setExtensions(java.util.List extensions)
Sets the rss extensions. |
void |
setLanguage(java.lang.String language)
Sets the language the channel is written in. |
void |
setLink(java.lang.String link)
Sets the URL to the HTML website corresponding to the channel. |
void |
setLink(java.net.URL link)
Sets the URL to the HTML website corresponding to the channel. |
void |
setSharing(SseSharing sharing)
Sets a sharing element. |
void |
setTitle(java.lang.String title)
Sets the name of the channel |
void |
setVersion(RSSVersion version)
Sets the RSS version of this feed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SSE_NAMESPACE
public static final java.lang.String SSE_NAMESPACE_URI
Constructor Detail |
---|
public RssFeed(java.lang.String title, java.net.URL link, java.lang.String description)
title
- - the title to uselink
- - the linkdescription
- - the descriptionpublic RssFeed(java.lang.String title, java.lang.String link, java.lang.String description)
title
- - the title to uselink
- - the linkdescription
- - the descriptionMethod Detail |
---|
public static RssFeed load(java.io.File fromFile) throws java.io.IOException, ParseException
fromFile
- - The file containing the RSS feed to load.
java.io.IOException
- - If any IO errors occur.
ParseException
- - If any parse errors occur during processing.public boolean addItem(RssItem newItem)
newItem
- - item element to be appended to the item list.
public java.lang.String getTitle()
public java.lang.String getDescription()
public java.lang.String getLanguage()
public RSSVersion getVersion()
public java.net.URL getLink()
public SseSharing getSharing()
public java.util.List getItems()
public void setTitle(java.lang.String title)
title
- - the String containing the title representation.public void setDescription(java.lang.String description)
description
- - the String containing the description representation.public void setLanguage(java.lang.String language)
language
- - the String containing the language representation.public void setVersion(RSSVersion version)
version
- - the RSSVersion object containing the RSS versionpublic void setLink(java.net.URL link)
link
- - the URL object containing the link.public void setLink(java.lang.String link)
link
- - the String containing the link representation.public void setSharing(SseSharing sharing)
sharing
- - the SseSharing objectpublic RssFeed merge(RssFeed mergeFeed)
mergeFeed
- - RSS feed to be merged with this feed.
public void save(java.io.File toFile) throws java.io.IOException
toFile
- - a output file.
java.io.IOException
- - If any IO errors occur.public void addNamespace(java.lang.String nsName, java.lang.String nsURI)
nsName
- The qualified name of the namespace.nsURI
- The namespace URI.public java.lang.String getNamespaceURI(java.lang.String nsName)
nsName
- The qualified name of the namespace.
public java.util.Properties getNamespaces()
public void addExtension(org.w3c.dom.Element newElement)
newElement
- The element to add.public java.util.List getExtensions()
public void setExtensions(java.util.List extensions)
extensions
- The rss extensions to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |