| java.lang.Object com.sun.syndication.io.impl.DCModuleGenerator
DCModuleGenerator | public class DCModuleGenerator implements ModuleGenerator(Code) | | Feed Generator for DublinCore Module.
author: Elaine Chien |
Method Summary | |
final public void | generate(Module module, Element element) Populate an element tree with elements for a module. | final protected Element | generateSimpleElement(String name, String value) Utility method to generate a single element containing a string.
Parameters: name - the name of the elment to generate. Parameters: value - the value of the text in the element. | final protected List | generateSimpleElementList(String name, List value) Utility method to generate a list of simple elements.
Parameters: name - the name of the element list to generate. Parameters: value - the list of values for the elements. | final protected Element | generateSubjectElement(DCSubject subject) Utility method to generate an element for a subject.
Parameters: subject - the subject to generate an element for. | final public String | getNamespaceUri() | final public Set | getNamespaces() Returns a set with all the URIs (JDOM Namespace elements) this module
generator uses. |
generate | final public void generate(Module module, Element element)(Code) | | Populate an element tree with elements for a module.
Parameters: module - the module to populate from. Parameters: element - the root element to attach child elements to. |
generateSimpleElement | final protected Element generateSimpleElement(String name, String value)(Code) | | Utility method to generate a single element containing a string.
Parameters: name - the name of the elment to generate. Parameters: value - the value of the text in the element. the element generated. |
generateSimpleElementList | final protected List generateSimpleElementList(String name, List value)(Code) | | Utility method to generate a list of simple elements.
Parameters: name - the name of the element list to generate. Parameters: value - the list of values for the elements. a list of Elements created. |
generateSubjectElement | final protected Element generateSubjectElement(DCSubject subject)(Code) | | Utility method to generate an element for a subject.
Parameters: subject - the subject to generate an element for. the element for the subject. |
getNamespaces | final public Set getNamespaces()(Code) | | Returns a set with all the URIs (JDOM Namespace elements) this module
generator uses.
It is used by the the feed generators to add their namespace definition
in the root element of the generated document (forward-missing of
Java 5.0 Generics).
a set with all the URIs this module generator uses. |
|
|