Top Description Fields Constructors Methods
com.rometools.rome.feed.atom

public Class Feed

extends WireFeed
Class Inheritance
Imports
java.util.Date, .List, com.rometools.rome.feed.WireFeed, com.rometools.rome.feed.module.Module, com.rometools.rome.feed.module.impl.ModuleUtils, com.rometools.rome.feed.synd.SyndPerson, com.rometools.utils.Lists

Bean for Atom feeds.

Field Summary

Modifier and TypeField and Description
private List<Link>
private List<SyndPerson>
private List<Category>
private List<SyndPerson>
private List<Entry>
private Generator
private String
private String
private Content
private String
private String
private List<Module>
private List<Link>
private String
private static final long
private Content
private Content
private Date
private String

Constructor Summary

AccessConstructor and Description
public
Feed()

Default constructor, for bean cloning purposes only.

public
Feed(final String
the type of the Atom feed.
type
)

Feed Constructor.

Method Summary

Modifier and TypeMethod and Description
public List<SyndPerson>

Returns:

the feed author, null if none.
getAuthors
()

Returns the feed author.

public List<Category>

Returns:

Returns the categories.
getCategories
()

Returns the categories

public List<SyndPerson>

Returns:

a list of Person elements with the feed contributors, an empty list if none.
getContributors
()

Returns the feed contributors.

public String

Returns:

the feed copyright, null if none.
getCopyright
()

Returns the feed copyright (Atom 0.3, maps to getRights()).

public List<Entry>

Returns:

a list of Entry elements with the feed entries, an empty list if none.
getEntries
()

Returns the feed entries.

public Generator

Returns:

the feed generator, null if none.
getGenerator
()

Returns the feed generator.

public String

Returns:

Returns the icon.
getIcon
()

Returns the icon

public String

Returns:

the feed ID, null if none.
getId
()

Returns the feed ID.

public Content

Returns:

the feed info, null if none.
getInfo
()

Returns the feed info (Atom 0.3 only)

public String

Returns:

the feed language, null if none.
getLanguage
()

Returns the feed language (Atom 0.3 only)

public String

Returns:

Returns the logo.
getLogo
()

Returns the logo

public Date

Returns:

the feed modified date, null if none.
getModified
()

Returns the feed modified date (Atom 0.3, maps to getUpdated()).

public Module

Returns:

The module with the given URI, null if none.
getModule
(final String
the URI of the ModuleImpl.
uri
)

Overrides com.rometools.rome.feed.WireFeed.getModule.

Implements com.rometools.rome.feed.module.Extendable.getModule.

Returns the module identified by a given URI.
public List<Module>

Returns:

a list of ModuleImpl elements with the feed modules, an empty list if none.
getModules
()

Overrides com.rometools.rome.feed.WireFeed.getModules.

Implements com.rometools.rome.feed.module.Extendable.getModules.

Returns the feed modules.
public String

Returns:

Returns the rights.
getRights
()

Returns the rights

public Content

Returns:

Returns the subtitle.
getSubtitle
()

Returns the subtitle

public Content

Returns:

the feed tag line, null if none.
getTagline
()

Returns the feed tag line (Atom 0.3, maps to getSubtitle()).

public String

Returns:

the feed title, null if none.
getTitle
()

Returns the feed title.

public Content

Returns:

the feed title, null if none.
getTitleEx
()

Returns the feed title.

public Date

Returns:

Returns the updated.
getUpdated
()

Returns the updated

public String

Returns:

Returns the xmlBase.
getXmlBase
()

Returns the xmlBase

public void
setAuthors(final List<SyndPerson>
the feed author to set, null if none.
authors
)

Sets the feed author.

public void
setCategories(final List<Category>
The categories to set.
categories
)

Set the categories

public void
setContributors(final List<SyndPerson>
the list of Person elements with the feed contributors to set, an empty list or null if none.
contributors
)

Sets the feed contributors.

public void
setCopyright(final String
the feed copyright to set, null if none.
copyright
)

Sets the feed copyright (Atom 0.3, maps to setRights(java.lang.String)).

public void
setEntries(final List<Entry>
the list of Entry elements with the feed entries to set, an empty list or null if none.
entries
)

Sets the feed entries.

public void
setGenerator(final Generator
the feed generator to set, null if none.
generator
)

Sets the feed generator.

public void
setIcon(final String
The icon to set.
icon
)

Set the icon

public void
setId(final String
the feed ID to set, null if none.
id
)

Sets the feed ID.

public void
setInfo(final Content
the feed info to set, null if none.
info
)

Sets the feed info (Atom 0.3 only)

public void
setLanguage(final String
the feed language to set, null if none.
language
)

Sets the feed language (Atom 0.3 only)

