Copyright (c) 2000-2002 ChurchillObjects.com

churchillobjects.rss4j.generator
Class RssGeneratorImpl091

java.lang.Object
  |
  +--churchillobjects.rss4j.generator.RssGenerator
        |
        +--churchillobjects.rss4j.generator.RssGeneratorImpl090
              |
              +--churchillobjects.rss4j.generator.RssGeneratorImpl091
Direct Known Subclasses:
RssGeneratorImpl100

class RssGeneratorImpl091
extends RssGeneratorImpl090

A generator to create XML code conformant to the RSS 0.91 standard. Limits on lengths of text and numerical values is enforced. More information on the 0.91 standard can be found at the following links:


Field Summary
private static java.lang.String DOCTYPE
          Document type identifier, required
private static java.lang.String DTD
          Document type definition, required
private static java.lang.String VERSION
          RSS version identifier, required
 
Fields inherited from class churchillobjects.rss4j.generator.RssGenerator
channelBuildDate, channelCopyrightMax, channelDescriptionMax, channelDocsMax, channelLinkMax, channelManagingEditorMax, channelPubDate, channelTitleMax, channelWebmasterMax, doc, domImpl, format, imageDescriptionMax, imageLinkMax, imageTitleMax, imageUrlMax, itemDescriptionMax, itemLinkMax, itemTitleMax, outputStream, outputWriter, rootElement, textInputDescriptionMax, textInputLinkMax, textInputNameMax, textInputTitleMax
 
Constructor Summary
(package private) RssGeneratorImpl091()
          Constructor.
 
Method Summary
protected  void createRssDocument(churchillobjects.rss4j.RssDocument data)
          Starts the document with RSS 0.90 fields.
protected  void finishDocument()
          This method is used for any post-processing or clean-up activities.
protected  void handleChannel(churchillobjects.rss4j.RssChannel channel)
           
