org.rometools.io.impl
Class OPML20Generator

java.lang.Object
  extended by com.sun.syndication.io.impl.BaseWireFeedGenerator
      extended by org.rometools.io.impl.OPML10Generator
          extended by org.rometools.io.impl.OPML20Generator
All Implemented Interfaces:
com.sun.syndication.io.WireFeedGenerator

public class OPML20Generator
extends OPML10Generator

Author:
cooper

Constructor Summary
OPML20Generator()
          Creates a new instance of OPML20Generator
 
Method Summary
 org.jdom.Document generate(com.sun.syndication.feed.WireFeed feed)
          Creates an XML document (JDOM) for the given feed bean.
protected  org.jdom.Element generateHead(Opml opml)
           
protected  org.jdom.Element generateOutline(Outline outline)
           
 String getType()
          Returns the type of feed the generator creates.
 
Methods inherited from class org.rometools.io.impl.OPML10Generator
addNotNullAttribute, addNotNullSimpleElement, generateOutlines, intArrayToCsvString
 
Methods inherited from class com.sun.syndication.io.impl.BaseWireFeedGenerator
generateFeedModules, generateForeignMarkup, generateItemModules, generateModuleNamespaceDefs, generatePersonModules, purgeUnusedNamespaceDeclarations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OPML20Generator

public OPML20Generator()
Creates a new instance of OPML20Generator

Method Detail

getType

public String getType()
Returns the type of feed the generator creates.

Specified by:
getType in interface com.sun.syndication.io.WireFeedGenerator
Overrides:
getType in class com.sun.syndication.io.impl.BaseWireFeedGenerator
Returns:
the type of feed the generator creates.
See Also:
for details on the format of this string.


generate

public org.jdom.Document generate(com.sun.syndication.feed.WireFeed feed)
                           throws IllegalArgumentException,
                                  com.sun.syndication.io.FeedException
Creates an XML document (JDOM) for the given feed bean.

Specified by:
generate in interface com.sun.syndication.io.WireFeedGenerator
Overrides:
generate in class OPML10Generator
Parameters:
feed - the feed bean to generate the XML document from.
Returns:
the generated XML document (JDOM).
Throws:
IllegalArgumentException - thrown if the type of the given feed bean does not match with the type of the WireFeedGenerator.
com.sun.syndication.io.FeedException - thrown if the XML Document could not be created.

generateHead

protected org.jdom.Element generateHead(Opml opml)
Overrides:
generateHead in class OPML10Generator

generateOutline

protected org.jdom.Element generateOutline(Outline outline)
Overrides:
generateOutline in class OPML10Generator


Copyright © 2013 ROME Project. All Rights Reserved.