com.sun.syndication.io.impl
Class Atom03Generator

java.lang.Object
  extended by com.sun.syndication.io.impl.BaseWireFeedGenerator
      extended by com.sun.syndication.io.impl.Atom03Generator
All Implemented Interfaces:
WireFeedGenerator

public class Atom03Generator
extends BaseWireFeedGenerator

Feed Generator for Atom

Author:
Elaine Chien

Field Summary
private  java.lang.String _version
           
private static java.lang.String ATOM_03_URI
           
private static Namespace ATOM_NS
           
 
Constructor Summary
  Atom03Generator()
           
protected Atom03Generator(java.lang.String type, java.lang.String version)
           
 
Method Summary
protected  void addEntries(Feed feed, Element parent)
           
protected  void addEntry(Entry entry, Element parent)
           
protected  void addFeed(Feed feed, Element parent)
           
protected  void checkEntriesConstraints(Element parent)
           
protected  void checkEntryConstraints(Element eEntry)
           
protected  void checkFeedHeaderConstraints(Element eFeed)
           
protected  Document createDocument(Element root)
           
protected  Element createRootElement(Feed feed)
           
protected  void fillContentElement(Element contentElement, Content content)
           
protected  void fillPersonElement(Element element, Person person)
           
 Document generate(WireFeed wFeed)
          Creates an XML document (JDOM) for the given feed bean.
protected  Element generateGeneratorElement(Generator generator)
           
protected  Element generateLinkElement(Link link)
           
protected  Element generateSimpleElement(java.lang.String name, java.lang.String value)
           
protected  Element generateTagLineElement(Content tagline)
           
protected  Namespace getFeedNamespace()
           
protected  java.lang.String getVersion()
           
protected  void populateEntry(Entry entry, Element eEntry)
           
protected  void populateFeed(Feed feed, Element parent)
           
protected  void populateFeedHeader(Feed feed, Element eFeed)
           
 
Methods inherited from class com.sun.syndication.io.impl.BaseWireFeedGenerator
generateFeedModules, generateForeignMarkup, generateItemModules, generateModuleNamespaceDefs, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATOM_03_URI

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

ATOM_NS

private static final Namespace ATOM_NS

_version

private java.lang.String _version
Constructor Detail

Atom03Generator

public Atom03Generator()

Atom03Generator

protected Atom03Generator(java.lang.String type,
                          java.lang.String version)
Method Detail

getVersion

protected java.lang.String getVersion()

getFeedNamespace

protected Namespace getFeedNamespace()

generate

public Document generate(WireFeed wFeed)
                  throws FeedException
Description copied from interface: WireFeedGenerator
Creates an XML document (JDOM) for the given feed bean.

Parameters:
wFeed - 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.

createDocument

protected Document createDocument(Element root)

createRootElement

protected Element createRootElement(Feed feed)

populateFeed

protected void populateFeed(Feed feed,
                            Element parent)
                     throws FeedException
Throws:
FeedException

addFeed

protected void addFeed(Feed feed,
                       Element parent)
                throws FeedException
Throws:
FeedException

addEntries

protected void addEntries(Feed feed,
                          Element parent)
                   throws FeedException
Throws:
FeedException

addEntry

protected void addEntry(Entry entry,
                        Element parent)
                 throws FeedException
Throws:
FeedException

populateFeedHeader

protected void populateFeedHeader(Feed feed,
                                  Element eFeed)
                           throws FeedException
Throws:
FeedException

populateEntry

protected void populateEntry(Entry entry,
                             Element eEntry)
                      throws FeedException
Throws:
FeedException

checkFeedHeaderConstraints

protected void checkFeedHeaderConstraints(Element eFeed)
                                   throws FeedException
Throws:
FeedException

checkEntriesConstraints

protected void checkEntriesConstraints(Element parent)
                                throws FeedException
Throws:
FeedException

checkEntryConstraints

protected void checkEntryConstraints(Element eEntry)
                              throws FeedException
Throws:
FeedException

generateLinkElement

protected Element generateLinkElement(Link link)

fillPersonElement

protected void fillPersonElement(Element element,
                                 Person person)

generateTagLineElement

protected Element generateTagLineElement(Content tagline)

fillContentElement

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

generateGeneratorElement

protected Element generateGeneratorElement(Generator generator)

generateSimpleElement

protected Element generateSimpleElement(java.lang.String name,
                                        java.lang.String value)


Copyright © Sun Microsystems. All Rights Reserved.