public class RSS090Generator extends BaseWireFeedGenerator
Modifier and Type | Field and Description |
---|---|
private static org.jdom2.Namespace |
CONTENT_NS |
private static java.lang.String |
CONTENT_URI |
private static org.jdom2.Namespace |
RDF_NS |
private static java.lang.String |
RDF_URI |
private static org.jdom2.Namespace |
RSS_NS |
private static java.lang.String |
RSS_URI |
Modifier | Constructor and Description |
---|---|
|
RSS090Generator() |
protected |
RSS090Generator(java.lang.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,
java.lang.String childName,
int minLen,
int maxLen) |
protected void |
checkNotNullAndLength(org.jdom2.Element parent,
java.lang.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(java.lang.String name,
java.lang.String value) |
protected org.jdom2.Namespace |
getContentNamespace() |
protected org.jdom2.Namespace |
getFeedNamespace() |
protected org.jdom2.Namespace |
getRDFNamespace() |
protected java.lang.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, purgeUnusedNamespaceDeclarations
private static final java.lang.String RDF_URI
private static final java.lang.String RSS_URI
private static final java.lang.String CONTENT_URI
private static final org.jdom2.Namespace RDF_NS
private static final org.jdom2.Namespace RSS_NS
private static final org.jdom2.Namespace CONTENT_NS
public RSS090Generator()
protected RSS090Generator(java.lang.String type)
public org.jdom2.Document generate(WireFeed feed) throws FeedException
WireFeedGenerator
feed
- 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
FeedException
protected void addChannel(Channel channel, org.jdom2.Element parent) throws FeedException
FeedException
protected 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, java.lang.String childName, int minLen, int maxLen) throws FeedException
FeedException
protected void checkLength(org.jdom2.Element parent, java.lang.String childName, int minLen, int maxLen) throws FeedException
FeedException
protected void addImage(Channel channel, org.jdom2.Element parent) throws FeedException
FeedException
protected void populateImage(Image image, org.jdom2.Element eImage)
protected java.lang.String getTextInputLabel()
protected void addTextInput(Channel channel, org.jdom2.Element parent) throws FeedException
FeedException
protected void populateTextInput(TextInput textInput, org.jdom2.Element eTextInput)
protected void addItems(Channel channel, org.jdom2.Element parent) throws FeedException
FeedException
protected void addItem(Item item, org.jdom2.Element parent, int index) throws FeedException
FeedException
protected void populateItem(Item item, org.jdom2.Element eItem, int index)
protected org.jdom2.Element generateSimpleElement(java.lang.String name, java.lang.String value)
protected void checkChannelConstraints(org.jdom2.Element eChannel) throws FeedException
FeedException
protected void checkImageConstraints(org.jdom2.Element eImage) throws FeedException
FeedException
protected void checkTextInputConstraints(org.jdom2.Element eTextInput) throws FeedException
FeedException
protected void checkItemsConstraints(org.jdom2.Element parent) throws FeedException
FeedException
protected void checkItemConstraints(org.jdom2.Element eItem) throws FeedException
FeedException