Package com.rometools.rome.io.impl
Class RSS091UserlandGenerator
- java.lang.Object
-
- com.rometools.rome.io.impl.BaseWireFeedGenerator
-
- com.rometools.rome.io.impl.RSS090Generator
-
- com.rometools.rome.io.impl.RSS091UserlandGenerator
-
- All Implemented Interfaces:
WireFeedGenerator
- Direct Known Subclasses:
RSS091NetscapeGenerator,RSS092Generator
public class RSS091UserlandGenerator extends RSS090Generator
Feed Generator for RSS 0.91
-
-
Constructor Summary
Constructors Modifier Constructor Description RSS091UserlandGenerator()protectedRSS091UserlandGenerator(String type, String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddChannel(Channel channel, org.jdom2.Element parent)protected voidcheckChannelConstraints(org.jdom2.Element eChannel)protected voidcheckImageConstraints(org.jdom2.Element eImage)protected voidcheckItemConstraints(org.jdom2.Element eItem)protected voidcheckTextInputConstraints(org.jdom2.Element eTextInput)protected org.jdom2.DocumentcreateDocument(org.jdom2.Element root)protected org.jdom2.ElementcreateRootElement(Channel channel)protected org.jdom2.ElementgenerateSkipDaysElement(List<String> days)protected org.jdom2.ElementgenerateSkipHoursElement(List<Integer> hours)protected org.jdom2.NamespacegetFeedNamespace()protected StringgetVersion()protected booleanisHourFormat24()To be overriden by RSS 0.91 Netscape and RSS 0.94protected voidpopulateChannel(Channel channel, org.jdom2.Element eChannel)Populates the given channel with parsed data from the ROME element that holds the channel data.protected voidpopulateFeed(Channel channel, org.jdom2.Element parent)protected voidpopulateImage(Image image, org.jdom2.Element eImage)protected voidpopulateItem(Item item, org.jdom2.Element eItem, int index)-
Methods inherited from class com.rometools.rome.io.impl.RSS090Generator
addImage, addItem, addItems, addTextInput, checkItemsConstraints, checkLength, checkNotNullAndLength, generate, generateSimpleElement, getContentNamespace, getRDFNamespace, getTextInputLabel, populateTextInput
-
Methods inherited from class com.rometools.rome.io.impl.BaseWireFeedGenerator
generateFeedModules, generateForeignMarkup, generateItemModules, generateModuleNamespaceDefs, generatePersonModules, getType, purgeUnusedNamespaceDeclarations
-
-
-
-
Method Detail
-
getFeedNamespace
protected org.jdom2.Namespace getFeedNamespace()
- Overrides:
getFeedNamespacein classRSS090Generator
-
isHourFormat24
protected boolean isHourFormat24()
To be overriden by RSS 0.91 Netscape and RSS 0.94
-
getVersion
protected String getVersion()
-
addChannel
protected void addChannel(Channel channel, org.jdom2.Element parent) throws FeedException
- Overrides:
addChannelin classRSS090Generator- Throws:
FeedException
-
checkChannelConstraints
protected void checkChannelConstraints(org.jdom2.Element eChannel) throws FeedException- Overrides:
checkChannelConstraintsin classRSS090Generator- Throws:
FeedException
-
checkImageConstraints
protected void checkImageConstraints(org.jdom2.Element eImage) throws FeedException- Overrides:
checkImageConstraintsin classRSS090Generator- Throws:
FeedException
-
checkItemConstraints
protected void checkItemConstraints(org.jdom2.Element eItem) throws FeedException- Overrides:
checkItemConstraintsin classRSS090Generator- Throws:
FeedException
-
checkTextInputConstraints
protected void checkTextInputConstraints(org.jdom2.Element eTextInput) throws FeedException- Overrides:
checkTextInputConstraintsin classRSS090Generator- Throws:
FeedException
-
createDocument
protected org.jdom2.Document createDocument(org.jdom2.Element root)
- Overrides:
createDocumentin classRSS090Generator
-
createRootElement
protected org.jdom2.Element createRootElement(Channel channel)
- Overrides:
createRootElementin classRSS090Generator
-
populateChannel
protected void populateChannel(Channel channel, org.jdom2.Element eChannel)
Description copied from class:RSS090GeneratorPopulates the given channel with parsed data from the ROME element that holds the channel data.- Overrides:
populateChannelin classRSS090Generator- 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, org.jdom2.Element parent) throws FeedException
- Overrides:
populateFeedin classRSS090Generator- Throws:
FeedException
-
populateImage
protected void populateImage(Image image, org.jdom2.Element eImage)
- Overrides:
populateImagein classRSS090Generator
-
populateItem
protected void populateItem(Item item, org.jdom2.Element eItem, int index)
- Overrides:
populateItemin classRSS090Generator
-
-