|
CS 1705 Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs1705.web.RssFeed
public class RssFeed
This class represents a syndication feed that contains a list of
RssEntry objects.
| Constructor Summary | |
|---|---|
RssFeed()
Creates a new RssFeed object that is completely empty. |
|
RssFeed(RssFeed existingFeed)
Creates a new RssFeed object by copying from an existing one. |
|
RssFeed(String url)
Creates a new RssFeed object by reading from the given URL. |
|
RssFeed(URL url)
Creates a new RssFeed object by reading from the given URL. |
|
| Method Summary | |
|---|---|
void |
addEntry(RssEntry entry)
Add a new entry to this feed. |
Object |
clone()
Clone this object. |
String |
getAuthor()
Get this feed's author. |
List<String> |
getAuthors()
Get this feed's authors. |
Date |
getDate()
Get this feed's publication date. |
String |
getDescription()
Get this feed's description. |
List<RssEntry> |
getEntries()
Get this feed's entries. |
URL |
getIconLink()
Get the link for the site icon belonging to this feed's home site. |
URL |
getImageLink()
Get the link for this feed's image as a URL. |
URL |
getLink()
Get the link (as a URL) where this feed is officially published. |
URL |
getLoadedFromLink()
Get the link as a URL where this feed was loaded from. |
String |
getTitle()
Get this feed's title. |
void |
setAuthor(String author)
Set this feed's author. |
void |
setAuthors(List<String> authors)
Set this feed's authors. |
void |
setDate(Date date)
Set this feed's publication date. |
void |
setDescription(String description)
Set this feed's description. |
void |
setEntries(List<RssEntry> entries)
Set this feed's entries. |
void |
setIconLink(URL link)
Set the link for the site icon belonging to this feed's home site. |
void |
setImageLink(URL link)
Set this link for this feed's image. |
void |
setLink(URL link)
Set this feed's publication link. |
void |
setLoadedFromLink(URL link)
Set the value this feed believes it was loaded from (normally set by the constructor). |
void |
setTitle(String title)
Set this feed's title. |
String |
toString()
Generate a printable version of this feed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RssFeed()
public RssFeed(String url)
url - The URL to read from, as a stringpublic RssFeed(URL url)
url - The URL to read from, as a stringpublic RssFeed(RssFeed existingFeed)
existingFeed - The feed to copy| Method Detail |
|---|
public String getAuthor()
getAuthor in interface RssEntitypublic void setAuthor(String author)
setAuthor in interface RssEntityauthor - This feed's authorpublic List<String> getAuthors()
getAuthors in interface RssEntitypublic void setAuthors(List<String> authors)
setAuthors in interface RssEntityauthors - A list of this feed's authorspublic Date getDate()
getDate in interface RssEntitypublic void setDate(Date date)
setDate in interface RssEntitydate - This feed's datepublic String getDescription()
getDescription in interface RssEntitypublic void setDescription(String description)
setDescription in interface RssEntitydescription - The new descriptionpublic List<RssEntry> getEntries()
public void addEntry(RssEntry entry)
entry - The new entry to addpublic void setEntries(List<RssEntry> entries)
entries - This feed's entriespublic URL getIconLink()
public void setIconLink(URL link)
link - The new URL to usepublic URL getImageLink()
public void setImageLink(URL link)
link - The new URL to usepublic URL getLoadedFromLink()
public void setLoadedFromLink(URL link)
link - The new URL to usepublic URL getLink()
getLink in interface RssEntitypublic void setLink(URL link)
setLink in interface RssEntitylink - The new URL to usepublic String getTitle()
getTitle in interface RssEntitypublic void setTitle(String title)
setTitle in interface RssEntitytitle - The feed's titlepublic Object clone()
clone in class Objectpublic String toString()
toString in class Object
|
Last updated: Wed, Apr 1, 2009 12:29 AM EDT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||