|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.archive.ArchiveItem
public class 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 boolean |
dirty
|
private java.util.Hashtable |
entries
|
private java.lang.String |
feedurl
|
private java.io.File |
file
|
| Constructor Summary | |
|---|---|
ArchiveItem(java.lang.String feedurl)
Instantiate a new ArchiveItem |
|
| Method Summary | |
|---|---|
void |
addEntry(ArchiveEntry rssOwlArchiveEntry)
Add a new archive entry to this archive item |
java.util.Hashtable |
getEntries()
|
java.lang.String |
getFeedurl()
|
java.io.File |
getFile()
|
boolean |
isDirty()
Check wether this Item has changed since it has been loaded from the File. |
boolean |
isNewsRead(java.lang.String newstitle,
java.lang.String newslink,
java.lang.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(java.lang.String newstitle,
java.lang.String newslink,
java.lang.String newsdate)
Remove an archive entry from this archive item. |
void |
setDirty(boolean dirty)
Set wether this Item has changed since it has been loaded from the File and needs to be saved to the File again on shutdown. |
void |
setFile(java.io.File file)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private boolean dirty
private java.util.Hashtable entries
private java.lang.String feedurl
private java.io.File file
| Constructor Detail |
|---|
public ArchiveItem(java.lang.String feedurl)
feedurl - The URL of the newsfeed| Method Detail |
|---|
public void addEntry(ArchiveEntry rssOwlArchiveEntry)
rssOwlArchiveEntry - The archive entry consists of a newstitle and
newslinkpublic java.util.Hashtable getEntries()
public java.lang.String getFeedurl()
public java.io.File getFile()
public boolean isDirty()
public boolean isNewsRead(java.lang.String newstitle,
java.lang.String newslink,
java.lang.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 entry
public void removeEntry(java.lang.String newstitle,
java.lang.String newslink,
java.lang.String newsdate)
newstitle - Title of the newsnewslink - Link of the newsnewsdate - The publish date of the newspublic void setDirty(boolean dirty)
dirty - Set to TRUE if this Item has changed since it has been loaded
and requires to be saved to the File again, FALSE otherwise.public void setFile(java.io.File file)
file - The file to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||