Copyright (c) 2000-2002 ChurchillObjects.com

churchillobjects.rss4j.generator
Class RssGeneratorImpl100

java.lang.Object
  |
  +--churchillobjects.rss4j.generator.RssGenerator
        |
        +--churchillobjects.rss4j.generator.RssGeneratorImpl090
              |
              +--churchillobjects.rss4j.generator.RssGeneratorImpl091
                    |
                    +--churchillobjects.rss4j.generator.RssGeneratorImpl100

class RssGeneratorImpl100
extends RssGeneratorImpl091


Field Summary
private  java.util.Vector imageElements
           
private  java.util.Vector itemElements
           
private static java.lang.String ROOT_ELEMENT
           
private  java.util.Vector textInputElements
           
private  boolean usesDublinCore
           
private  boolean usesSyndication
           
private static java.lang.String XMLNS
           
private static java.lang.String XMLNS_RDF
           
 
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) RssGeneratorImpl100()
           
 
Method Summary
protected  void checkExtensions(churchillobjects.rss4j.RssDocument data)
           
protected  void createRssDocument(churchillobjects.rss4j.RssDocument data)
          Starts a new RSS 1.0 document.
protected  void finishDocument()
          Completes the document by adding the images, items and text inputs at the end of the document.
protected  void handleChannel(churchillobjects.rss4j.RssChannel channel)
          Creates a channel element, digging down from that point in the object hierarchy and invoking the other handlers.
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 handleDocumentImages()
          Appends all of the images used by channels into the RDF document.
protected  void handleDocumentItems()
           
protected  void handleDocumentTextInputs()
          Adds the text input(s) to the end of the document, referencing them to the ones included within the channel(s).
protected  void handleDublinCore(churchillobjects.rss4j.RssDublinCore dc, org.w3c.dom.Element channelElement)
           
protected  void handleImage(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
          Appends the image resource to the channel, adding it to the list of image elements for inclusion later.
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)
          Adds the items to the channel element, referencing them to the image elements that will be appended to the document.
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 handleSyndication(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
           
protected  void handleTextInput(churchillobjects.rss4j.RssChannel channel, org.w3c.dom.Element channelElement)
          Adds the text input to the channel element, referencing it to the text input element that will be appended to the document.
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()
          Keep all max lenghts at zero; limits are suggested but not enforced with RSS 1.0.
 
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

XMLNS_RDF

private static final java.lang.String XMLNS_RDF
See Also:
Constant Field Values

XMLNS

private static final java.lang.String XMLNS
See Also:
Constant Field Values

ROOT_ELEMENT

private static final java.lang.String ROOT_ELEMENT
See Also:
Constant Field Values

usesSyndication

private boolean usesSyndication

usesDublinCore

private boolean usesDublinCore

imageElements

private java.util.Vector imageElements

itemElements

private java.util.Vector itemElements

textInputElements

private java.util.Vector textInputElements
Constructor Detail

RssGeneratorImpl100

RssGeneratorImpl100()
              throws RssGenerationException
Method Detail

setMaxLengths

protected void setMaxLengths()
Keep all max lenghts at zero; limits are suggested but not enforced with RSS 1.0.

Overrides:
setMaxLengths in class RssGeneratorImpl091

createRssDocument

protected void createRssDocument(churchillobjects.rss4j.RssDocument data)
Starts a new RSS 1.0 document. The RssDocument object is needed to determine what extensions are necessary to include in the root element.

Overrides:
createRssDocument in class RssGeneratorImpl091
Parameters:
data -

handleChannel

protected void handleChannel(churchillobjects.rss4j.RssChannel channel)
                      throws RssGenerationException
Creates a channel element, digging down from that point in the object hierarchy and invoking the other handlers.

Overrides:
handleChannel in class RssGeneratorImpl091
Parameters:
channel -
Throws:
RssGenerationException

finishDocument

protected void finishDocument()
                       throws RssGenerationException
Completes the document by adding the images, items and text inputs at the end of the document.

Overrides:
finishDocument in class RssGeneratorImpl090
Throws:
RssGenerationException

handleTextInput

protected void handleTextInput(churchillobjects.rss4j.RssChannel channel,
                               org.w3c.dom.Element channelElement)
Adds the text input to the channel element, referencing it to the text input element that will be appended to the document.

Overrides:
handleTextInput in class RssGeneratorImpl091
Parameters:
channel -
channelElement -

handleDocumentTextInputs

protected void handleDocumentTextInputs()
                                 throws RssGenerationException
Adds the text input(s) to the end of the document, referencing them to the ones included within the channel(s).

Throws:
RssGenerationException

handleItems

protected void handleItems(churchillobjects.rss4j.RssChannel channel,
                           org.w3c.dom.Element channelElement)
                    throws RssGenerationException
Adds the items to the channel element, referencing them to the image elements that will be appended to the document.

Overrides:
handleItems in class RssGeneratorImpl091
Parameters:
channel -
channelElement -
Throws:
RssGenerationException

handleDocumentItems

protected void handleDocumentItems()
                            throws RssGenerationException
RssGenerationException

handleImage

protected void handleImage(churchillobjects.rss4j.RssChannel channel,
                           org.w3c.dom.Element channelElement)
Appends the image resource to the channel, adding it to the list of image elements for inclusion later.

Overrides:
handleImage in class RssGeneratorImpl091
Parameters:
channel -
channelElement -

handleDocumentImages

protected void handleDocumentImages()
                             throws RssGenerationException
Appends all of the images used by channels into the RDF document.

RssGenerationException

checkExtensions

protected void checkExtensions(churchillobjects.rss4j.RssDocument data)

handleSyndication

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

handleDublinCore

protected void handleDublinCore(churchillobjects.rss4j.RssDublinCore dc,
                                org.w3c.dom.Element channelElement)

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)

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

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