net.sourceforge.rssowl.util.archive
Class ArchiveEntry
java.lang.Object
net.sourceforge.rssowl.util.archive.ArchiveEntry
public class ArchiveEntry
- extends java.lang.Object
An archive entry is the smallest unit in the RSSOwl archive. It stores the
title, link and date of a news. Any news that are stored as archive entry are
read. Each archive entry is stored in the archive item that is connected to
the newsfeed where these entries come from.
- Version:
- 1.2.4
- Author:
- Benjamin Pasero
|
Constructor Summary |
ArchiveEntry(java.lang.String newsurl,
java.lang.String newstitle,
java.lang.String newsdate)
Instantiate a new ArchiveEntry |
|
Method Summary |
java.lang.String |
getNewsdate()
|
java.lang.String |
getNewsLink()
|
java.lang.String |
getNewsTitle()
|
java.lang.String |
toID()
Create an identifier from this entry. |
static java.lang.String |
toID(java.lang.String newstitle,
java.lang.String newslink,
java.lang.String newsdate)
Create an identifier from the given Title, Link and Date. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
newsdate
private java.lang.String newsdate
newslink
private java.lang.String newslink
newstitle
private java.lang.String newstitle
ArchiveEntry
public ArchiveEntry(java.lang.String newsurl,
java.lang.String newstitle,
java.lang.String newsdate)
- Instantiate a new ArchiveEntry
- Parameters:
newsurl - The URL of the newsnewstitle - The title of the newsnewsdate - The publish date of the news
toID
public static java.lang.String toID(java.lang.String newstitle,
java.lang.String newslink,
java.lang.String newsdate)
- Create an identifier from the given Title, Link and Date.
- Parameters:
newstitle - Title of the newsnewslink - Link of the newsnewsdate - The publish date of the news
- Returns:
- String An identifier from the given Title and Link
getNewsdate
public java.lang.String getNewsdate()
- Returns:
- String The publish date.
getNewsLink
public java.lang.String getNewsLink()
- Returns:
- Returns the newslink.
getNewsTitle
public java.lang.String getNewsTitle()
- Returns:
- Returns the newstitle.
toID
public java.lang.String toID()
- Create an identifier from this entry.
- Returns:
- String An identifier from this entry
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- See Also:
Object.toString()
RSSOwl - RSS / RDF / Atom Newsreader