com.sun.syndication.feed.atom

Class Entry

public class Entry extends Object implements Cloneable, Serializable, Extendable

Bean for entry elements of Atom feeds.

Author: Alejandro Abdelnur Dave Johnson (updated for Atom 1.0)

Field Summary
List_alternateLinks
List_authors
List_categories
List_contents
List_contributors
Date_created
List_foreignMarkup
String_id
List_modules
ObjectBean_objBean
List_otherLinks
Date_published
String_rights
Feed_source
Content_summary
Content_title
Date_updated
String_xmlBase
Constructor Summary
Entry()
Default constructor.
Method Summary
Objectclone()
Creates a deep 'bean' clone of the object.
booleanequals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
ListgetAlternateLinks()
Returns the entry alternate links.
ListgetAuthors()
Returns the entry author.
ListgetCategories()
Returns the categories

ListgetContents()
Returns the entry contents.
ListgetContributors()
Returns the entry contributors.
DategetCreated()
Returns the entry created date (Atom 0.3 only)

ObjectgetForeignMarkup()
Returns foreign markup found at entry level.
StringgetId()
Returns the entry ID.
DategetIssued()
Returns the entry issued date (Atom 0.3, maps to getPublished()).
DategetModified()
Returns the entry modified date (Atom 0.3, maps to getUpdated()).
ModulegetModule(String uri)
Returns the module identified by a given URI.
ListgetModules()
Returns the entry modules.
ListgetOtherLinks()
Returns the entry non-alternate links.
DategetPublished()
Returns the published

StringgetRights()
Returns the rights

FeedgetSource()
Returns the source

ContentgetSummary()
Returns the entry summary.
StringgetTitle()
Returns the entry title.
ContentgetTitleEx()
Returns the entry title as a text construct.
DategetUpdated()
Returns the updated

StringgetXmlBase()
Returns the xmlBase

inthashCode()
Returns a hashcode value for the object.
voidsetAlternateLinks(List alternateLinks)
Sets the entry alternate links.
voidsetAuthors(List authors)
Sets the author of the entry.
voidsetCategories(List categories)
Set the categories

voidsetContents(List contents)
Sets the entry contents.
voidsetContributors(List contributors)
Sets the entry contributors.
voidsetCreated(Date created)
Sets the entry created date (Atom 0.3 only)

voidsetForeignMarkup(Object foreignMarkup)
Sets foreign markup found at entry level.
voidsetId(String id)
Sets the entry ID.
voidsetIssued(Date issued)
Sets the entry issued date (Atom 0.3, maps to setPublished()).
voidsetModified(Date modified)
Sets the entry modified date (Atom 0.3, maps to setUpdated()).
voidsetModules(List modules)
Sets the entry modules.
voidsetOtherLinks(List otherLinks)
Sets the entry non-alternate links.
voidsetPublished(Date published)
Set the published

voidsetRights(String rights)
Set the rights

voidsetSource(Feed source)
Set the source

voidsetSummary(Content summary)
Sets the entry summary.
voidsetTitle(String title)
Sets the entry title.
voidsetTitleEx(Content title)
Sets the entry title as a text construct.
voidsetUpdated(Date updated)
Set the updated

voidsetXmlBase(String xmlBase)
Set the xmlBase

StringtoString()
Returns the String representation for the object.

Field Detail

_alternateLinks

private List _alternateLinks

_authors

private List _authors

_categories

private List _categories

_contents

private List _contents

_contributors

private List _contributors

_created

private Date _created

_foreignMarkup

private List _foreignMarkup

_id

private String _id

_modules

private List _modules

_objBean

private ObjectBean _objBean

_otherLinks

private List _otherLinks

_published

private Date _published

_rights

private String _rights

_source

private Feed _source

_summary

private Content _summary

_title

private Content _title

_updated

private Date _updated

_xmlBase

private String _xmlBase

Constructor Detail

Entry

public Entry()
Default constructor. All properties are set to null.

Method Detail

clone

public Object clone()
Creates a deep 'bean' clone of the object.

Returns: a clone of the object.

Throws: CloneNotSupportedException thrown if an element of the object cannot be cloned.

equals

public boolean equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

Parameters: other he reference object with which to compare.

Returns: true if 'this' object is equal to the 'other' object.

getAlternateLinks

public List getAlternateLinks()
Returns the entry alternate links.

Returns: a list of Link elements with the entry alternate links, an empty list if none.

getAuthors

public List getAuthors()
Returns the entry author.

Returns: the entry author, null if none.

getCategories

public List getCategories()
Returns the categories

Returns: Returns the categories.

Since: Atom 1.0

getContents

public List getContents()
Returns the entry contents.

Returns: a list of Content elements with the entry contents, an empty list if none.

getContributors

public List getContributors()
Returns the entry contributors.

Returns: a list of Person elements with the entry contributors, an empty list if none.

getCreated

