Class OpenSearchModuleGenerator
- java.lang.Object
-
- com.rometools.modules.opensearch.impl.OpenSearchModuleGenerator
-
- All Implemented Interfaces:
ModuleGenerator
public class OpenSearchModuleGenerator extends Object implements ModuleGenerator
-
-
Constructor Summary
Constructors Constructor Description OpenSearchModuleGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerate(Module module, org.jdom2.Element element)protected org.jdom2.ElementgenerateLinkElement(Link link)protected org.jdom2.ElementgenerateQueryElement(OSQuery query)protected org.jdom2.ElementgenerateSimpleElement(String name, String value)Set<org.jdom2.Namespace>getNamespaces()Returns a set with all the URIs (JDOM Namespace elements) this module generator uses.StringgetNamespaceUri()
-
-
-
Method Detail
-
getNamespaceUri
public String getNamespaceUri()
- Specified by:
getNamespaceUriin interfaceModuleGenerator
-
getNamespaces
public Set<org.jdom2.Namespace> 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:
getNamespacesin interfaceModuleGenerator- Returns:
- a set with all the URIs (JDOM Namespace elements) this module generator uses.
-
generate
public void generate(Module module, org.jdom2.Element element)
- Specified by:
generatein interfaceModuleGenerator
-
generateQueryElement
protected org.jdom2.Element generateQueryElement(OSQuery query)
-
generateLinkElement
protected org.jdom2.Element generateLinkElement(Link link)
-
-