public void
setLogo(final String
The logo to set.
logo
)

Set the logo

public void
setModified(final Date
the feed modified date to set, null if none.
modified
)

Sets the feed modified date (Atom 0.3, maps to setUpdated(java.util.Date)).

public void
setModules(final List<Module>
the list of ModuleImpl elements with the feed moduless to set, an empty list or null if none.
modules
)

Overrides com.rometools.rome.feed.WireFeed.setModules.

Implements com.rometools.rome.feed.module.Extendable.setModules.

Sets the feed moduless.
public void
setRights(final String
The rights to set.
rights
)

Set the rights

public void
setSubtitle(final Content
The subtitle to set.
subtitle
)

Set the subtitle

public void
setTagline(final Content
the feed tagline to set, null if none.
tagline
)

Sets the feed tagline (Atom 0.3, maps to setSubtitle(com.rometools.rome.feed.atom.Content)).

public void
setTitle(final String
the feed title to set, null if none.
title
)

Sets the feed title.

public void
setTitleEx(final Content
the feed title to set, null if none.
title
)

Sets the feed title.

public void
setUpdated(final Date
The updated to set.
updated
)

Set the updated

public void
setXmlBase(final String
The xmlBase to set.
xmlBase
)

Set the xmlBase

Inherited from com.rometools.rome.feed.WireFeed:
cloneequalsgetEncodinggetFeedTypegetForeignMarkupgetStyleSheethashCodesetEncodingsetFeedTypesetForeignMarkupsetStyleSheettoString

Field Detail

authorsback to summary
private List<SyndPerson> authors
categoriesback to summary
private List<Category> categories
contributorsback to summary
private List<SyndPerson> contributors
entriesback to summary
private List<Entry> entries
generatorback to summary
private Generator generator
iconback to summary
private String icon
idback to summary
private String id
infoback to summary
private Content info
languageback to summary
private String language
modulesback to summary
private List<Module> modules

Hides com.rometools.rome.feed.WireFeed.modules.

rightsback to summary
private String rights
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.rometools.rome.feed.WireFeed.serialVersionUID.

subtitleback to summary
private Content subtitle
titleback to summary
private Content title
updatedback to summary
private Date updated
xmlBaseback to summary
private String xmlBase

Constructor Detail

Feedback to summary
public Feed()

Default constructor, for bean cloning purposes only.

Feedback to summary
public Feed(final String type)

Feed Constructor. All properties, except the type, are set to null.

Parameters
type:String

the type of the Atom feed.

Method Detail

getAuthorsback to summary
public List<SyndPerson> getAuthors()

Returns the feed author.

Returns:List<SyndPerson>

the feed author, null if none.

getCategoriesback to summary
public List<Category> getCategories()

Returns the categories

Returns:List<Category>

Returns the categories.

Since
Atom 1.0
getContributorsback to summary
public List<SyndPerson> getContributors()

Returns the feed contributors.

Returns:List<SyndPerson>

a list of Person elements with the feed contributors, an empty list if none.

getCopyrightback to summary
public String getCopyright()

Returns the feed copyright (Atom 0.3, maps to getRights()).

Returns:String

the feed copyright, null if none.

getEntriesback to summary
public List<Entry> getEntries()

Returns the feed entries.

Returns:List<Entry>

a list of Entry elements with the feed entries, an empty list if none.

getGeneratorback to summary
public Generator getGenerator()

Returns the feed generator.

Returns:Generator

the feed generator, null if none.

getIconback to summary
public String getIcon()

Returns the icon

Returns:String

Returns the icon.

Since
Atom 1.0
getIdback to summary
public String getId()

Returns the feed ID.

Returns:String

the feed ID, null if none.

getInfoback to summary
public Content getInfo()

Returns the feed info (Atom 0.3 only)

Returns:Content

the feed info, null if none.

getLanguageback to summary
public String getLanguage()

Returns the feed language (Atom 0.3 only)

Returns:String

the feed language, null if none.

getLogoback to summary
public String getLogo()

Returns the logo

Returns:String

Returns the logo.

Since
Atom 1.0
getModifiedback to summary
public Date getModified()

Returns the feed modified date (Atom 0.3, maps to getUpdated()).

Returns:Date

the feed modified date, null if none.

getModuleback to summary
public Module getModule(final String uri)

Overrides com.rometools.rome.feed.WireFeed.getModule.

Implements com.rometools.rome.feed.module.Extendable.getModule.

Returns the module identified by a given URI.

Parameters
uri:String

the URI of the ModuleImpl.

Returns:Module

The module with the given URI, null if none.

Annotations
@Override
getModulesback to summary
public List<Module> getModules()

Overrides com.rometools.rome.feed.WireFeed.getModules.

