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