|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.util.archive.ArchiveItem
An archive item is a Model Object that stores archive entries. Each archive entry consists of a newstitle, newslink and newsdate. These are used later, to determine which news of the item were read and which are unread. The archive item has a unique identifier: Its feedurl. The file attribute is set to a unique file to save the item later.
Field Summary | |
private Vector |
entries
|
private Vector |
entryIDs
|
private String |
feedurl
|
private File |
file
|
Constructor Summary | |
ArchiveItem(String feedurl)
Instantiate a new ArchiveItem |
Method Summary | |
void |
addEntry(ArchiveEntry rssOwlArchiveEntry)
Add a new archive entry to this archive item |
Vector |
getEntries()
|
String |
getFeedurl()
|
File |
getFile()
|
boolean |
isNewsRead(String newstitle,
String newslink,
String newsdate)
Check if the given newsitem is read or not. |
void |
removeEntry(ArchiveEntry entry)
Remove an archive entry from this archive item. |
void |
removeEntry(String newstitle,
String newslink,
String newsdate)
Remove an archive entry from this archive item. |
void |
setFile(File file)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Vector entries
private Vector entryIDs
private String feedurl
private File file
Constructor Detail |
public ArchiveItem(String feedurl)
feedurl
- The URL of the newsfeedMethod Detail |
public void addEntry(ArchiveEntry rssOwlArchiveEntry)
rssOwlArchiveEntry
- The archive entry consists of a newstitle and
newslinkpublic Vector getEntries()
public String getFeedurl()
public File getFile()
public boolean isNewsRead(String newstitle, String newslink, String newsdate)
newstitle
- Title of the newsnewslink
- Link of the newsnewsdate
- The publish date of the news
public void removeEntry(ArchiveEntry entry)
entry
- The archive entrypublic void removeEntry(String newstitle, String newslink, String newsdate)
newstitle
- Title of the newsnewslink
- Link of the newsnewsdate
- The publish date of the newspublic void setFile(File file)
file
- The file to set.public String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |