org.rometools.feed.module.opensearch.impl
Class OpenSearchModuleGenerator

java.lang.Object
  extended by org.rometools.feed.module.opensearch.impl.OpenSearchModuleGenerator
All Implemented Interfaces:
com.sun.syndication.io.ModuleGenerator

public class OpenSearchModuleGenerator
extends Object
implements com.sun.syndication.io.ModuleGenerator

Author:
Michael W. Nassif (enrouteinc@gmail.com) OpenSearch implementation of ModuleGenerator

Constructor Summary
OpenSearchModuleGenerator()
           
 
Method Summary
 void generate(com.sun.syndication.feed.module.Module module, org.jdom.Element element)
           
protected  org.jdom.Element generateLinkElement(com.sun.syndication.feed.atom.Link link)
           
protected  org.jdom.Element generateQueryElement(OSQuery query)
           
protected  org.jdom.Element generateSimpleElement(String name, String value)
           
 Set getNamespaces()
          Returns a set with all the URIs (JDOM Namespace elements) this module generator uses.
 String getNamespaceUri()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenSearchModuleGenerator

public OpenSearchModuleGenerator()
Method Detail

getNamespaceUri

public String getNamespaceUri()
Specified by:
getNamespaceUri in interface com.sun.syndication.io.ModuleGenerator

getNamespaces

public Set getNamespaces()
Returns a set with all the URIs (JDOM Namespace elements) this module generator uses.

It is used by the the feed generators to add their namespace definition in the root element of the generated document (forward-missing of Java 5.0 Generics).

Specified by:
getNamespaces in interface com.sun.syndication.io.ModuleGenerator
Returns:
a set with all the URIs (JDOM Namespace elements) this module generator uses.

generate

public void generate(com.sun.syndication.feed.module.Module module,
                     org.jdom.Element element)
Specified by:
generate in interface com.sun.syndication.io.ModuleGenerator

generateQueryElement

protected org.jdom.Element generateQueryElement(OSQuery query)

generateLinkElement

protected org.jdom.Element generateLinkElement(com.sun.syndication.feed.atom.Link link)

generateSimpleElement

protected org.jdom.Element generateSimpleElement(String name,
                                                 String value)


Copyright © 2013 ROME Project. All Rights Reserved.