public class Entry extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable, Extendable
Modifier and Type | Field and Description |
---|---|
private java.util.List<Link> |
alternateLinks |
private java.util.List<SyndPerson> |
authors |
private java.util.List<Category> |
categories |
private java.util.List<Content> |
contents |
private java.util.List<SyndPerson> |
contributors |
private java.util.Date |
created |
private java.util.List<org.jdom2.Element> |
foreignMarkup |
private java.lang.String |
id |
private java.util.List<Module> |
modules |
private ObjectBean |
objBean |
private java.util.List<Link> |
otherLinks |
private java.util.Date |
published |
private java.lang.String |
rights |
private static long |
serialVersionUID |
private Feed |
source |
private Content |
summary |
private Content |
title |
private java.util.Date |
updated |
private java.lang.String |
xmlBase |
Constructor and Description |
---|
Entry() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a deep 'bean' clone of the object.
|
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals()
method.
|
Link |
findRelatedLink(java.lang.String relation) |
java.util.List<Link> |
getAlternateLinks()
Returns the entry alternate links.
|
java.util.List<SyndPerson> |
getAuthors()
Returns the entry author.
|
java.util.List<Category> |
getCategories()
Returns the categories
|
java.util.List<Content> |
getContents()
Returns the entry contents.
|
java.util.List<SyndPerson> |
getContributors()
Returns the entry contributors.
|
java.util.Date |
getCreated()
Returns the entry created date (Atom 0.3 only)
|
java.util.List<org.jdom2.Element> |
getForeignMarkup()
Returns foreign markup found at entry level.
|
java.lang.String |
getId()
Returns the entry ID.
|
java.util.Date |
getIssued()
Returns the entry issued date (Atom 0.3, maps to
getPublished() ). |
java.util.Date |
getModified()
Returns the entry modified date (Atom 0.3, maps to
getUpdated() ). |
Module |
getModule(java.lang.String uri)
Returns the module identified by a given URI.
|
java.util.List<Module> |
getModules()
Returns the entry modules.
|
java.util.List<Link> |
getOtherLinks()
Returns the entry non-alternate links.
|
java.util.Date |
getPublished()
Returns the published
|
java.lang.String |
getRights()
Returns the rights
|
Feed |
getSource()
Returns the source
|
Content |
getSummary()
Returns the entry summary.
|
java.lang.String |
getTitle()
Returns the entry title.
|
Content |
getTitleEx()
Returns the entry title as a text construct.
|
java.util.Date |
getUpdated()
Returns the updated
|
java.lang.String |
getXmlBase()
Returns the xmlBase
|
int |
hashCode()
Returns a hashcode value for the object.
|
boolean |
isMediaEntry()
Returns true if entry is a media entry, i.e.
|
void |
setAlternateLinks(java.util.List<Link> alternateLinks)
Sets the entry alternate links.
|
void |
setAuthors(java.util.List<SyndPerson> authors)
Sets the author of the entry.
|
void |
setCategories(java.util.List<Category> categories)
Set the categories
|
void |
setContents(java.util.List<Content> contents)
Sets the entry contents.
|
void |
setContributors(java.util.List<SyndPerson> contributors)
Sets the entry contributors.
|
void |
setCreated(java.util.Date created)
Sets the entry created date (Atom 0.3 only)
|
void |
setForeignMarkup(java.util.List<org.jdom2.Element> foreignMarkup)
Sets foreign markup found at entry level.
|
void |
setId(java.lang.String id)
Sets the entry ID.
|
void |
setIssued(java.util.Date issued)
Sets the entry issued date (Atom 0.3, maps to
setPublished(java.util.Date) ). |
void |
setModified(java.util.Date modified)
Sets the entry modified date (Atom 0.3, maps to
setUpdated(java.util.Date) ). |
void |
setModules(java.util.List<Module> modules)
Sets the entry modules.
|
void |
setOtherLinks(java.util.List<Link> otherLinks)
Sets the entry non-alternate links.
|
void |
setPublished(java.util.Date published)
Set the published
|
void |
setRights(java.lang.String rights)
Set the rights
|
void |
setSource(Feed source)
Set the source
|
void |
setSummary(Content summary)
Sets the entry summary.
|
void |
setTitle(java.lang.String title)
Sets the entry title.
|
void |
setTitleEx(Content title)
Sets the entry title as a text construct.
|
void |
setUpdated(java.util.Date updated)
Set the updated
|
void |
setXmlBase(java.lang.String xmlBase)
Set the xmlBase
|
java.lang.String |
toString()
Returns the String representation for the object.
|
private static final long serialVersionUID
private Content summary
private Content title
private java.util.Date created
private java.util.Date published
private java.util.Date updated
private Feed source
private java.util.List<Link> alternateLinks
private java.util.List<SyndPerson> authors
private java.util.List<Category> categories
private java.util.List<Content> contents
private java.util.List<SyndPerson> contributors
private java.util.List<org.jdom2.Element> foreignMarkup
private java.util.List<Module> modules
private java.util.List<Link> otherLinks
private final ObjectBean objBean
private java.lang.String id
private java.lang.String rights
private java.lang.String xmlBase
public void setAlternateLinks(java.util.List<Link> alternateLinks)
alternateLinks
- the list of Link elements with the entry alternate links to set, an
empty list or null if none.public java.util.List<Link> getAlternateLinks()
public void setAuthors(java.util.List<SyndPerson> authors)
authors
- the author of the entry, null if none.public java.util.List<SyndPerson> getAuthors()
public void setCategories(java.util.List<Category> categories)
categories
- The categories to set.public java.util.List<Category> getCategories()
public void setContents(java.util.List<Content> contents)
contents
- the list of Content elements with the entry contents to set, an empty list or
null if none.public java.util.List<Content> getContents()
public void setContributors(java.util.List<SyndPerson> contributors)
contributors
- the list of Person elements with the entry contributors to set, an empty
list or null if none.public java.util.List<SyndPerson> getContributors()
public void setCreated(java.util.Date created)
created
- the entry created date, null if none.public java.util.Date getCreated()
public void setForeignMarkup(java.util.List<org.jdom2.Element> foreignMarkup)
foreignMarkup
- Opaque object to discourage usepublic java.util.List<org.jdom2.Element> getForeignMarkup()
public void setId(java.lang.String id)
id
- the entry ID, null if none.public java.lang.String getId()
public void setIssued(java.util.Date issued)
setPublished(java.util.Date)
).
issued
- the entry issued date, null if none.public java.util.Date getIssued()
getPublished()
).
public boolean isMediaEntry()
public void setModified(java.util.Date modified)
setUpdated(java.util.Date)
).
modified
- the entry modified date, null if none.public java.util.Date getModified()
getUpdated()
).
public Module getModule(java.lang.String uri)
getModule
in interface Extendable
uri
- the URI of the ModuleImpl.public void setModules(java.util.List<Module> modules)
setModules
in interface Extendable
modules
- the list of ModuleImpl elements with the entry modules to set, an empty list
or null if none.public java.util.List<Module> getModules()
getModules
in interface Extendable
public void setOtherLinks(java.util.List<Link> otherLinks)
otherLinks
- the list Link elements with the entry non-alternate links to set, an empty
list or null if none.public java.util.List<Link> getOtherLinks()
public void setPublished(java.util.Date published)
published
- The published to set.public java.util.Date getPublished()
public void setRights(java.lang.String rights)
rights
- The rights to set.public java.lang.String getRights()
public void setSource(Feed source)
source
- The source to set.public Feed getSource()
public void setSummary(Content summary)
summary
- the entry summary, null if none.public Content getSummary()
public void setTitle(java.lang.String title)
title
- the entry title, null if none.public java.lang.String getTitle()
public void setTitleEx(Content title)
title
- the entry title, null if none.public Content getTitleEx()
public void setUpdated(java.util.Date updated)
updated
- The updated to set.public java.util.Date getUpdated()
public void setXmlBase(java.lang.String xmlBase)
xmlBase
- The xmlBase to set.public java.lang.String getXmlBase()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- thrown if an element of the object cannot be cloned.public boolean equals(java.lang.Object other)
equals
in class java.lang.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 java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Link findRelatedLink(java.lang.String relation)