public Date getCreated()
Returns the entry created date (Atom 0.3 only)

Returns: the entry created date, null if none.

getForeignMarkup

public Object getForeignMarkup()
Returns foreign markup found at entry level.

Returns: list of Opaque object to discourage use

getId

public String getId()
Returns the entry ID.

Returns: the entry ID, null if none.

getIssued

public Date getIssued()
Returns the entry issued date (Atom 0.3, maps to getPublished()).

Returns: the entry issued date, null if none.

getModified

public Date getModified()
Returns the entry modified date (Atom 0.3, maps to getUpdated()).

Returns: the entry modified date, null if none.

getModule

public Module getModule(String uri)
Returns the module identified by a given URI.

Parameters: uri the URI of the ModuleImpl.

Returns: The module with the given URI, null if none.

getModules

public List getModules()
Returns the entry modules.

Returns: a list of ModuleImpl elements with the entry modules, an emtpy list if none.

getOtherLinks

public List getOtherLinks()
Returns the entry non-alternate links.

Returns: the list of Link elements with the entry non-alternate links to set, an empty list if none.

getPublished

public Date getPublished()
Returns the published

Returns: Returns the published.

Since: Atom 1.0

getRights

public String getRights()
Returns the rights

Returns: Returns the rights.

Since: Atom 1.0

getSource

public Feed getSource()
Returns the source

Returns: Returns the source.

getSummary

public Content getSummary()
Returns the entry summary.

Returns: the entry summary, null if none.

getTitle

public String getTitle()
Returns the entry title.

Returns: the entry title, null if none.

getTitleEx

public Content getTitleEx()
Returns the entry title as a text construct.

Returns: the entry title, null if none.

getUpdated

public Date getUpdated()
Returns the updated

Returns: Returns the updated.

Since: Atom 1.0

getXmlBase

public String getXmlBase()
Returns the xmlBase

Returns: Returns the xmlBase.

Since: Atom 1.0

hashCode

public int hashCode()
Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

Returns: the hashcode of the bean object.

setAlternateLinks

public void setAlternateLinks(List alternateLinks)
Sets the entry alternate links.

Parameters: alternateLinks the list of Link elements with the entry alternate links to set, an empty list or null if none.

setAuthors

public void setAuthors(List authors)
Sets the author of the entry.

Parameters: author the author of the entry, null if none.

setCategories

public void setCategories(List categories)
Set the categories

Parameters: categories The categories to set.

Since: Atom 1.0

setContents

public void setContents(List contents)
Sets the entry contents.

Parameters: contents the list of Content elements with the entry contents to set, an empty list or null if none.

setContributors

public void setContributors(List contributors)
Sets the entry contributors.

Parameters: contributors the list of Person elements with the entry contributors to set, an empty list or null if none.

setCreated

public void setCreated(Date created)
Sets the entry created date (Atom 0.3 only)

Parameters: created the entry created date, null if none.

setForeignMarkup

public void setForeignMarkup(Object foreignMarkup)
Sets foreign markup found at entry level.

Parameters: foreignMarkup Opaque object to discourage use

setId

public void setId(String id)
Sets the entry ID.

Parameters: id the entry ID, null if none.

setIssued

public void setIssued(Date issued)
Sets the entry issued date (Atom 0.3, maps to setPublished()).

Parameters: issued the entry issued date, null if none.

setModified

public void setModified(Date modified)
Sets the entry modified date (Atom 0.3, maps to setUpdated()).

Parameters: modified the entry modified date, null if none.

setModules

public void setModules(List modules)
Sets the entry modules.

Parameters: modules the list of ModuleImpl elements with the entry modules to set, an empty list or null if none.

setOtherLinks

public void setOtherLinks(List otherLinks)
Sets the entry non-alternate links.

Parameters: otherLinks the list Link elements with the entry non-alternate links to set, an empty list or null if none.

setPublished

public void setPublished(Date published)
Set the published

Parameters: published The published to set.

Since: Atom 1.0

setRights

public void setRights(String rights)
Set the rights

Parameters: rights The rights to set.

Since: Atom 1.0

setSource

public void setSource(Feed source)
Set the source

Parameters: source The source to set.

setSummary

public void setSummary(Content summary)
Sets the entry summary.

Parameters: summary the entry summary, null if none.

setTitle

public void setTitle(String title)
Sets the entry title.

Parameters: title the entry title, null if none.

setTitleEx

public void setTitleEx(Content title)
Sets the entry title as a text construct.

Parameters: title the entry title, null if none.

setUpdated

public void setUpdated(Date updated)
Set the updated

Parameters: updated The updated to set.

Since: Atom 1.0

setXmlBase

public void setXmlBase(String xmlBase)
Set the xmlBase

Parameters: xmlBase The xmlBase to set.

Since: Atom 1.0

toString

public String toString()
Returns the String representation for the object.

Returns: String representation for the object.

Copyright © Sun Microsystems. All Rights Reserved.