|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.io.impl.DCModuleGenerator
public class DCModuleGenerator
Feed Generator for DublinCore Module.
Constructor Summary | |
---|---|
DCModuleGenerator()
|
Method Summary | |
---|---|
void |
generate(Module module,
org.jdom2.Element element)
Populate an element tree with elements for a module. |
protected org.jdom2.Element |
generateSimpleElement(String name,
String value)
Utility method to generate a single element containing a string. |
protected List<org.jdom2.Element> |
generateSimpleElementList(String name,
List<String> value)
Utility method to generate a list of simple elements. |
protected org.jdom2.Element |
generateSubjectElement(DCSubject subject)
Utility method to generate an element for a subject. |
Set<org.jdom2.Namespace> |
getNamespaces()
Returns a set with all the URIs (JDOM Namespace elements) this module generator uses. |
String |
getNamespaceUri()
Returns the namespace URI this generator handles. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DCModuleGenerator()
Method Detail |
---|
public final String getNamespaceUri()
ModuleGenerator
getNamespaceUri
in interface ModuleGenerator
public final Set<org.jdom2.Namespace> getNamespaces()
getNamespaces
in interface ModuleGenerator
public final void generate(Module module, org.jdom2.Element element)
generate
in interface ModuleGenerator
module
- the module to populate from.element
- the root element to attach child elements to.protected final org.jdom2.Element generateSubjectElement(DCSubject subject)
subject
- the subject to generate an element for.
protected final org.jdom2.Element generateSimpleElement(String name, String value)
name
- the name of the elment to generate.value
- the value of the text in the element.
protected final List<org.jdom2.Element> generateSimpleElementList(String name, List<String> value)
name
- the name of the element list to generate.value
- the list of values for the elements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |