net.sourceforge.rssowl.util.archive
Class ArchiveEntry

java.lang.Object
  extended bynet.sourceforge.rssowl.util.archive.ArchiveEntry

public class ArchiveEntry
extends 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.1.3
Author:
Benjamin Pasero

Field Summary
private  String newsdate
           
private  String newslink
           
private  String newstitle
           
 
Constructor Summary
ArchiveEntry(String newsurl, String newstitle, String newsdate)
          Instantiate a new ArchiveEntry
 
Method Summary
 String getNewsdate()
           
 String getNewsLink()
           
 String getNewsTitle()
           
 String toID()
          Create an identifier from this entry.
static String toID(String newstitle, String newslink, String newsdate)
          Create an identifier from the given Title, Link and Date.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

newsdate

private String newsdate

newslink

private String newslink

newstitle

private String newstitle
Constructor Detail

ArchiveEntry

public ArchiveEntry(String newsurl,
                    String newstitle,
                    String newsdate)
Instantiate a new ArchiveEntry

Parameters:
newsurl - The URL of the news
newstitle - The title of the news
newsdate - The publish date of the news
Method Detail

toID

public static String toID(String newstitle,
                          String newslink,
                          String newsdate)
Create an identifier from the given Title, Link and Date.

Parameters:
newstitle - Title of the news
newslink - Link of the news
newsdate - The publish date of the news
Returns:
String An identifier from the given Title and Link

getNewsdate

public String getNewsdate()
Returns:
String The publish date.

getNewsLink

public String getNewsLink()
Returns:
Returns the newslink.

getNewsTitle

public String getNewsTitle()
Returns:
Returns the newstitle.

toID

public String toID()
Create an identifier from this entry.

Returns:
String An identifier from this entry

toString

public String toString()
See Also:
Object.toString()


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo