public class OPML20Generator extends OPML10Generator
Constructor and Description |
---|
OPML20Generator() |
Modifier and Type | Method and Description |
---|---|
org.jdom2.Document |
generate(WireFeed feed)
Creates an XML document (JDOM) for the given feed bean.
|
protected org.jdom2.Element |
generateHead(Opml opml) |
protected org.jdom2.Element |
generateOutline(Outline outline) |
String |
getType()
Returns the type of feed the generator creates.
|
addNotNullAttribute, addNotNullSimpleElement, generateOutlines, intArrayToCsvString
generateFeedModules, generateForeignMarkup, generateItemModules, generateModuleNamespaceDefs, generatePersonModules, purgeUnusedNamespaceDeclarations
public String getType()
getType
in interface WireFeedGenerator
getType
in class BaseWireFeedGenerator
for details on the format of this string.
public org.jdom2.Document generate(WireFeed feed) throws IllegalArgumentException, FeedException
generate
in interface WireFeedGenerator
generate
in class OPML10Generator
feed
- the feed bean to generate the XML document from.IllegalArgumentException
- thrown if the type of the given feed bean does not match with the type of the
WireFeedGenerator.FeedException
- thrown if the XML Document could not be created.protected org.jdom2.Element generateHead(Opml opml)
generateHead
in class OPML10Generator
protected org.jdom2.Element generateOutline(Outline outline)
generateOutline
in class OPML10Generator
Copyright © 2018. All rights reserved.