com.sun.syndication.feed.rss
public class Item extends Object implements Cloneable, Serializable, Extendable
It handles all RSS versions without loosing information.
For RSS1.0 it supports Dublin Core and Syndication modules. Note that those modules currently support simple syntax format only.
Field Summary | |
---|---|
String | _author |
List | _categories |
String | _comments |
Content | _content |
Description | _description |
List | _enclosures |
Date | _expirationDate |
List | _foreignMarkup |
Guid | _guid |
String | _link |
List | _modules |
ObjectBean | _objBean |
Date | _pubDate |
Source | _source |
String | _title |
String | _uri |
Constructor Summary | |
---|---|
Item()
Default constructor. |
Method Summary | |
---|---|
Object | clone()
Creates a deep 'bean' clone of the object.
|
boolean | equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
|
String | getAuthor()
Returns the item author.
|
List | getCategories()
Returns the item categories.
|
String | getComments()
Returns the item comments.
|
Content | getContent()
Returns the item content.
|
Description | getDescription()
Returns the item description.
|
List | getEnclosures()
Returns the item enclosures.
|
Date | getExpirationDate()
Returns the item expiration date.
|
Object | getForeignMarkup()
Returns foreign markup found at item level.
|
Guid | getGuid()
Returns the item GUID.
|
String | getLink()
Returns the item link.
|
Module | getModule(String uri)
Returns the module identified by a given URI.
|
List | getModules()
Returns the item modules.
|
Date | getPubDate()
Returns the item publishing date.
|
Source | getSource()
Returns the item source.
|
String | getTitle()
Returns the item title.
|
String | getUri()
Returns the item uri.
|
int | hashCode()
Returns a hashcode value for the object.
|
void | setAuthor(String author)
Sets the item author.
|
void | setCategories(List categories)
Sets the item categories.
|
void | setComments(String comments)
Sets the item comments.
|
void | setContent(Content content)
Sets the item content.
|
void | setDescription(Description description)
Sets the item description.
|
void | setEnclosures(List enclosures)
Sets the item enclosures.
|
void | setExpirationDate(Date expirationDate)
Sets the item expiration date.
|
void | setForeignMarkup(Object foreignMarkup)
Sets foreign markup found at item level.
|
void | setGuid(Guid guid)
Sets the item GUID.
|
void | setLink(String link)
Sets the item link.
|
void | setModules(List modules)
Sets the item modules.
|
void | setPubDate(Date pubDate)
Sets the item publishing date.
|
void | setSource(Source source)
Sets the item source.
|
void | setTitle(String title)
Sets the item title.
|
void | setUri(String uri)
Sets the item uri.
|
String | toString()
Returns the String representation for the object.
|
Returns: a clone of the object.
Throws: CloneNotSupportedException thrown if an element of the object cannot be cloned.
Parameters: other he reference object with which to compare.
Returns: true if 'this' object is equal to the 'other' object.
Returns: the item author, null if none.
Returns: a list of Category elements with the item categories, an empty list if none.
Returns: the item comments, null if none.
Returns: the item content, null if none.
Returns: the item description, null if none.
Returns: a list of Enclosure elements with the item enclosures, an empty list if none.
Returns: the item expiration date, null if none.
Returns: Opaque object to discourage use
Returns: the item GUID, null if none.
Returns: the item link, null if none.
Parameters: uri the URI of the ModuleImpl.
Returns: The module with the given URI, null if none.
Returns: a list of ModuleImpl elements with the item modules, an empty list if none.
Returns: the item publishing date, null if none.
Returns: the item source, null if none.
Returns: the item title, null if none.
Returns: the item uri, null if none.
It follows the contract defined by the Object hashCode() method.
Returns: the hashcode of the bean object.
Parameters: author the item author to set, null if none.
Parameters: categories the list of Categories elements with the item categories to set, an empty list or null if none.
Parameters: comments the item comments to set, null if none.
Parameters: content the item content to set, null if none.
Parameters: description the item description to set, null if none.
Parameters: enclosures the list of Enclosure elements with the item enclosures to set, an empty list or null if none.
Parameters: expirationDate the item expiration date to set, null if none.
Parameters: foreignMarkup Opaque object to discourage use
Parameters: guid the item GUID to set, null if none.
Parameters: link the item link to set, null if none.
Parameters: modules the list of ModuleImpl elements with the item modules to set, an empty list or null if none.
Parameters: pubDate the item publishing date to set, null if none.
Parameters: source the item source to set, null if none.
Parameters: title the item title to set, null if none.
Parameters: uri the item uri to set, null if none.
Returns: String representation for the object.