public class ITunesGenerator extends java.lang.Object implements ModuleGenerator
Modifier and Type | Field and Description |
---|---|
private static org.jdom2.Namespace |
NAMESPACE |
private static java.util.HashSet<org.jdom2.Namespace> |
NAMESPACES |
Constructor and Description |
---|
ITunesGenerator() |
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).
|
protected org.jdom2.Element |
generateSimpleElement(java.lang.String name,
java.lang.String value) |
java.util.Set<org.jdom2.Namespace> |
getNamespaces()
Returns the list of namespaces this module uses.
|
java.lang.String |
getNamespaceUri()
Returns the namespace URI this module handles.
|
private static final java.util.HashSet<org.jdom2.Namespace> NAMESPACES
private static final org.jdom2.Namespace NAMESPACE
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.public java.util.Set<org.jdom2.Namespace> getNamespaces()
getNamespaces
in interface ModuleGenerator
public java.lang.String getNamespaceUri()
getNamespaceUri
in interface ModuleGenerator
protected org.jdom2.Element generateSimpleElement(java.lang.String name, java.lang.String value)