com.sun.syndication.io.impl
public class DCModuleGenerator extends Object implements ModuleGenerator
| Field Summary | |
|---|---|
| static Namespace | DC_NS |
| static String | DC_URI |
| static Set | NAMESPACES |
| static Namespace | RDF_NS |
| static String | RDF_URI |
| static Namespace | TAXO_NS |
| static String | TAXO_URI |
| Method Summary | |
|---|---|
| void | generate(Module module, Element element)
Populate an element tree with elements for a module.
|
| protected Element | generateSimpleElement(String name, String value)
Utility method to generate a single element containing a string.
|
| protected List | generateSimpleElementList(String name, List value)
Utility method to generate a list of simple elements.
|
| protected Element | generateSubjectElement(DCSubject subject)
Utility method to generate an element for a subject.
|
| Namespace | getDCNamespace() |
| Set | getNamespaces()
Returns a set with all the URIs (JDOM Namespace elements) this module
generator uses.
|
| String | getNamespaceUri() |
| Namespace | getRDFNamespace() |
| Namespace | getTaxonomyNamespace() |
Parameters: module the module to populate from. element the root element to attach child elements to.
Parameters: name the name of the elment to generate. value the value of the text in the element.
Returns: the element generated.
Parameters: name the name of the element list to generate. value the list of values for the elements.
Returns: a list of Elements created.
Parameters: subject the subject to generate an element for.
Returns: the element for the subject.
Returns: a set with all the URIs this module generator uses.