com.sun.syndication.io.impl
Class RSS091Generator

java.lang.Object
  extended bycom.sun.syndication.io.impl.RSS091Generator
All Implemented Interfaces:
FeedGenerator
Direct Known Subclasses:
RSS092Generator

public class RSS091Generator
extends java.lang.Object
implements FeedGenerator

Feed Generator for RSS 0.91

Author:
Elaine Chien

Constructor Summary
  RSS091Generator()
           
protected RSS091Generator(java.lang.String feedType)
           
 
Method Summary
 org.jdom.Document generate(AbstractFeed feed)
          Creates an XML document (JDOM) for the given feed bean.
protected  org.jdom.Element generateChannelElement(Channel channel)
           
protected  org.jdom.Element generateDescriptionElement(Description description)
           
protected  org.jdom.Element generateDescriptionElement(java.lang.String description)
           
protected  org.jdom.Element generateImageElement(Image image)
           
protected  org.jdom.Element generateItemElement(Item item)
           
protected  org.jdom.Element generateLanguageElement(java.lang.String language)
           
protected  org.jdom.Element generateRootElement(Channel channel)
           
protected  org.jdom.Element generateSimpleElement(java.lang.String name, java.lang.String value)
           
protected  org.jdom.Element generateSkipDaysElement(java.util.List days)
           
protected  org.jdom.Element generateSkipHoursElement(java.util.List hours)
           
protected  org.jdom.Element generateTextInputElement(TextInput textInput)
           
 java.lang.String getType()
          Returns the type of feed the generator creates.
protected  java.lang.String getVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSS091Generator

public RSS091Generator()

RSS091Generator

protected RSS091Generator(java.lang.String feedType)
Method Detail

getVersion

protected java.lang.String getVersion()

getType

public java.lang.String getType()
Description copied from interface: FeedGenerator
Returns the type of feed the generator creates.

Specified by:
getType in interface FeedGenerator
Returns:
the type of feed the generator creates.
See Also:
for details on the format of this string.


generate

public org.jdom.Document generate(AbstractFeed feed)
                           throws FeedException
Description copied from interface: FeedGenerator
Creates an XML document (JDOM) for the given feed bean.

Specified by:
generate in interface FeedGenerator
Parameters:
feed - the feed bean to generate the XML document from.
Returns:
the generated XML document (JDOM).
Throws:
FeedException - thrown if the XML Document could not be created.

generateRootElement

protected org.jdom.Element generateRootElement(Channel channel)
                                        throws FeedException
Throws:
FeedException

generateChannelElement

protected org.jdom.Element generateChannelElement(Channel channel)
                                           throws FeedException
Throws:
FeedException

generateLanguageElement

protected org.jdom.Element generateLanguageElement(java.lang.String language)
                                            throws FeedException
Throws:
FeedException

generateSkipHoursElement

protected org.jdom.Element generateSkipHoursElement(java.util.List hours)
                                             throws FeedException
Throws:
FeedException

generateSkipDaysElement

protected org.jdom.Element generateSkipDaysElement(java.util.List days)
                                            throws FeedException
Throws:
FeedException

generateImageElement

protected org.jdom.Element generateImageElement(Image image)
                                         throws FeedException
Throws:
FeedException

generateItemElement

protected org.jdom.Element generateItemElement(Item item)
                                        throws FeedException
Throws:
FeedException

generateTextInputElement

protected org.jdom.Element generateTextInputElement(TextInput textInput)
                                             throws FeedException
Throws:
FeedException

generateDescriptionElement

protected org.jdom.Element generateDescriptionElement(java.lang.String description)
                                               throws FeedException
Throws:
FeedException

generateDescriptionElement

protected org.jdom.Element generateDescriptionElement(Description description)
                                               throws FeedException
Throws:
FeedException

generateSimpleElement

protected org.jdom.Element generateSimpleElement(java.lang.String name,
                                                 java.lang.String value)
                                          throws FeedException
Throws:
FeedException


Copyright © 2004 Sun Microsystems. All Rights Reserved.