|
||||||||||
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 Set |
CONVENIENCE_PROPERTIES
Unmodifiable Set containing the convenience properties of this class. |
Constructor Summary | |
---|---|
|
SyndEntryImpl()
Default constructor. |
protected |
SyndEntryImpl(Class beanClass,
Set convenienceProperties)
For implementations extending SyndEntryImpl to be able to use the ObjectBean functionality with extended interfaces. |
Method Summary | |
---|---|
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 |
getAuthors()
Returns the entry authors. |
List<SyndCategory> |
getCategories()
Returns the entry categories. |
List<SyndContent> |
getContents()
Returns the entry contents. |
List |
getContributors()
Returns the feed author. |
SyndContent |
getDescription()
Returns the entry description. |
List<SyndEnclosure> |
getEnclosures()
Returns the entry enclosures. |
Object |
getForeignMarkup()
Returns foreign markup found at channel level. |
Class |
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 authors)
Sets the entry author. |
void |
setCategories(List<SyndCategory> categories)
Sets the entry categories. |
void |
setContents(List<SyndContent> contents)
Sets the entry contents. |
void |
setContributors(List contributors)
Sets the feed contributors. |
void |
setDescription(SyndContent description)
Sets the entry description. |
void |
setEnclosures(List<SyndEnclosure> enclosures)
Sets the entry enclosures. |
void |
setForeignMarkup(Object foreignMarkup)
Sets foreign markup found at channel level. |
void |
setLink(String link)
Sets the entry link. |
void |
setLinks(List 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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final 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(Class beanClass, 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 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)
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 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 SyndEntry
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.
setUri
in interface SyndEntry
uri
- the entry URI to set, null if none.public String getTitle()
getTitle
in interface SyndEntry
public void setTitle(String title)
setTitle
in interface SyndEntry
title
- the entry title to set, null if none.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()
getLink
in interface SyndEntry
public void setLink(String link)
setLink
in interface SyndEntry
link
- the entry link to set, null if none.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 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.
copyFrom
in interface CopyFrom
obj
- the instance to copy properties from.public List<SyndLink> getLinks()
getLinks
in interface SyndEntry
public void setLinks(List links)
setLinks
in interface SyndEntry
links
- The links to set.public Date getUpdatedDate()
getUpdatedDate
in interface SyndEntry
public void setUpdatedDate(Date updatedDate)
setUpdatedDate
in interface SyndEntry
updatedDate
- The updatedDate to set.public List 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 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.
getAuthor
in interface SyndEntry
public void setAuthor(String author)
This method is a convenience method, it maps to the Dublin Core module creator.
setAuthor
in interface SyndEntry
author
- the entry author to set, null if none.public List getContributors()
SyndEntry
For Atom feeds, this returns the contributors as a list of SyndPerson objects
getContributors
in interface SyndEntry
public void setContributors(List 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
getSource
in interface SyndEntry
public void setSource(SyndFeed source)
SyndEntry
setSource
in interface SyndEntry
source
- the original SyndFeed that contained this articlepublic Object getForeignMarkup()
getForeignMarkup
in interface SyndEntry
public void setForeignMarkup(Object foreignMarkup)
setForeignMarkup
in interface SyndEntry
foreignMarkup
- list of JDOM nodes containing channel-level foreign markup,
an empty list if none.public Object getWireEntry()
SyndEntry
getWireEntry
in interface SyndEntry
public void setWireEntry(Object wireEntry)
public SyndLink findRelatedLink(String relation)
SyndEntry
findRelatedLink
in interface SyndEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |