public class CCModuleGenerator extends java.lang.Object implements ModuleGenerator
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private static java.util.HashSet<org.jdom2.Namespace> |
NAMESPACES |
private static org.jdom2.Namespace |
RDF |
private static org.jdom2.Namespace |
RSS |
private static org.jdom2.Namespace |
RSS1 |
private static org.jdom2.Namespace |
RSS2 |
Constructor and Description |
---|
CCModuleGenerator() |
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).
|
private void |
generateRSS1(CreativeCommons module,
org.jdom2.Element element) |
private void |
generateRSS2(CreativeCommons module,
org.jdom2.Element 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 static final org.slf4j.Logger LOG
private static final org.jdom2.Namespace RSS1
private static final org.jdom2.Namespace RSS2
private static final org.jdom2.Namespace RSS
private static final org.jdom2.Namespace RDF
private static final java.util.HashSet<org.jdom2.Namespace> NAMESPACES
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()
ModuleGenerator
getNamespaces
in interface ModuleGenerator
public java.lang.String getNamespaceUri()
ModuleGenerator
getNamespaceUri
in interface ModuleGenerator
private void generateRSS1(CreativeCommons module, org.jdom2.Element element)
private void generateRSS2(CreativeCommons module, org.jdom2.Element element)