protected  void handleChannelBuildDate(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleChannelCopyright(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleChannelDescription(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleChannelDocs(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleChannelLanguage(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleChannelLink(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleChannelManagingEditor(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleChannelPicsRating(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleChannelPubDate(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleChannelTitle(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleChannelWebmaster(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleImage(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleImageDescription(churchillobjects.rss4j.RssChannelImage image, org.w3c.dom.Element imageElement)
           
protected  void handleImageHeight(churchillobjects.rss4j.RssChannelImage image, org.w3c.dom.Element imageElement)
           
protected  void handleImageLink(churchillobjects.rss4j.RssChannelImage image, org.w3c.dom.Element imageElement)
           
protected  void handleImageTitle(churchillobjects.rss4j.RssChannelImage image, org.w3c.dom.Element imageElement)
           
protected  void handleImageUrl(churchillobjects.rss4j.RssChannelImage image, org.w3c.dom.Element imageElement)
           
protected  void handleImageWidth(churchillobjects.rss4j.RssChannelImage image, org.w3c.dom.Element imageElement)
           
protected  void handleItemDescription(churchillobjects.rss4j.RssChannelItem item, org.w3c.dom.Element itemElement)
           
protected  void handleItemLink(churchillobjects.rss4j.RssChannelItem item, org.w3c.dom.Element itemElement)
           
protected  void handleItems(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleItemTitle(churchillobjects.rss4j.RssChannelItem item, org.w3c.dom.Element itemElement)
           
protected  void handleSkipDays(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleSkipHours(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleTextInput(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleTextInputDescription(churchillobjects.rss4j.RssChannelTextInput textInput, org.w3c.dom.Element textInputElement)
           
protected  void handleTextInputLink(churchillobjects.rss4j.RssChannelTextInput textInput, org.w3c.dom.Element textInputElement)
           
protected  void handleTextInputName(churchillobjects.rss4j.RssChannelTextInput textInput, org.w3c.dom.Element textInputElement)
           
protected  void handleTextInputTitle(churchillobjects.rss4j.RssChannelTextInput textInput, org.w3c.dom.Element textInputElement)
           
protected  void setMaxLengths()
          Sets the maximum field lengths for elements in RSS 0.91.
 
Methods inherited from class churchillobjects.rss4j.generator.RssGenerator
add, embedHtml, generateRss, generateRss, generateRss, generateRss, isTruncateText, setTruncateText, truncate, validateUri, validateValueOptional, validateValueOptional, validateValueRequired, validateValueRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCTYPE

private static final java.lang.String DOCTYPE
Document type identifier, required

See Also:
Constant Field Values

DTD

private static final java.lang.String DTD
Document type definition, required

See Also:
Constant Field Values

VERSION

private static final java.lang.String VERSION
RSS version identifier, required

See Also:
Constant Field Values
Constructor Detail

RssGeneratorImpl091

RssGeneratorImpl091()
              throws RssGenerationException
Constructor.

Throws:
RssGenerationException
Method Detail

setMaxLengths

protected void setMaxLengths()
Sets the maximum field lengths for elements in RSS 0.91.

Overrides:
setMaxLengths in class RssGeneratorImpl090

createRssDocument

protected void createRssDocument(churchillobjects.rss4j.RssDocument data)
Description copied from class: RssGeneratorImpl090
Starts the document with RSS 0.90 fields.

Overrides:
createRssDocument in class RssGeneratorImpl090
Parameters:
data -

handleChannel

protected void handleChannel(churchillobjects.rss4j.RssChannel channel)
                      throws RssGenerationException
Overrides:
handleChannel in class RssGeneratorImpl090
RssGenerationException

handleSkipDays

protected void handleSkipDays(churchillobjects.rss4j.RssChannel channel,
                              org.w3c.dom.Element channelElement)

handleSkipHours

protected void handleSkipHours(churchillobjects.rss4j.RssChannel channel,
                               org.w3c.dom.Element channelElement)

handleImage

protected void handleImage(churchillobjects.rss4j.RssChannel channel,
                           org.w3c.dom.Element channelElement)
                    throws RssGenerationException
RssGenerationException

handleItems

protected void handleItems(churchillobjects.rss4j.RssChannel channel,
                           org.w3c.dom.Element channelElement)
                    throws RssGenerationException
RssGenerationException

handleTextInput

protected void handleTextInput(churchillobjects.rss4j.RssChannel channel,
                               org.w3c.dom.Element channelElement)
                        throws RssGenerationException
RssGenerationException

handleChannelLanguage

protected void handleChannelLanguage(churchillobjects.rss4j.RssChannel channel,
                                     org.w3c.dom.Element channelElement)
                              throws RssGenerationException
RssGenerationException

handleChannelPicsRating

protected void handleChannelPicsRating(churchillobjects.rss4j.RssChannel channel,
                                       org.w3c.dom.Element channelElement)
                                throws RssGenerationException
RssGenerationException

handleChannelPubDate

protected void handleChannelPubDate(churchillobjects.rss4j.RssChannel channel,
                                    org.w3c.dom.Element channelElement)
                             throws RssGenerationException
RssGenerationException

handleChannelBuildDate

protected void handleChannelBuildDate(churchillobjects.rss4j.RssChannel channel,
                                      org.w3c.dom.Element channelElement)
                               throws RssGenerationException
RssGenerationException

handleChannelManagingEditor

protected void handleChannelManagingEditor(churchillobjects.rss4j.RssChannel channel,
                                           org.w3c.dom.Element channelElement)
                                    throws RssGenerationException
RssGenerationException

handleChannelWebmaster

protected void handleChannelWebmaster(churchillobjects.rss4j.RssChannel channel,
                                      org.w3c.dom.Element channelElement)
                               throws RssGenerationException
RssGenerationException

handleChannelCopyright

protected void handleChannelCopyright(churchillobjects.rss4j.RssChannel channel,
                                      org.w3c.dom.Element channelElement)
                               throws RssGenerationException
RssGenerationException

handleChannelDocs

protected void handleChannelDocs(churchillobjects.rss4j.RssChannel channel,
                                 org.w3c.dom.Element channelElement)
                          throws RssGenerationException
RssGenerationException

handleImageDescription

protected void handleImageDescription(churchillobjects.rss4j.RssChannelImage image,
                                      org.w3c.dom.Element imageElement)
                               throws RssGenerationException
RssGenerationException

handleImageHeight

protected void handleImageHeight(churchillobjects.rss4j.RssChannelImage image,
                                 org.w3c.dom.Element imageElement)
                          throws RssGenerationException
RssGenerationException

handleImageWidth

protected void handleImageWidth(churchillobjects.rss4j.RssChannelImage image,
                                org.w3c.dom.Element imageElement)
                         throws RssGenerationException
RssGenerationException

handleItemDescription

protected void handleItemDescription(churchillobjects.rss4j.RssChannelItem item,
                                     org.w3c.dom.Element itemElement)
                              throws RssGenerationException
RssGenerationException

finishDocument

protected void finishDocument()
                       throws RssGenerationException
This method is used for any post-processing or clean-up activities. There is nothing to do here for RSS 0.90, but superclasses do.

Specified by:
finishDocument in class RssGenerator
Throws:
RssGenerationException

handleChannelTitle

protected void handleChannelTitle(churchillobjects.rss4j.RssChannel channel,
                                  org.w3c.dom.Element channelElement)
                           throws RssGenerationException
RssGenerationException

handleChannelDescription

protected void handleChannelDescription(churchillobjects.rss4j.RssChannel channel,
                                        org.w3c.dom.Element channelElement)
                                 throws RssGenerationException
RssGenerationException

handleChannelLink

protected void handleChannelLink(churchillobjects.rss4j.RssChannel channel,
                                 org.w3c.dom.Element channelElement)
                          throws RssGenerationException
RssGenerationException

handleImageTitle

protected void handleImageTitle(churchillobjects.rss4j.RssChannelImage image,
                                org.w3c.dom.Element imageElement)
                         throws RssGenerationException
RssGenerationException

handleImageUrl

protected void handleImageUrl(churchillobjects.rss4j.RssChannelImage image,
                              org.w3c.dom.Element imageElement)
                       throws RssGenerationException
RssGenerationException

handleImageLink

protected void handleImageLink(churchillobjects.rss4j.RssChannelImage image,
                               org.w3c.dom.Element imageElement)
                        throws RssGenerationException
RssGenerationException

handleItemTitle

protected void handleItemTitle(churchillobjects.rss4j.RssChannelItem item,
                               org.w3c.dom.Element itemElement)
                        throws RssGenerationException
RssGenerationException

handleItemLink

protected void handleItemLink(churchillobjects.rss4j.RssChannelItem item,
                              org.w3c.dom.Element itemElement)
                       throws RssGenerationException
RssGenerationException

handleTextInputTitle

protected void handleTextInputTitle(churchillobjects.rss4j.RssChannelTextInput textInput,
                                    org.w3c.dom.Element textInputElement)
                             throws RssGenerationException
RssGenerationException

handleTextInputDescription

protected void handleTextInputDescription(churchillobjects.rss4j.RssChannelTextInput textInput,
                                          org.w3c.dom.Element textInputElement)
                                   throws RssGenerationException
RssGenerationException

handleTextInputName

protected void handleTextInputName(churchillobjects.rss4j.RssChannelTextInput textInput,
                                   org.w3c.dom.Element textInputElement)
                            throws RssGenerationException
RssGenerationException

handleTextInputLink

protected void handleTextInputLink(churchillobjects.rss4j.RssChannelTextInput textInput,
                                   org.w3c.dom.Element textInputElement)
                            throws RssGenerationException
RssGenerationException

Copyright (c) 2000-2002 ChurchillObjects.com