public class RSS090Generator extends BaseWireFeedGenerator
| Modifier | Constructor and Description |
|---|---|
|
RSS090Generator() |
protected |
RSS090Generator(String type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChannel(Channel channel,
org.jdom2.Element parent) |
protected void |
addImage(Channel channel,
org.jdom2.Element parent) |
protected void |
addItem(Item item,
org.jdom2.Element parent,
int index) |
protected void |
addItems(Channel channel,
org.jdom2.Element parent) |
protected void |
addTextInput(Channel channel,
org.jdom2.Element parent) |
protected void |
checkChannelConstraints(org.jdom2.Element eChannel) |
protected void |
checkImageConstraints(org.jdom2.Element eImage) |
protected void |
checkItemConstraints(org.jdom2.Element eItem) |
protected void |
checkItemsConstraints(org.jdom2.Element parent) |
protected void |
checkLength(org.jdom2.Element parent,
String childName,
int minLen,
int maxLen) |
protected void |
checkNotNullAndLength(org.jdom2.Element parent,
String childName,
int minLen,
int maxLen) |
protected void |
checkTextInputConstraints(org.jdom2.Element eTextInput) |
protected org.jdom2.Document |
createDocument(org.jdom2.Element root) |
protected org.jdom2.Element |
createRootElement(Channel channel) |
org.jdom2.Document |
generate(WireFeed feed)
Creates an XML document (JDOM) for the given feed bean.
|
protected org.jdom2.Element |
generateSimpleElement(String name,
String value) |
protected org.jdom2.Namespace |
getContentNamespace() |
protected org.jdom2.Namespace |
getFeedNamespace() |
protected org.jdom2.Namespace |
getRDFNamespace() |
protected String |
getTextInputLabel() |
protected void |
populateChannel(Channel channel,
org.jdom2.Element eChannel)
Populates the given channel with parsed data from the ROME element that holds the channel
data.
|
protected void |
populateFeed(Channel channel,
org.jdom2.Element parent) |
protected void |
populateImage(Image image,
org.jdom2.Element eImage) |
protected void |
populateItem(Item item,
org.jdom2.Element eItem,
int index) |
protected void |
populateTextInput(TextInput textInput,
org.jdom2.Element eTextInput) |
generateFeedModules, generateForeignMarkup, generateItemModules, generateModuleNamespaceDefs, generatePersonModules, getType, purgeUnusedNamespaceDeclarationspublic RSS090Generator()
protected RSS090Generator(String type)
public org.jdom2.Document generate(WireFeed feed) throws FeedException
WireFeedGeneratorfeed - the feed bean to generate the XML document from.FeedException - thrown if the XML Document could not be created.protected org.jdom2.Namespace getFeedNamespace()
protected org.jdom2.Namespace getRDFNamespace()
protected org.jdom2.Namespace getContentNamespace()
protected org.jdom2.Document createDocument(org.jdom2.Element root)
protected org.jdom2.Element createRootElement(Channel channel)
protected void populateFeed(Channel channel, org.jdom2.Element parent) throws FeedException
FeedExceptionprotected void addChannel(Channel channel, org.jdom2.Element parent) throws FeedException
FeedExceptionprotected void populateChannel(Channel channel, org.jdom2.Element eChannel)
channel - the channel into which parsed data will be added.eChannel - the XML element that holds the data for the channel.protected void checkNotNullAndLength(org.jdom2.Element parent,
String childName,
int minLen,
int maxLen)
throws FeedException
FeedExceptionprotected void checkLength(org.jdom2.Element parent,
String childName,
int minLen,
int maxLen)
throws FeedException
FeedExceptionprotected void addImage(Channel channel, org.jdom2.Element parent) throws FeedException
FeedExceptionprotected void populateImage(Image image, org.jdom2.Element eImage)
protected String getTextInputLabel()
protected void addTextInput(Channel channel, org.jdom2.Element parent) throws FeedException
FeedExceptionprotected void populateTextInput(TextInput textInput, org.jdom2.Element eTextInput)
protected void addItems(Channel channel, org.jdom2.Element parent) throws FeedException
FeedExceptionprotected void addItem(Item item, org.jdom2.Element parent, int index) throws FeedException
FeedExceptionprotected void populateItem(Item item, org.jdom2.Element eItem, int index)
protected void checkChannelConstraints(org.jdom2.Element eChannel)
throws FeedException
FeedExceptionprotected void checkImageConstraints(org.jdom2.Element eImage)
throws FeedException
FeedExceptionprotected void checkTextInputConstraints(org.jdom2.Element eTextInput)
throws FeedException
FeedExceptionprotected void checkItemsConstraints(org.jdom2.Element parent)
throws FeedException
FeedExceptionprotected void checkItemConstraints(org.jdom2.Element eItem)
throws FeedException
FeedExceptionCopyright © 2023. All rights reserved.