Implements com.rometools.rome.feed.module.Extendable.getModules.

Returns the feed modules.

Returns:List<Module>

a list of ModuleImpl elements with the feed modules, an empty list if none.

Annotations
@Override
getRightsback to summary
public String getRights()

Returns the rights

Returns:String

Returns the rights.

Since
Atom 1.0
getSubtitleback to summary
public Content getSubtitle()

Returns the subtitle

Returns:Content

Returns the subtitle.

Since
Atom 1.0
getTaglineback to summary
public Content getTagline()

Returns the feed tag line (Atom 0.3, maps to getSubtitle()).

Returns:Content

the feed tag line, null if none.

getTitleback to summary
public String getTitle()

Returns the feed title.

Returns:String

the feed title, null if none.

getTitleExback to summary
public Content getTitleEx()

Returns the feed title.

Returns:Content

the feed title, null if none.

getUpdatedback to summary
public Date getUpdated()

Returns the updated

Returns:Date

Returns the updated.

Since
Atom 1.0
getXmlBaseback to summary
public String getXmlBase()

Returns the xmlBase

Returns:String

Returns the xmlBase.

Since
Atom 1.0
setAuthorsback to summary
public void setAuthors(final List<SyndPerson> authors)

Sets the feed author.

Parameters
authors:List<SyndPerson>

the feed author to set, null if none.

setCategoriesback to summary
public void setCategories(final List<Category> categories)

Set the categories

Parameters
categories:List<Category>

The categories to set.

Since
Atom 1.0
setContributorsback to summary
public void setContributors(final List<SyndPerson> contributors)

Sets the feed contributors.

Parameters
contributors:List<SyndPerson>

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

setCopyrightback to summary
public void setCopyright(final String copyright)

Sets the feed copyright (Atom 0.3, maps to setRights(java.lang.String)).

Parameters
copyright:String

the feed copyright to set, null if none.

setEntriesback to summary
public void setEntries(final List<Entry> entries)

Sets the feed entries.

Parameters
entries:List<Entry>

the list of Entry elements with the feed entries to set, an empty list or null if none.

setGeneratorback to summary
public void setGenerator(final Generator generator)

Sets the feed generator.

Parameters
generator:Generator

the feed generator to set, null if none.

setIconback to summary
public void setIcon(final String icon)

Set the icon

Parameters
icon:String

The icon to set.

Since
Atom 1.0
setIdback to summary
public void setId(final String id)

Sets the feed ID.

Parameters
id:String

the feed ID to set, null if none.

setInfoback to summary
public void setInfo(final Content info)

Sets the feed info (Atom 0.3 only)

Parameters
info:Content

the feed info to set, null if none.

setLanguageback to summary
public void setLanguage(final String language)

Sets the feed language (Atom 0.3 only)

Parameters
language:String

the feed language to set, null if none.

setLogoback to summary
public void setLogo(final String logo)

Set the logo

Parameters
logo:String

The logo to set.

Since
Atom 1.0
setModifiedback to summary
public void setModified(final Date modified)

Sets the feed modified date (Atom 0.3, maps to setUpdated(java.util.Date)).

Parameters
modified:Date

the feed modified date to set, null if none.

setModulesback to summary
public void setModules(final List<Module> modules)

Overrides com.rometools.rome.feed.WireFeed.setModules.

Implements com.rometools.rome.feed.module.Extendable.setModules.

Sets the feed moduless.

Parameters
modules:List<Module>

the list of ModuleImpl elements with the feed moduless to set, an empty list or null if none.

Annotations
@Override
setRightsback to summary
public void setRights(final String rights)

Set the rights

Parameters
rights:String

The rights to set.

Since
Atom 1.0
setSubtitleback to summary
public void setSubtitle(final Content subtitle)

Set the subtitle

Parameters
subtitle:Content

The subtitle to set.

Since
Atom 1.0
setTaglineback to summary
public void setTagline(final Content tagline)

Sets the feed tagline (Atom 0.3, maps to setSubtitle(com.rometools.rome.feed.atom.Content)).

Parameters
tagline:Content

the feed tagline to set, null if none.

setTitleback to summary
public void setTitle(final String title)

Sets the feed title.

Parameters
title:String

the feed title to set, null if none.

setTitleExback to summary
public void setTitleEx(final Content title)

Sets the feed title.

Parameters
title:Content

the feed title to set, null if none.

setUpdatedback to summary
public void setUpdated(final Date updated)

Set the updated

Parameters
updated:Date

The updated to set.

Since
Atom 1.0
setXmlBaseback to summary
public void setXmlBase(final String xmlBase)

Set the xmlBase

Parameters
xmlBase:String

The xmlBase to set.

Since
Atom 1.0