Top Description Fields Constructors Methods
com.rometools.rome.io.impl

public Class Atom03Generator

extends BaseWireFeedGenerator
Class Inheritance
Imports
java.io.StringReader, java.util.Date, .List, .Locale, org.jdom2.Attribute, .Document, .Element, .Namespace, org.jdom2.input.SAXBuilder, com.rometools.rome.feed.WireFeed, com.rometools.rome.feed.atom.Content, .Entry, .Feed, .Generator, .Link, com.rometools.rome.feed.synd.SyndPerson, com.rometools.rome.io.FeedException, com.rometools.utils.Lists

Feed Generator for Atom

Field Summary

Modifier and TypeField and Description
private static final String
private static final Namespace
private final String

Constructor Summary

AccessConstructor and Description
public
protected
Atom03Generator(final String type, final String version)

Method Summary

Modifier and TypeMethod and Description
protected void
addEntries(final Feed feed, final Element parent)

protected void
addEntry(final Entry entry, final Element parent)

protected void
addFeed(final Feed feed, final Element parent)

protected void
protected void
protected void
protected Document
createDocument(final Element root)

protected Element
createRootElement(final Feed feed)

protected void
fillContentElement(final Element contentElement, final Content content)

protected void
fillPersonElement(final Element element, final SyndPerson person)

public Document
generate(final WireFeed
the feed bean to generate the XML document from.
wFeed
)

Implements com.rometools.rome.io.WireFeedGenerator.generate.

Creates an XML document (JDOM) for the given feed bean.
protected Element
protected Element
generateSimpleElement(final String name, final String value)

protected Element
protected Namespace
protected String
protected void
populateEntry(final Entry entry, final Element eEntry)

protected void
populateFeed(final Feed feed, final Element parent)

protected void
populateFeedHeader(final Feed feed, final Element eFeed)

Inherited from com.rometools.rome.io.impl.BaseWireFeedGenerator:
generateFeedModulesgenerateForeignMarkupgenerateItemModulesgenerateModuleNamespaceDefsgeneratePersonModulesgetTypepurgeUnusedNamespaceDeclarations

Field Detail

ATOM_03_URIback to summary
private static final String ATOM_03_URI
ATOM_NSback to summary
private static final Namespace ATOM_NS
versionback to summary
private final String version

Constructor Detail

Atom03Generatorback to summary
public Atom03Generator()
Atom03Generatorback to summary
protected Atom03Generator(final String type, final String version)

Method Detail

addEntriesback to summary
protected void addEntries(final Feed feed, final Element parent) throws FeedException
addEntryback to summary
protected void addEntry(final Entry entry, final Element parent) throws FeedException
addFeedback to summary
protected void addFeed(final Feed feed, final Element parent) throws FeedException
checkEntriesConstraintsback to summary
protected void checkEntriesConstraints(final Element parent) throws FeedException
checkEntryConstraintsback to summary
protected void checkEntryConstraints(final Element eEntry) throws FeedException
checkFeedHeaderConstraintsback to summary
protected void checkFeedHeaderConstraints(final Element eFeed) throws FeedException
createDocumentback to summary
protected Document createDocument(final Element root)
createRootElementback to summary
protected Element createRootElement(final Feed feed)
fillContentElementback to summary
protected void fillContentElement(final Element contentElement, final Content content) throws FeedException
fillPersonElementback to summary
protected void fillPersonElement(final Element element, final SyndPerson person)
generateback to summary
public Document generate(final WireFeed wFeed) throws FeedException

Implements com.rometools.rome.io.WireFeedGenerator.generate.

Doc from com.rometools.rome.io.WireFeedGenerator.generate.

Creates an XML document (JDOM) for the given feed bean.

Parameters
wFeed:WireFeed

the feed bean to generate the XML document from.

Returns:Document

the generated XML document (JDOM).

Annotations
@Override
Exceptions
FeedException:
thrown if the XML Document could not be created.
generateGeneratorElementback to summary
protected Element generateGeneratorElement(final Generator generator)
generateSimpleElementback to summary
protected Element generateSimpleElement(final String name, final String value)
generateTagLineElementback to summary
protected Element generateTagLineElement(final Content tagline)
getFeedNamespaceback to summary
protected Namespace getFeedNamespace()
getVersionback to summary
protected String getVersion()
populateEntryback to summary
protected void populateEntry(final Entry entry, final Element eEntry) throws FeedException
populateFeedback to summary
protected void populateFeed(final Feed feed, final Element parent) throws FeedException
populateFeedHeaderback to summary
protected void populateFeedHeader(final Feed feed, final Element eFeed) throws FeedException