com.sun.syndication.io.impl
Class RSS091UserlandGenerator

java.lang.Object
  extended by com.sun.syndication.io.impl.BaseWireFeedGenerator
      extended by com.sun.syndication.io.impl.RSS090Generator
          extended by com.sun.syndication.io.impl.RSS091UserlandGenerator
All Implemented Interfaces:
WireFeedGenerator
Direct Known Subclasses:
RSS091NetscapeGenerator, RSS092Generator

public class RSS091UserlandGenerator
extends RSS090Generator

Feed Generator for RSS 0.91

Author:
Elaine Chien

Field Summary
private  java.lang.String _version
           
 
Constructor Summary
  RSS091UserlandGenerator()
           
protected RSS091UserlandGenerator(java.lang.String type, java.lang.String version)
           
 
Method Summary
protected  void addChannel(Channel channel, Element parent)
           
protected  void checkChannelConstraints(Element eChannel)
           
protected  void checkImageConstraints(Element eImage)
           
protected  void checkItemConstraints(Element eItem)
           
protected  void checkTextInputConstraints(Element eTextInput)
           
protected  Document createDocument(Element root)
           
protected  Element createRootElement(Channel channel)
           
protected  Element generateSkipDaysElement(java.util.List days)
           
protected  Element generateSkipHoursElement(java.util.List hours)
           
protected  Namespace getFeedNamespace()
           
protected  java.lang.String getVersion()
           
protected  boolean isHourFormat24()
          To be overriden by RSS 0.91 Netscape and RSS 0.94
protected  void populateChannel(Channel channel, Element eChannel)
          Populates the given channel with parsed data from the ROME element that holds the channel data.
protected  void populateFeed(Channel channel, Element parent)
           
protected  void populateImage(Image image, Element eImage)
           
protected  void populateItem(Item item, Element eItem, int index)
           
 
Methods inherited from class com.sun.syndication.io.impl.RSS090Generator
addImage, addItem, addItems, addTextInput, checkItemsConstraints, checkLength, checkNotNullAndLength, generate, generateSimpleElement, getContentNamespace, getRDFNamespace, getTextInputLabel, populateTextInput
 
Methods inherited from class com.sun.syndication.io.impl.BaseWireFeedGenerator
generateFeedModules, generateForeignMarkup, generateItemModules, generateModuleNamespaceDefs, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_version

private java.lang.String _version
Constructor Detail

RSS091UserlandGenerator

public RSS091UserlandGenerator()

RSS091UserlandGenerator

protected RSS091UserlandGenerator(java.lang.String type,
                                  java.lang.String version)
Method Detail

getVersion

protected java.lang.String getVersion()

getFeedNamespace

protected Namespace getFeedNamespace()
Overrides:
getFeedNamespace in class RSS090Generator

createDocument

protected Document createDocument(Element root)
Overrides:
createDocument in class RSS090Generator

createRootElement

protected Element createRootElement(Channel channel)
Overrides:
createRootElement in class RSS090Generator

populateFeed

protected void populateFeed(Channel channel,
                            Element parent)
                     throws FeedException
Overrides:
populateFeed in class RSS090Generator
Throws:
FeedException

addChannel

protected void addChannel(Channel channel,
                          Element parent)
                   throws FeedException
Overrides:
addChannel in class RSS090Generator
Throws:
FeedException

populateChannel

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

Overrides:
populateChannel in class RSS090Generator
Parameters:
channel - the channel into which parsed data will be added.
eChannel - the XML element that holds the data for the channel.

generateSkipHoursElement

protected Element generateSkipHoursElement(java.util.List hours)

generateSkipDaysElement

protected Element generateSkipDaysElement(java.util.List days)

populateImage

protected void populateImage(Image image,
                             Element eImage)
Overrides:
populateImage in class RSS090Generator

populateItem

protected void populateItem(Item item,
                            Element eItem,
                            int index)
Overrides:
populateItem in class RSS090Generator

isHourFormat24

protected boolean isHourFormat24()
To be overriden by RSS 0.91 Netscape and RSS 0.94


checkChannelConstraints

protected void checkChannelConstraints(Element eChannel)
                                throws FeedException
Overrides:
checkChannelConstraints in class RSS090Generator
Throws:
FeedException

checkImageConstraints

protected void checkImageConstraints(Element eImage)
                              throws FeedException
Overrides:
checkImageConstraints in class RSS090Generator
Throws:
FeedException

checkTextInputConstraints

protected void checkTextInputConstraints(Element eTextInput)
                                  throws FeedException
Overrides:
checkTextInputConstraints in class RSS090Generator
Throws:
FeedException

checkItemConstraints

protected void checkItemConstraints(Element eItem)
                             throws FeedException
Overrides:
checkItemConstraints in class RSS090Generator
Throws:
FeedException


Copyright © Sun Microsystems. All Rights Reserved.