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

public Class RSS090Generator

extends BaseWireFeedGenerator
Class Inheritance
Known Direct Subclasses
com.rometools.rome.io.impl.RSS091UserlandGenerator, com.rometools.rome.io.impl.RSS10Generator
Imports
java.util.List, org.jdom2.Document, .Element, .Namespace, com.rometools.rome.feed.WireFeed, com.rometools.rome.feed.rss.Channel, .Image, .Item, .TextInput, com.rometools.rome.io.FeedException

Feed Generator for RSS 0.90

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
protected
RSS090Generator(final String type)

Method Summary

Modifier and TypeMethod and Description
protected void
addChannel(final Channel channel, final Element parent)

protected void
addImage(final Channel channel, final Element parent)

protected void
addItem(final Item item, final Element parent, final int index)

protected void
addItems(final Channel channel, final Element parent)

protected void
addTextInput(final Channel channel, final Element parent)

protected void
protected void
protected void
protected void
protected void
checkLength(final Element parent, final String childName, final int minLen, final int maxLen)

protected void
checkNotNullAndLength(final Element parent, final String childName, final int minLen, final int maxLen)

protected void
protected Document
createDocument(final Element root)

protected Element
createRootElement(final Channel channel)

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

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

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

protected Namespace
protected Namespace
protected Namespace
protected String
protected void
populateChannel(final Channel
the channel into which parsed data will be added.
channel
,
final Element
the XML element that holds the data for the channel.
eChannel
)

Populates the given channel with parsed data from the ROME element that holds the channel data.

protected void
populateFeed(final Channel channel, final Element parent)

protected void
populateImage(final Image image, final Element eImage)

protected void
populateItem(final Item item, final Element eItem, final int index)

protected void
populateTextInput(final TextInput textInput, final Element eTextInput)

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

Field Detail

CONTENT_NSback to summary
private static final Namespace CONTENT_NS
CONTENT_URIback to summary
private static final String CONTENT_URI
RDF_NSback to summary
private static final Namespace RDF_NS
RDF_URIback to summary
private static final String RDF_URI
RSS_NSback to summary
private static final Namespace RSS_NS
RSS_URIback to summary
private static final String RSS_URI

Constructor Detail

RSS090Generatorback to summary
public RSS090Generator()
RSS090Generatorback to summary
protected RSS090Generator(final String type)

Method Detail

addChannelback to summary
protected void addChannel(final Channel channel, final Element parent) throws FeedException
addImageback to summary
protected void addImage(final Channel channel, final Element parent) throws FeedException
addItemback to summary
protected void addItem(final Item item, final Element parent, final int index) throws FeedException
addItemsback to summary
protected void addItems(final Channel channel, final Element parent) throws FeedException
addTextInputback to summary
protected void addTextInput(final Channel channel, final Element parent) throws FeedException
checkChannelConstraintsback to summary
protected void checkChannelConstraints(final Element eChannel) throws FeedException
checkImageConstraintsback to summary
protected void checkImageConstraints(final Element eImage) throws FeedException
checkItemConstraintsback to summary
protected void checkItemConstraints(final Element eItem) throws FeedException
checkItemsConstraintsback to summary
protected void checkItemsConstraints(final Element parent) throws FeedException
checkLengthback to summary
protected void checkLength(final Element parent, final String childName, final int minLen, final int maxLen) throws FeedException
checkNotNullAndLengthback to summary
protected void checkNotNullAndLength(final Element parent, final String childName, final int minLen, final int maxLen) throws FeedException
checkTextInputConstraintsback to summary
protected void checkTextInputConstraints(final Element eTextInput) throws FeedException
createDocumentback to summary
protected Document createDocument(final Element root)
createRootElementback to summary
protected Element createRootElement(final Channel channel)
generateback to summary
public Document generate(final WireFeed feed) 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
feed: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.
generateSimpleElementback to summary
protected Element generateSimpleElement(final String name, final String value)
getContentNamespaceback to summary
protected Namespace getContentNamespace()
getFeedNamespaceback to summary
protected Namespace getFeedNamespace()
getRDFNamespaceback to summary
protected Namespace getRDFNamespace()
getTextInputLabelback to summary
protected String getTextInputLabel()
populateChannelback to summary
protected void populateChannel(final Channel channel, final Element eChannel)

Populates the given channel with parsed data from the ROME element that holds the channel data.

Parameters
channel:Channel

the channel into which parsed data will be added.

eChannel:Element

the XML element that holds the data for the channel.

populateFeedback to summary
protected void populateFeed(final Channel channel, final Element parent) throws FeedException
populateImageback to summary
protected void populateImage(final Image image, final Element eImage)
populateItemback to summary
protected void populateItem(final Item item, final Element eItem, final int index)
populateTextInputback to summary
protected void populateTextInput(final TextInput textInput, final Element eTextInput)