|
||||||||||
| 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.RSSItem
org.clapper.curn.parser.rome.RSSItemAdapter
public class RSSItemAdapter
This class implements the RSSItem interface and defines an adapter for the Rome RSS Parser's SyndEntry type.
RSSParserFactory,
RSSParser,
RSSItem,
RSSItemAdapter| Field Summary |
|---|
| Fields inherited from class org.clapper.curn.parser.RSSItem |
|---|
DEFAULT_CONTENT_TYPE, NO_SUMMARY_LIMIT |
| Method Summary | |
|---|---|
void |
addAuthor(java.lang.String author)
Add to the item's author list. |
void |
clearAuthors()
Clear the authors list. |
java.util.Collection<java.lang.String> |
getAuthors()
Get the item's author list. |
java.util.Collection<java.lang.String> |
getCategories()
Get the categories the item belongs to. |
java.lang.String |
getID()
Get the item's ID field, if any. |
java.util.Collection<RSSLink> |
getLinks()
Get the item's published links. |
RSSChannel |
getParentChannel()
Get the parent Channel object. |
java.util.Date |
getPublicationDate()
Get the item's publication date. |
java.lang.String |
getSummary()
Get the item's summary. |
java.lang.String |
getTitle()
Get the item's title |
RSSItem |
newInstance(RSSChannel channel)
Create a new, empty instance of the underlying concrete class. |
void |
setCategories(java.util.Collection<java.lang.String> categories)
Set the categories the item belongs to. |
void |
setID(java.lang.String id)
Set the item's ID field, if any. |
void |
setLinks(java.util.Collection<RSSLink> links)
Set the item's published links. |
void |
setPublicationDate(java.util.Date date)
Set the item's publication date. |
void |
setSummary(java.lang.String newSummary)
Set the item's summary (also sometimes called the description or synopsis). |
void |
setTitle(java.lang.String newTitle)
Set the item's title |
| Methods inherited from class org.clapper.curn.parser.RSSItem |
|---|
clearContent, clone, compareTo, equals, getContent, getFirstContentOfType, hashCode, makeCopy, setContent, 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 |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public RSSItem newInstance(RSSChannel channel)
newInstance in class RSSItemchannel - the parent channel
public RSSChannel getParentChannel()
getParentChannel in class RSSItempublic java.lang.String getTitle()
getTitle in class RSSItemsetTitle(java.lang.String)public void setTitle(java.lang.String newTitle)
setTitle in class RSSItemnewTitle - the item's title, or null if there isn't onegetTitle()public final java.util.Collection<RSSLink> getLinks()
getLinks in class RSSItemRSSElement.getLink(java.lang.String, org.clapper.curn.parser.RSSLink.Type...)public void setLinks(java.util.Collection<RSSLink> links)
setLinks in class RSSItemlinks - the collection of links, or an empty collection (or null)getLinks()public java.lang.String getSummary()
getSummary in class RSSItemsetSummary(java.lang.String)public void setSummary(java.lang.String newSummary)
setSummary in class RSSItemnewSummary - the summary, or null if not availablegetSummary()public java.util.Collection<java.lang.String> getAuthors()
getAuthors in class RSSItemaddAuthor(java.lang.String),
clearAuthors()public void addAuthor(java.lang.String author)
addAuthor in class RSSItemauthor - another author string to addgetAuthors(),
clearAuthors()public void clearAuthors()
clearAuthors in class RSSItemgetAuthors(),
addAuthor(java.lang.String)public java.util.Collection<java.lang.String> getCategories()
getCategories in class RSSItemRSSItem.setCategories(java.util.Collection) public void setCategories(java.util.Collection<java.lang.String> categories)
setCategories in class RSSItemcategories - a Collection of category strings
or null if not applicablegetCategories()public java.util.Date getPublicationDate()
getPublicationDate in class RSSItemRSSItem.getPublicationDate()public void setPublicationDate(java.util.Date date)
setPublicationDate in class RSSItemgetPublicationDate()public java.lang.String getID()
getID in class RSSItemRSSItem.setID(java.lang.String)public void setID(java.lang.String id)
setID in class RSSItemid - the ID field, or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||