com.sun.syndication.io.impl
Class Atom03Generator

java.lang.Object
  extended bycom.sun.syndication.io.impl.Atom03Generator
All Implemented Interfaces:
FeedGenerator

public class Atom03Generator
extends java.lang.Object
implements FeedGenerator

Feed Generator for Atom

Author:
Elaine Chien

Constructor Summary
Atom03Generator()
           
 
Method Summary
protected  void fillContentElement(org.jdom.Element contentElement, Content content)
           
protected  void fillPersonElement(org.jdom.Element element, Person person)
           
 org.jdom.Document generate(AbstractFeed feed)
          Creates an XML document (JDOM) for the given feed bean.
protected  org.jdom.Element generateEntryElement(Entry entry)
           
protected  org.jdom.Element generateGeneratorElement(Generator generator)
           
protected  org.jdom.Element generateLinkElement(Link link)
           
protected  org.jdom.Element generateRootElement(Feed feed)
           
protected  org.jdom.Element generateSimpleElement(java.lang.String name, java.lang.String value)
           
protected  org.jdom.Element generateTagLineElement(Content tagline)
           
 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

Atom03Generator

public Atom03Generator()
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(Feed feed)
                                        throws FeedException
Throws:
FeedException

generateLinkElement

protected org.jdom.Element generateLinkElement(Link link)
                                        throws FeedException
Throws:
FeedException

fillPersonElement

protected void fillPersonElement(org.jdom.Element element,
                                 Person person)
                          throws FeedException
Throws:
FeedException

generateTagLineElement

protected org.jdom.Element generateTagLineElement(Content tagline)
                                           throws FeedException
Throws:
FeedException

fillContentElement

protected void fillContentElement(org.jdom.Element contentElement,
                                  Content content)
                           throws FeedException
Throws:
FeedException

generateGeneratorElement

protected org.jdom.Element generateGeneratorElement(Generator generator)
                                             throws FeedException
Throws:
FeedException

generateEntryElement

protected org.jdom.Element generateEntryElement(Entry entry)
                                         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.