|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.johnmunsch.rss.Item
Represents a single item from an RSS channel. Normally items consist of a pair or triplet of a title for the item, the link to that item, and optionally a description of the item.
| Constructor Summary | |
Item(Channel _origin,
java.lang.String _title,
java.lang.String _link)
Creates a new Item with the minimal expected data. |
|
Item(Channel _origin,
java.lang.String _title,
java.lang.String _link,
java.lang.String _description)
Creates new Item with a description. |
|
Item(Channel _origin,
java.lang.String _title,
java.lang.String _link,
java.lang.String _description,
java.util.Date _retrieved)
Creates a new Item with a description and a retrieval date. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
Channel |
getChannel()
Returns the channel from which this object was generated. |
java.lang.String |
getDescription()
The description (if any) for this item. |
java.net.URL |
getLink()
Get a link to the item. |
java.util.Properties |
getProperties()
Returns the properties set for this object or null if no properties have been set. |
java.lang.String |
getProperty(java.lang.String key)
Provides direct access to a getProperty function on the Properties object. |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Provides direct access to a getProperty function on the Properties object. |
java.util.Date |
getRetrieved()
Returns the date and time this item was retrieved. |
java.lang.String |
getTitle()
Get the title of this item. |
int |
hashCode()
Generates a reasonably unique hash code for this item. |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Provides direct access to the setProperty function on the Properties object. |
java.lang.String |
toString()
Generates a nicely formatted string representation of this item. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Item(Channel _origin,
java.lang.String _title,
java.lang.String _link)
public Item(Channel _origin,
java.lang.String _title,
java.lang.String _link,
java.lang.String _description)
public Item(Channel _origin,
java.lang.String _title,
java.lang.String _link,
java.lang.String _description,
java.util.Date _retrieved)
| Method Detail |
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic Channel getChannel()
public java.util.Date getRetrieved()
public java.util.Properties getProperties()
public java.lang.String getProperty(java.lang.String key)
public java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
public java.lang.Object setProperty(java.lang.String key,
java.lang.String value)
public java.lang.String getTitle()
public java.net.URL getLink()
public java.lang.String getDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||