public class SimpleGenerator extends java.lang.Object implements ModuleGenerator
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private static java.util.Set<org.jdom2.Namespace> |
NAMESPACES |
Constructor and Description |
---|
SimpleGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
generate(Module module,
org.jdom2.Element element)
Generates and injects module metadata into an XML node (JDOM element).
|
java.util.Set<org.jdom2.Namespace> |
getNamespaces()
Returns a set with all the URIs (JDOM Namespace elements) this module generator uses.
|
java.lang.String |
getNamespaceUri()
Returns the namespace URI this generator handles.
|
private java.lang.String |
posListToString(PositionList posList) |
private static final org.slf4j.Logger LOG
private static final java.util.Set<org.jdom2.Namespace> NAMESPACES
private java.lang.String posListToString(PositionList posList)
posList
- PositionList to convertpublic java.lang.String getNamespaceUri()
ModuleGenerator
getNamespaceUri
in interface ModuleGenerator
public java.util.Set<org.jdom2.Namespace> getNamespaces()
ModuleGenerator
getNamespaces
in interface ModuleGenerator
public void generate(Module module, org.jdom2.Element element)
ModuleGenerator
generate
in interface ModuleGenerator
module
- the module to inject into the XML node (JDOM element).element
- the XML node into which module meta-data will be injected.