|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.syndication.feed.synd.SyndEntryImpl
public class SyndEntryImpl
Bean for entries of SyndFeedImpl feeds.
| Field Summary | |
|---|---|
static java.util.Set |
CONVENIENCE_PROPERTIES
Unmodifiable Set containing the convenience properties of this class. |
| Constructor Summary | |
|---|---|
|
SyndEntryImpl()
Default constructor. |
protected |
SyndEntryImpl(java.lang.Class beanClass,
java.util.Set convenienceProperties)
For implementations extending SyndEntryImpl to be able to use the ObjectBean functionality with extended interfaces. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a deep 'bean' clone of the object. |
void |
copyFrom(java.lang.Object obj)
Copies all the properties of the given bean into this one. |
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method. |
java.lang.String |
getAuthor()
Returns the entry author. |
java.util.List |
getAuthors()
Returns the entry authors. |
java.util.List |
getCategories()
Returns the entry categories. |
java.util.List |
getContents()
Returns the entry contents. |
java.util.List |
getContributors()
Returns the feed author. |
SyndContent |
getDescription()
Returns the entry description. |
java.util.List |
getEnclosures()
Returns the entry enclosures. |
java.lang.Object |
getForeignMarkup()
Returns foreign markup found at channel level. |
java.lang.Class |
getInterface()
Returns the interface the copyFrom works on. |
java.lang.String |
getLink()
Returns the entry link. |
java.util.List |
getLinks()
Returns the links |
Module |
getModule(java.lang.String uri)
Returns the module identified by a given URI. |
java.util.List |
getModules()
Returns the entry modules. |
java.util.Date |
getPublishedDate()
Returns the entry published date. |
SyndFeed |
getSource()
Returns the entry source. |
java.lang.String |
getTitle()
Returns the entry title. |
SyndContent |
getTitleEx()
Returns the entry title as a text construct. |
java.util.Date |
getUpdatedDate()
Returns the updatedDate |
java.lang.String |
getUri()
Returns the entry URI. |
int |
hashCode()
Returns a hashcode value for the object. |
void |
setAuthor(java.lang.String author)
Sets the entry author. |
void |
setAuthors(java.util.List authors)
Sets the entry author. |
void |
setCategories(java.util.List categories)
Sets the entry categories. |
void |
setContents(java.util.List contents)
Sets the entry contents. |
void |
setContributors(java.util.List contributors)
Sets the feed contributors. |
void |
setDescription(SyndContent description)
Sets the entry description. |
void |
setEnclosures(java.util.List enclosures)
Sets the entry enclosures. |
void |
setForeignMarkup(java.lang.Object foreignMarkup)
Sets foreign markup found at channel level. |
void |
setLink(java.lang.String link)
Sets the entry link. |
void |
setLinks(java.util.List links)
Set the links |
void |
setModules(java.util.List modules)
Sets the entry modules. |
void |
setPublishedDate(java.util.Date publishedDate)
Sets the entry published date. |
void |
setSource(SyndFeed source)
Sets the entry source feed (for use if different from containing feed) |
void |
setTitle(java.lang.String title)
Sets the entry title. |
void |
setTitleEx(SyndContent title)
Sets the entry title as a text construct. |
void |
setUpdatedDate(java.util.Date updatedDate)
Set the updatedDate |
void |
setUri(java.lang.String uri)
Sets the entry URI. |
java.lang.String |
toString()
Returns the String representation for the object. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Set CONVENIENCE_PROPERTIES
Convenience properties are mapped to Modules, for cloning the convenience properties can be ignored as the will be copied as part of the module cloning.
| Constructor Detail |
|---|
protected SyndEntryImpl(java.lang.Class beanClass,
java.util.Set convenienceProperties)
beanClass - convenienceProperties - set containing the convenience properties of the SyndEntryImpl
(the are ignored during cloning, check CloneableBean for details).public SyndEntryImpl()
| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface SyndEntryclone in class java.lang.Objectjava.lang.CloneNotSupportedException - thrown if an element of the object cannot be cloned.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - he reference object with which to compare.
public int hashCode()
It follows the contract defined by the Object hashCode() method.
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getUri()
How the entry URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type. This is explained in detail in Rome documentation, Feed and entry URI mapping.
The returned URI is a normalized URI as specified in RFC 2396bis.
getUri in interface SyndEntrypublic void setUri(java.lang.String uri)
How the entry URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type. This is explained in detail in Rome documentation, Feed and entry URI mapping.
setUri in interface SyndEntryuri - the entry URI to set, null if none.public java.lang.String getTitle()
getTitle in interface SyndEntrypublic void setTitle(java.lang.String title)
setTitle in interface SyndEntrytitle - the entry title to set, null if none.public SyndContent getTitleEx()
getTitleEx in interface SyndEntrypublic void setTitleEx(SyndContent title)
setTitleEx in interface SyndEntrytitle - the entry title to set, null if none.public java.lang.String getLink()
getLink in interface SyndEntrypublic void setLink(java.lang.String link)
setLink in interface SyndEntrylink - the entry link to set, null if none.public SyndContent getDescription()
getDescription in interface SyndEntrypublic void setDescription(SyndContent description)
setDescription in interface SyndEntrydescription - the entry description to set, null if none.public java.util.List getContents()
getContents in interface SyndEntrypublic void setContents(java.util.List contents)
setContents in interface SyndEntrycontents - the list of SyndContentImpl elements with the entry contents to set,
an empty list or null if none.public java.util.List getEnclosures()
getEnclosures in interface SyndEntrypublic void setEnclosures(java.util.List enclosures)
setEnclosures in interface SyndEntryenclosures - the list of SyndEnclosure elements with the entry enclosures to set,
an empty list or null if none.public java.util.Date getPublishedDate()
This method is a convenience method, it maps to the Dublin Core module date.
getPublishedDate in interface SyndEntrypublic void setPublishedDate(java.util.Date publishedDate)
This method is a convenience method, it maps to the Dublin Core module date.
setPublishedDate in interface SyndEntrypublishedDate - the entry published date to set, null if none.public java.util.List getCategories()
getCategories in interface SyndEntrypublic void setCategories(java.util.List categories)
This method is a convenience method, it maps to the Dublin Core module subjects.
setCategories in interface SyndEntrycategories - the list of SyndCategoryImpl elements with the entry categories to set,
an empty list or null if none.public java.util.List getModules()
getModules in interface ExtendablegetModules in interface SyndEntrypublic void setModules(java.util.List modules)
setModules in interface ExtendablesetModules in interface SyndEntrymodules - the list of ModuleImpl elements with the entry modules to set,
an empty list or null if none.public Module getModule(java.lang.String uri)
getModule in interface ExtendablegetModule in interface SyndEntryuri - the URI of the ModuleImpl.
public java.lang.Class getInterface()
CopyFromThis is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface in interface CopyFrompublic void copyFrom(java.lang.Object obj)
CopyFromAny existing properties in this bean are lost.
This method is useful for moving from one implementation of a bean interface to another. For example from the default SyndFeed bean implementation to a Hibernate ready implementation.
copyFrom in interface CopyFromobj - the instance to copy properties from.public java.util.List getLinks()
getLinks in interface SyndEntrypublic void setLinks(java.util.List links)
setLinks in interface SyndEntrylinks - The links to set.public java.util.Date getUpdatedDate()
getUpdatedDate in interface SyndEntrypublic void setUpdatedDate(java.util.Date updatedDate)
setUpdatedDate in interface SyndEntryupdatedDate - The updatedDate to set.public java.util.List getAuthors()
SyndEntryFor Atom feeds, this returns the authors as a list of SyndPerson objects, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.
getAuthors in interface SyndEntrypublic void setAuthors(java.util.List authors)
SyndEntryFor Atom feeds, this sets the authors as a list of SyndPerson objects, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.
setAuthors in interface SyndEntryauthors - the feed author to set, null if none.public java.lang.String getAuthor()
This method is a convenience method, it maps to the Dublin Core module creator.
getAuthor in interface SyndEntrypublic void setAuthor(java.lang.String author)
This method is a convenience method, it maps to the Dublin Core module creator.
setAuthor in interface SyndEntryauthor - the entry author to set, null if none.public java.util.List getContributors()
SyndEntryFor Atom feeds, this returns the contributors as a list of SyndPerson objects
getContributors in interface SyndEntrypublic void setContributors(java.util.List contributors)
SyndEntryReturns contributors as a list of SyndPerson objects.
setContributors in interface SyndEntrycontributors - the feed contributors to set, null if none.public SyndFeed getSource()
SyndEntryThis returns the entry source as a SyndFeed
getSource in interface SyndEntrypublic void setSource(SyndFeed source)
SyndEntry
setSource in interface SyndEntrysource - the original SyndFeed that contained this articlepublic java.lang.Object getForeignMarkup()
getForeignMarkup in interface SyndEntrypublic void setForeignMarkup(java.lang.Object foreignMarkup)
setForeignMarkup in interface SyndEntryforeignMarkup - list of JDOM nodes containing channel-level foreign markup,
an empty list if none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||