|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.curn.parser.RSSElement
org.clapper.curn.parser.RSSChannel
org.clapper.curn.parser.informa.RSSChannelAdapter
public class RSSChannelAdapter
This class implements the RSSChannel interface and defines an adapter for the Informa RSS Parser's ChannelIF type.
RSSParserFactory,
RSSParser,
RSSChannel,
RSSItem,
RSSItemAdapter| Method Summary | |
|---|---|
void |
addAuthor(java.lang.String author)
Add to the channel's author list. |
void |
clearAuthors()
Clear the authors list. |
java.util.Collection<java.lang.String> |
getAuthors()
Get the channel's author list. |
java.lang.String |
getCopyright()
Get the channel's copyright string |
java.lang.String |
getDescription()
Get the channel's description |
java.util.Collection<RSSItem> |
getItems()
Get a Collection of the items in this channel. |
java.util.Collection<RSSLink> |
getLinks()
Get the channel's published links. |
java.lang.Object |
getNativeRSSFormat()
Get the RSS format the channel is using, in native format. |
java.util.Date |
getPublicationDate()
Get the channel's publication date. |
java.lang.String |
getRSSFormat()
Get the RSS format the channel is using. |
java.lang.String |
getTitle()
Get the channel's title |
RSSChannel |
newInstance()
Create a new, empty instance of the underlying concrete class. |
boolean |
removeItem(RSSItem item)
Remove an item from the set of items. |
void |
setCopyright(java.lang.String copyright)
Set the channel's copyright string |
void |
setDescription(java.lang.String desc)
Set the channel's description |
void |
setItems(java.util.Collection<? extends RSSItem> newItems)
Change the items the channel the ones in the specified collection. |
void |
setLinks(java.util.Collection<RSSLink> links)
Set the channel's list of published links (its URLs). |
void |
setNativeRSSFormat(java.lang.Object format)
Set the RSS format the channel is using. |
void |
setPublicationDate(java.util.Date date)
Set the channel's publication date. |
void |
setTitle(java.lang.String newTitle)
Set the channel's title |
| Methods inherited from class org.clapper.curn.parser.RSSChannel |
|---|
clone, makeCopy, stripHTML, toString |
| Methods inherited from class org.clapper.curn.parser.RSSElement |
|---|
getAuthor, getLink, getLink, getLink, getLinkWithFallback, getURL, setAuthor, setAuthors |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public RSSChannel newInstance()
newInstance in class RSSChannelpublic java.util.Collection<RSSItem> getItems()
getItems in class RSSChannelpublic void setItems(java.util.Collection<? extends RSSItem> newItems)
setItems in class RSSChannelnewItems - new collection of RSSItem items.public boolean removeItem(RSSItem item)
removeItem in class RSSChannelitem - the item to remove
public java.lang.String getTitle()
getTitle in class RSSChannelsetTitle(String)public void setTitle(java.lang.String newTitle)
setTitle in class RSSChannelnewTitle - the channel's title, or null if there isn't onegetTitle()public java.lang.String getDescription()
getDescription in class RSSChannelsetDescription(java.lang.String)public void setDescription(java.lang.String desc)
setDescription in class RSSChanneldesc - the channel's description, or null if there isn't onegetDescription()public final java.util.Collection<RSSLink> getLinks()
getLinks in class RSSChannelRSSElement.getLink(java.lang.String, org.clapper.curn.parser.RSSLink.Type...)public void setLinks(java.util.Collection<RSSLink> links)
setLinks in class RSSChannellinks - the linksRSSElement.getLink(java.lang.String, org.clapper.curn.parser.RSSLink.Type...),
getLinks()public java.util.Date getPublicationDate()
getPublicationDate in class RSSChannelsetPublicationDate(java.util.Date)public void setPublicationDate(java.util.Date date)
setPublicationDate in class RSSChanneldate - the publication date, or null if not availableRSSChannel.getPublicationDate()public java.lang.String getCopyright()
getCopyright in class RSSChannelsetCopyright(java.lang.String)public void setCopyright(java.lang.String copyright)
setCopyright in class RSSChannelcopyright - the copyright string, or null if not availablegetCopyright()public java.lang.String getRSSFormat()
getRSSFormat in class RSSChannelRSSChannel.getNativeRSSFormat(),
RSSChannel.setNativeRSSFormat(java.lang.Object)public java.lang.Object getNativeRSSFormat()
RSSChannel.makeCopy() method to copy the RSS format without knowing
how it's stored. The default implementation of this method
simply calls getRSSFormat().
getNativeRSSFormat in class RSSChannelgetRSSFormat(),
setNativeRSSFormat(java.lang.Object)public void setNativeRSSFormat(java.lang.Object format)
setNativeRSSFormat in class RSSChannelformat - the format, or null if not availablegetRSSFormat(),
getNativeRSSFormat()public java.util.Collection<java.lang.String> getAuthors()
getAuthors in class RSSChanneladdAuthor(java.lang.String),
clearAuthors()public void addAuthor(java.lang.String author)
addAuthor in class RSSChannelauthor - another author string to addgetAuthors(),
clearAuthors()public void clearAuthors()
clearAuthors in class RSSChannelgetAuthors(),
addAuthor(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||