Package com.rometools.modules.sle.io
Class ModuleGenerator
- java.lang.Object
-
- com.rometools.modules.sle.io.ModuleGenerator
-
- All Implemented Interfaces:
ModuleGenerator
public class ModuleGenerator extends Object implements ModuleGenerator
-
-
Constructor Summary
Constructors Constructor Description ModuleGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddNotNullAttribute(org.jdom2.Element target, String name, Object value)protected org.jdom2.ElementaddNotNullElement(org.jdom2.Element target, String name, Object value)voidgenerate(Module module, org.jdom2.Element element)Generates and injectts module metadata in a XML node (JDOM element).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()Returns the namespace URI this generator handles.
-
-
-
Method Detail
-
getNamespaceUri
public String getNamespaceUri()
Returns the namespace URI this generator handles.- Specified by:
getNamespaceUriin interfaceModuleGenerator- Returns:
- the namespace URI.
-
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)
Generates and injectts module metadata in a XML node (JDOM element).- Specified by:
generatein interfaceModuleGenerator- Parameters:
module- the module to inject into the XML node (JDOM element).element- the XML node to inject the module metadata to.
-
addNotNullAttribute
protected void addNotNullAttribute(org.jdom2.Element target, String name, Object value)
-
addNotNullElement
protected org.jdom2.Element addNotNullElement(org.jdom2.Element target, String name, Object value)
-
-