org.rometools.io.impl
Class OPML10Generator

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

public class OPML10Generator
extends com.sun.syndication.io.impl.BaseWireFeedGenerator
implements com.sun.syndication.io.WireFeedGenerator

Author:
Robert "kebernet" Cooper

Constructor Summary
OPML10Generator()
          Creates a new instance of Opml10Generator
OPML10Generator(String type)
           
 
Method Summary
protected  boolean addNotNullAttribute(org.jdom.Element target, String name, Object value)
           
protected  boolean addNotNullSimpleElement(org.jdom.Element target, String name, Object value)
           
 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)
           
protected  List generateOutlines(List outlines)
           
protected  String intArrayToCsvString(int[] value)
           
 
Methods inherited from class com.sun.syndication.io.impl.BaseWireFeedGenerator
generateFeedModules, generateForeignMarkup, generateItemModules, generateModuleNamespaceDefs, generatePersonModules, getType, purgeUnusedNamespaceDeclarations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.syndication.io.WireFeedGenerator
getType
 

Constructor Detail

OPML10Generator

public OPML10Generator()
Creates a new instance of Opml10Generator


OPML10Generator

public OPML10Generator(String type)
Method Detail

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
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.

addNotNullAttribute

protected boolean addNotNullAttribute(org.jdom.Element target,
                                      String name,
                                      Object value)

addNotNullSimpleElement

protected boolean addNotNullSimpleElement(org.jdom.Element target,
                                          String name,
                                          Object value)

generateHead

protected org.jdom.Element generateHead(Opml opml)

generateOutline

protected org.jdom.Element generateOutline(Outline outline)

generateOutlines

protected List generateOutlines(List outlines)

intArrayToCsvString

protected String intArrayToCsvString(int[] value)


Copyright © 2013 ROME Project. All Rights Reserved.