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 entry author.
|
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 author.
|
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 SyndEntry
clone
in class Object
CloneNotSupportedException
- 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 SyndEntry
public void setTitleEx(SyndContent title)
setTitleEx
in interface SyndEntry
title
- the entry title to set, null if none.public String getLink()
public void setLink(String link)
public SyndContent getDescription()
getDescription
in interface SyndEntry
public void setDescription(SyndContent description)
setDescription
in interface SyndEntry
description
- the entry description to set, null if none.public List<SyndContent> getContents()
getContents
in interface SyndEntry
public void setContents(List<SyndContent> contents)
setContents
in interface SyndEntry
contents
- 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 SyndEntry
public void setEnclosures(List<SyndEnclosure> enclosures)
setEnclosures
in interface SyndEntry
enclosures
- 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 SyndEntry
public void setPublishedDate(Date publishedDate)
This method is a convenience method, it maps to the Dublin Core module date.
setPublishedDate
in interface SyndEntry
publishedDate
- the entry published date to set, null if none.public List<SyndCategory> getCategories()
getCategories
in interface SyndEntry
public void setCategories(List<SyndCategory> categories)
This method is a convenience method, it maps to the Dublin Core module subjects.
setCategories
in interface SyndEntry
categories
- 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 Extendable
getModules
in interface SyndEntry
public void setModules(List<Module> modules)
setModules
in interface Extendable
setModules
in interface SyndEntry
modules
- 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 Extendable
getModule
in interface SyndEntry
uri
- the URI of the ModuleImpl.public Class<SyndEntry> getInterface()
CopyFrom
This is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface
in interface CopyFrom
public void copyFrom(CopyFrom obj)
CopyFrom
Any 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 SyndEntry
public void setUpdatedDate(Date updatedDate)
setUpdatedDate
in interface SyndEntry
updatedDate
- The updatedDate to set.public List<SyndPerson> getAuthors()
SyndEntry
For 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 SyndEntry
public void setAuthors(List<SyndPerson> authors)
SyndEntry
For 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 SyndEntry
authors
- the feed author to set, null if none.public String getAuthor()
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()
SyndEntry
For Atom feeds, this returns the contributors as a list of SyndPerson objects
getContributors
in interface SyndEntry
public void setContributors(List<SyndPerson> contributors)
SyndEntry
Returns contributors as a list of SyndPerson objects.
setContributors
in interface SyndEntry
contributors
- the feed contributors to set, null if none.public SyndFeed getSource()
SyndEntry
This returns the entry source as a SyndFeed
public void setSource(SyndFeed source)
SyndEntry
public List<org.jdom2.Element> getForeignMarkup()
getForeignMarkup
in interface SyndEntry
public void setForeignMarkup(List<org.jdom2.Element> foreignMarkup)
setForeignMarkup
in interface SyndEntry
foreignMarkup
- list of JDOM nodes containing channel-level foreign markup, an empty
list if none.public String getComments()
SyndEntry
getComments
in interface SyndEntry
null
.public void setComments(String comments)
SyndEntry
setComments
in interface SyndEntry
comments
- URLpublic Object getWireEntry()
SyndEntry
getWireEntry
in interface SyndEntry
public void setWireEntry(Object wireEntry)
public SyndLink findRelatedLink(String relation)
SyndEntry
findRelatedLink
in interface SyndEntry
Copyright © 2019. All rights reserved.