|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.feed.rss.Item
public class Item
Bean for items of RSS feeds.
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.
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<Enclosure> |
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<Module> |
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<Category> 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<Enclosure> 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<Module> 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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Item()
Method Detail |
---|
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- thrown if an element of the object cannot be cloned.public boolean equals(Object other)
equals
in class Object
other
- he reference object with which to compare.
public int hashCode()
It follows the contract defined by the Object hashCode() method.
hashCode
in class Object
public String toString()
toString
in class Object
public String getTitle()
public void setTitle(String title)
title
- the item title to set, null if none.public String getLink()
public void setLink(String link)
link
- the item link to set, null if none.public String getUri()
public void setUri(String uri)
uri
- the item uri to set, null if none.public Description getDescription()
public void setDescription(Description description)
description
- the item description to set, null if none.public Content getContent()
public void setContent(Content content)
content
- the item content to set, null if none.public Source getSource()
public void setSource(Source source)
source
- the item source to set, null if none.public List<Enclosure> getEnclosures()
public void setEnclosures(List<Enclosure> enclosures)
enclosures
- the list of Enclosure elements with the item enclosures to set,
an empty list or null if none.public List getCategories()
public void setCategories(List<Category> categories)
categories
- the list of Categories elements with the item categories to set,
an empty list or null if none.public Guid getGuid()
public void setGuid(Guid guid)
guid
- the item GUID to set, null if none.public String getComments()
public void setComments(String comments)
comments
- the item comments to set, null if none.public String getAuthor()
public void setAuthor(String author)
author
- the item author to set, null if none.public List<Module> getModules()
getModules
in interface Extendable
public void setModules(List<Module> modules)
setModules
in interface Extendable
modules
- the list of ModuleImpl elements with the item modules to set,
an empty list or null if none.public Module getModule(String uri)
getModule
in interface Extendable
uri
- the URI of the ModuleImpl.
public Date getPubDate()
public void setPubDate(Date pubDate)
pubDate
- the item publishing date to set, null if none.public Date getExpirationDate()
public void setExpirationDate(Date expirationDate)
expirationDate
- the item expiration date to set, null if none.public Object getForeignMarkup()
public void setForeignMarkup(Object foreignMarkup)
foreignMarkup
- Opaque object to discourage use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |