public class SyndEntryImpl extends Object implements Serializable, SyndEntry
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
CONVENIENCE_PROPERTIES
Unmodifiable Set containing the convenience properties of this class.
|
| Modifier | Constructor and Description |
|---|---|
|
SyndEntryImpl() |
protected |
SyndEntryImpl(Class<?> beanClass,
Set<String> convenienceProperties)
For implementations extending SyndEntryImpl to be able to use the ObjectBean functionality
with extended interfaces.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a deep 'bean' clone of the object.
|
void |
copyFrom(CopyFrom obj)
Copies all the properties of the given bean into this one.
|
boolean |
equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals()
method.
|
SyndLink |
findRelatedLink(String relation)
Returns the first instance of a SyndLink with the specified relation, or null
|
String |
getAuthor()
Returns the name of the first entry author in the collection of authors.
|
List<SyndPerson> |
getAuthors()
Returns the entry authors.
|
List<SyndCategory> |
getCategories()
Returns the entry categories.
|
String |
getComments()
URL of a page for comments relating to the item.
|
List<SyndContent> |
getContents()
Returns the entry contents.
|
List<SyndPerson> |
getContributors()
Returns the feed author.
|
SyndContent |
getDescription()
Returns the entry description.
|
List<SyndEnclosure> |
getEnclosures()
Returns the entry enclosures.
|
List<org.jdom2.Element> |
getForeignMarkup()
Returns foreign markup found at channel level.
|
Class<SyndEntry> |
getInterface()
Returns the interface the copyFrom works on.
|
String |
getLink()
Returns the entry link.
|
List<SyndLink> |
getLinks()
Returns the links
|
Module |
getModule(String uri)
Returns the module identified by a given URI.
|
List<Module> |
getModules()
Returns the entry modules.
|
Date |
getPublishedDate()
Returns the entry published date.
|
SyndFeed |
getSource()
Returns the entry source.
|
String |
getTitle()
Returns the entry title.
|
SyndContent |
getTitleEx()
Returns the entry title as a text construct.
|
Date |
getUpdatedDate()
Returns the updatedDate
|
String |
getUri()
Returns the entry URI.
|
Object |
getWireEntry()
Return the original item this SyndEntry is generated from.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setAuthor(String author)
Sets the entry author.
|
void |
setAuthors(List<SyndPerson> authors)
Sets the entry authors.
|
void |
setCategories(List<SyndCategory> categories)
Sets the entry categories.
|
void |
setComments(String comments)
URL of a page for comments relating to the item.
|
void |
setContents(List<SyndContent> contents)
Sets the entry contents.
|
void |
setContributors(List<SyndPerson> contributors)
Sets the feed contributors.
|
void |
setDescription(SyndContent description)
Sets the entry description.
|
void |
setEnclosures(List<SyndEnclosure> enclosures)
Sets the entry enclosures.
|
void |
setForeignMarkup(List<org.jdom2.Element> foreignMarkup)
Sets foreign markup found at channel level.
|
void |
setLink(String link)
Sets the entry link.
|
void |
setLinks(List<SyndLink> links)
Set the links
|
void |
setModules(List<Module> modules)
Sets the entry modules.
|
void |
setPublishedDate(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(String title)
Sets the entry title.
|
void |
setTitleEx(SyndContent title)
Sets the entry title as a text construct.
|
void |
setUpdatedDate(Date updatedDate)
Set the updatedDate
|
void |
setUri(String uri)
Sets the entry URI.
|
void |
setWireEntry(Object wireEntry) |
String |
toString()
Returns the String representation for the object.
|
public static final Set<String> 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.
protected SyndEntryImpl(Class<?> beanClass, Set<String> convenienceProperties)
beanClass - convenienceProperties - set containing the convenience properties of the SyndEntryImpl
(the are ignored during cloning, check CloneableBean for details).public SyndEntryImpl()
public Object clone() throws CloneNotSupportedException
clone in interface SyndEntryclone in class ObjectCloneNotSupportedException - thrown if an element of the object cannot be cloned.public boolean equals(Object other)
public int hashCode()
It follows the contract defined by the Object hashCode() method.
public String toString()
public 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.
public void setUri(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.
public String getTitle()
public void setTitle(String title)
public SyndContent getTitleEx()
getTitleEx in interface SyndEntrypublic void setTitleEx(SyndContent title)
setTitleEx in interface SyndEntrytitle - the entry title to set, null if none.public String getLink()
public void setLink(String link)
public SyndContent getDescription()
getDescription in interface SyndEntrypublic void setDescription(SyndContent description)
setDescription in interface SyndEntrydescription - the entry description to set, null if none.public List<SyndContent> getContents()
getContents in interface SyndEntrypublic void setContents(List<SyndContent> contents)
setContents in interface SyndEntrycontents - the list of SyndContentImpl elements with the entry contents to set, an empty
list or null if none.public List<SyndEnclosure> getEnclosures()
getEnclosures in interface SyndEntrypublic void setEnclosures(List<SyndEnclosure> enclosures)
setEnclosures in interface SyndEntryenclosures - the list of SyndEnclosure elements with the entry enclosures to set, an
empty list or null if none.public Date getPublishedDate()
This method is a convenience method, it maps to the Dublin Core module date.
getPublishedDate in interface SyndEntrypublic void setPublishedDate(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 List<SyndCategory> getCategories()
getCategories in interface SyndEntrypublic void setCategories(List<SyndCategory> 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 List<Module> getModules()
getModules in interface ExtendablegetModules in interface SyndEntrypublic void setModules(List<Module> 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(String uri)
getModule in interface ExtendablegetModule in interface SyndEntryuri - the URI of the ModuleImpl.public Class<SyndEntry> getInterface()
CopyFromThis is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface in interface CopyFrompublic void copyFrom(CopyFrom 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.
public Date getUpdatedDate()
getUpdatedDate in interface SyndEntrypublic void setUpdatedDate(Date updatedDate)
setUpdatedDate in interface SyndEntryupdatedDate - The updatedDate to set.public List<SyndPerson> getAuthors()
SyndEntryFor Atom feeds, this returns the authors as a list of SyndPerson objects.
getAuthors in interface SyndEntrypublic void setAuthors(List<SyndPerson> authors)
SyndEntryFor Atom feeds, this sets the authors as a list of SyndPerson objects.
setAuthors in interface SyndEntryauthors - the feed authors to set, null if none.public String getAuthor()
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.
public void setAuthor(String author)
This method is a convenience method, it maps to the Dublin Core module creator.
public List<SyndPerson> getContributors()
SyndEntryFor Atom feeds, this returns the contributors as a list of SyndPerson objects
getContributors in interface SyndEntrypublic void setContributors(List<SyndPerson> 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
public void setSource(SyndFeed source)
SyndEntrypublic List<org.jdom2.Element> getForeignMarkup()
getForeignMarkup in interface SyndEntrypublic void setForeignMarkup(List<org.jdom2.Element> foreignMarkup)
setForeignMarkup in interface SyndEntryforeignMarkup - list of JDOM nodes containing channel-level foreign markup, an empty
list if none.public String getComments()
SyndEntrygetComments in interface SyndEntrynull.public void setComments(String comments)
SyndEntrysetComments in interface SyndEntrycomments - URLpublic Object getWireEntry()
SyndEntrygetWireEntry in interface SyndEntrypublic void setWireEntry(Object wireEntry)
public SyndLink findRelatedLink(String relation)
SyndEntryfindRelatedLink in interface SyndEntryCopyright © 2021. All rights reserved.