com.sun.syndication.io.impl

Class RSS090Generator

public class RSS090Generator extends BaseWireFeedGenerator

Feed Generator for RSS 0.90

Author: Elaine Chien

Field Summary
static NamespaceCONTENT_NS
static StringCONTENT_URI
static NamespaceRDF_NS
static StringRDF_URI
static NamespaceRSS_NS
static StringRSS_URI
Constructor Summary
RSS090Generator()
protected RSS090Generator(String type)
Method Summary
protected voidaddChannel(Channel channel, Element parent)
protected voidaddImage(Channel channel, Element parent)
protected voidaddItem(Item item, Element parent, int index)
protected voidaddItems(Channel channel, Element parent)
protected voidaddTextInput(Channel channel, Element parent)
protected voidcheckChannelConstraints(Element eChannel)
protected voidcheckImageConstraints(Element eImage)
protected voidcheckItemConstraints(Element eItem)
protected voidcheckItemsConstraints(Element parent)
protected voidcheckLength(Element parent, String childName, int minLen, int maxLen)
protected voidcheckNotNullAndLength(Element parent, String childName, int minLen, int maxLen)
protected voidcheckTextInputConstraints(Element eTextInput)
protected DocumentcreateDocument(Element root)
protected ElementcreateRootElement(Channel channel)
Documentgenerate(WireFeed feed)
protected ElementgenerateSimpleElement(String name, String value)
protected NamespacegetContentNamespace()
protected NamespacegetFeedNamespace()
protected NamespacegetRDFNamespace()
protected StringgetTextInputLabel()
protected voidpopulateChannel(Channel channel, Element eChannel)
Populates the given channel with parsed data from the ROME element that holds the channel data.
protected voidpopulateFeed(Channel channel, Element parent)
protected voidpopulateImage(Image image, Element eImage)
protected voidpopulateItem(Item item, Element eItem, int index)
protected voidpopulateTextInput(TextInput textInput, Element eTextInput)

Field Detail

CONTENT_NS

private static final Namespace CONTENT_NS

CONTENT_URI

private static final String CONTENT_URI

RDF_NS

private static final Namespace RDF_NS

RDF_URI

private static final String RDF_URI

RSS_NS

private static final Namespace RSS_NS

RSS_URI

private static final String RSS_URI

Constructor Detail

RSS090Generator

public RSS090Generator()

RSS090Generator

protected RSS090Generator(String type)

Method Detail

addChannel

protected void addChannel(Channel channel, Element parent)

addImage

protected void addImage(Channel channel, Element parent)

addItem

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

addItems

protected void addItems(Channel channel, Element parent)

addTextInput

protected void addTextInput(Channel channel, Element parent)

checkChannelConstraints

protected void checkChannelConstraints(Element eChannel)

checkImageConstraints

protected void checkImageConstraints(Element eImage)

checkItemConstraints

protected void checkItemConstraints(Element eItem)

checkItemsConstraints

protected void checkItemsConstraints(Element parent)

checkLength

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

checkNotNullAndLength

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

checkTextInputConstraints

protected void checkTextInputConstraints(Element eTextInput)

createDocument

protected Document createDocument(Element root)

createRootElement

protected Element createRootElement(Channel channel)

generate

public Document generate(WireFeed feed)

generateSimpleElement

protected Element generateSimpleElement(String name, String value)

getContentNamespace

protected Namespace getContentNamespace()

getFeedNamespace

protected Namespace getFeedNamespace()

getRDFNamespace

protected Namespace getRDFNamespace()

getTextInputLabel

protected String getTextInputLabel()

populateChannel

protected void populateChannel(Channel channel, Element eChannel)
Populates the given channel with parsed data from the ROME element that holds the channel data.

Parameters: channel the channel into which parsed data will be added. eChannel the XML element that holds the data for the channel.

populateFeed

protected void populateFeed(Channel channel, Element parent)

populateImage

protected void populateImage(Image image, Element eImage)

populateItem

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

populateTextInput

protected void populateTextInput(TextInput textInput, Element eTextInput)
Copyright © Sun Microsystems. All Rights Reserved.