com.sun.syndication.io.impl
Class RSS090Generator

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

public class RSS090Generator
extends java.lang.Object
implements FeedGenerator

Feed Generator for RSS 0.90

Author:
Elaine Chien

Constructor Summary
  RSS090Generator()
           
protected RSS090Generator(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, org.jdom.Namespace namespace)
           
protected  org.jdom.Element generateDescriptionElement(java.lang.String description, org.jdom.Namespace namespace)
           
protected  org.jdom.Element generateImageElement(Image image)
           
protected  org.jdom.Element generateItemElement(Item item)
           
protected  org.jdom.Element generateRootElement(Channel channel)
           
protected  org.jdom.Element generateSimpleElement(java.lang.String name, java.lang.String value, org.jdom.Namespace namespace)
           
protected  org.jdom.Element generateTextInputElement(TextInput textInput)
           
 java.lang.String getType()
          Returns the type of feed the generator creates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSS090Generator

public RSS090Generator()

RSS090Generator

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

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

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(Description description,
                                                      org.jdom.Namespace namespace)
                                               throws FeedException
Throws:
FeedException

generateDescriptionElement

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

generateSimpleElement

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


Copyright © 2004 Sun Microsystems. All Rights Reserved.