- element, if possible.
See Also: Serialized Form
Field Summary
protected java.lang.String
author
email address of the author of the item.
protected java.lang.String
category
Includes the item in one or more categories.
protected java.lang.String
comments
URL of a page for comments relating to the item.
(package private) java.lang.String
creator
protected java.lang.String
enclosure
Describes a media object that is attached to the item.
protected boolean
errorState
used by the application to indicate whether the last connection attempt
was a success or failure
(package private) java.lang.String
format
(package private) java.lang.String
guid
A string that uniquely identifies the item.
(package private) boolean
isDirty
(package private) java.lang.String
language
private StringerException
lastErrorEvent
when an error occurrs while reading a newsfeed, the event describing the
error is placed here.
private long
lastViewed
a stringer-specific tag
(package private) static org.apache.log4j.Logger
logger
(package private) Channel
parent
A channel to which this item belongs
(package private) java.lang.String
pubDate
Indicates when the item was published.
(package private) java.lang.String
publisher
(package private) java.lang.String
rights
(package private) java.lang.String
source
The RSS channel that the item came from
Example:
Quotes of the Day
(package private) java.lang.String
subject
Constructor Summary
Item ()
Item (Channel parent,
nu.xom.Element e)
Create a new Item
Item (java.lang.String title,
java.lang.String link)
Item (java.lang.String title,
java.lang.String link,
java.lang.String description)
Create a new news item with a title, link and description
A unique identifier is assigned to the item.
Methods inherited from class org.stringer.rss.RSSElement
buildId , decodeStringerElement , getDescription , getId , getLastUpdateTime , getLink , getLinkAsURL , getTitle , getUserObject , makeId , setDescription , setLastUpdateTime , setLink , setTitle , setUserObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
logger
static org.apache.log4j.Logger logger
author
protected java.lang.String author
email address of the author of the item.
errorState
protected volatile boolean errorState
used by the application to indicate whether the last connection attempt
was a success or failure
category
protected java.lang.String category
Includes the item in one or more categories.
comments
protected java.lang.String comments
URL of a page for comments relating to the item.
isDirty
transient boolean isDirty
lastErrorEvent
private StringerException lastErrorEvent
when an error occurrs while reading a newsfeed, the event describing the
error is placed here.
enclosure
protected java.lang.String enclosure
Describes a media object that is attached to the item.
Example:
creator
java.lang.String creator
publisher
java.lang.String publisher
pubDate
java.lang.String pubDate
Indicates when the item was published.
format
java.lang.String format
language
java.lang.String language
rights
java.lang.String rights
subject
java.lang.String subject
lastViewed
private long lastViewed
a stringer-specific tag
guid
java.lang.String guid
A string that uniquely identifies the item.
Example:
http://inessential.com/2002/09/01.php#a2
parent
Channel parent
A channel to which this item belongs
source
java.lang.String source
The RSS channel that the item came from
Example:
Quotes of the Day
Item
public Item ()
Item
public Item (java.lang.String title,
java.lang.String link)
Item
public Item (java.lang.String title,
java.lang.String link,
java.lang.String description)
Create a new news item with a title, link and description
A unique identifier is assigned to the item.
Parameters: title - the title of this news itemlink - the url string where this item can be found.description - a description of the item.
Item
public Item (Channel parent,
nu.xom.Element e)
Create a new Item
getAuthor
public java.lang.String getAuthor ()
Returns: email address of the author of this item.
getErrorState
public boolean getErrorState ()
setErrorState
public void setErrorState (boolean b)
getCommentsUrl
public java.lang.String getCommentsUrl ()
setDirty
public void setDirty (boolean b)
isDirty
public boolean isDirty ()
getLastErrorEvent
public StringerException getLastErrorEvent ()
setLastErrorEvent
public void setLastErrorEvent (StringerException e)
setLastViewed
public void setLastViewed (long t)
getLastViewed
public long getLastViewed ()
setChannel
public void setChannel (Channel channel)
getCategory
public java.lang.String getCategory ()
getChannel
public Channel getChannel ()
getCreator
public java.lang.String getCreator ()
getFormat
public java.lang.String getFormat ()
getGuid
public java.lang.String getGuid ()
getLanguage
public java.lang.String getLanguage ()
getPublisher
public java.lang.String getPublisher ()
getPubDate
public java.lang.String getPubDate ()
getRights
public java.lang.String getRights ()
getSource
public java.lang.String getSource ()
getSubject
public java.lang.String getSubject ()
dump
public void dump ()
Overrides: dump in class RSSElement
toXML
public java.lang.String toXML ()
format this item as an XML string
Returns: this item formatted as an XML String
toString
public java.lang.String toString ()
Overrides: toString in class RSSElement
Copyright © R. Kevin Cole. All Rights Reserved.