Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.fm.rss
Class rssItem  view rssItem download rssItem.java

java.lang.Object
  extended bycom.fm.rss.rssAbstractEntry
      extended bycom.fm.rss.rssItem

public class rssItem
extends rssAbstractEntry

RSS item


Field Summary
private  java.lang.String author
          item content author
 boolean isFresh
          Item freshness flag (true if item hasn't been read)
private  java.lang.String link
          Unique link to the item, serves as ID
private  int parentID
           
private  java.lang.String parentTitle
          Only for search operations (not persistent, not saved to storage)
private  java.lang.String subject
          dc:subject or category of the item
 
Fields inherited from class com.fm.rss.rssAbstractEntry
dateCreated, description, docAdapter, idHash, title
 
Constructor Summary
rssItem()
          Dedault constructor.
 
Method Summary
 int generateID()
          RSS item specific ID computation.
 java.lang.String getAuthor()
          Get item author
 java.lang.String getLink()
           
 int getParentID()
          Get parent channel ID
 java.lang.String getParentTitle()
          Get parent channel title
 java.lang.String getSubject()
           
 void parse(org.w3c.dom.Element el)
          Parse the content of the given document element and extract all entry related data.
 void setAuthor(java.lang.String author)
          Set item author
 void setLink(java.lang.String link)
          Set item link
 void setParentInfo(int ID, java.lang.String title)
          Set parent ID and title
 void setSubject(java.lang.String subject)
          Set item subject
 org.w3c.dom.Element toDomElement()
          Returns entry as DOM element
 
Methods inherited from class com.fm.rss.rssAbstractEntry
equals, getDateCreated, getDescription, getID, getTitle, hashCode, parse, parse, setDateCreated, setDescription, setID, setTitle, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

link

private java.lang.String link
Unique link to the item, serves as ID


subject

private java.lang.String subject
dc:subject or category of the item


author

private java.lang.String author
item content author


isFresh

public boolean isFresh
Item freshness flag (true if item hasn't been read)


parentTitle

private java.lang.String parentTitle
Only for search operations (not persistent, not saved to storage)


parentID

private int parentID
Constructor Detail

rssItem

public rssItem()
Dedault constructor. All attributes anre initialized by default to empty string

Method Detail

toDomElement

public org.w3c.dom.Element toDomElement()
Description copied from class: rssAbstractEntry
Returns entry as DOM element

Specified by:
toDomElement in class rssAbstractEntry

parse

public void parse(org.w3c.dom.Element el)
           throws rssParseException
Parse the content of the given document element and extract all entry related data.

Specified by:
parse in class rssAbstractEntry

getLink

public java.lang.String getLink()

setLink

public void setLink(java.lang.String link)
Set item link


getSubject

public java.lang.String getSubject()

setSubject

public void setSubject(java.lang.String subject)
Set item subject


getAuthor

public java.lang.String getAuthor()
Get item author


setAuthor

public void setAuthor(java.lang.String author)
Set item author


generateID

public int generateID()
RSS item specific ID computation.

Since each RSS item has unique link, which globally identifies item, this link may used as source for fm IDs. Final ID value is calculated via hashing item link value.

Overrides:
generateID in class rssAbstractEntry

getParentID

public int getParentID()
Get parent channel ID


getParentTitle

public java.lang.String getParentTitle()
Get parent channel title


setParentInfo

public void setParentInfo(int ID,
                          java.lang.String title)
Set parent ID and title