Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.syndication.io.impl
Class DCModuleGenerator  view DCModuleGenerator download DCModuleGenerator.java

java.lang.Object
  extended bycom.sun.syndication.io.impl.DCModuleGenerator
All Implemented Interfaces:
com.sun.syndication.io.ModuleGenerator

public class DCModuleGenerator
extends java.lang.Object
implements com.sun.syndication.io.ModuleGenerator

Feed Generator for DublinCore Module.


Field Summary
private static org.jdom.Namespace DC_NS
           
private static java.lang.String DC_URI
           
private static java.util.Set NAMESPACES
           
private static org.jdom.Namespace RDF_NS
           
private static java.lang.String RDF_URI
           
private static org.jdom.Namespace TAXO_NS
           
private static java.lang.String TAXO_URI
           
 
Constructor Summary
DCModuleGenerator()
           
 
Method Summary
 void generate(com.sun.syndication.feed.module.Module module, org.jdom.Element element)
          Populate an element tree with elements for a module.
protected  org.jdom.Element generateSimpleElement(java.lang.String name, java.lang.String value)
          Utility method to generate a single element containing a string.
protected  java.util.List generateSimpleElementList(java.lang.String name, java.util.List value)
          Utility method to generate a list of simple elements.
protected  org.jdom.Element generateSubjectElement(com.sun.syndication.feed.module.DCSubject subject)
          Utility method to generate an element for a subject.
private  org.jdom.Namespace getDCNamespace()
           
 java.util.Set 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  org.jdom.Namespace getRDFNamespace()
           
private  org.jdom.Namespace getTaxonomyNamespace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DC_URI

private static final java.lang.String DC_URI
See Also:
Constant Field Values

TAXO_URI

private static final java.lang.String TAXO_URI
See Also:
Constant Field Values

RDF_URI

private static final java.lang.String RDF_URI
See Also:
Constant Field Values

DC_NS

private static final org.jdom.Namespace DC_NS

TAXO_NS

private static final org.jdom.Namespace TAXO_NS

RDF_NS

private static final org.jdom.Namespace RDF_NS

NAMESPACES

private static final java.util.Set NAMESPACES
Constructor Detail

DCModuleGenerator

public DCModuleGenerator()
Method Detail

getNamespaceUri

public final java.lang.String getNamespaceUri()
Description copied from interface: com.sun.syndication.io.ModuleGenerator
Returns the namespace URI this generator handles.

Specified by:
getNamespaceUri in interface com.sun.syndication.io.ModuleGenerator

getDCNamespace

private final org.jdom.Namespace getDCNamespace()

getRDFNamespace

private final org.jdom.Namespace getRDFNamespace()

getTaxonomyNamespace

private final org.jdom.Namespace getTaxonomyNamespace()

getNamespaces

public final java.util.Set getNamespaces()
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).

Specified by:
getNamespaces in interface com.sun.syndication.io.ModuleGenerator

generate

public final void generate(com.sun.syndication.feed.module.Module module,
                           org.jdom.Element element)
Populate an element tree with elements for a module.

Specified by:
generate in interface com.sun.syndication.io.ModuleGenerator

generateSubjectElement

protected final org.jdom.Element generateSubjectElement(com.sun.syndication.feed.module.DCSubject subject)
Utility method to generate an element for a subject.


generateSimpleElement

protected final org.jdom.Element generateSimpleElement(java.lang.String name,
                                                       java.lang.String value)
Utility method to generate a single element containing a string.


generateSimpleElementList

protected final java.util.List generateSimpleElementList(java.lang.String name,
                                                         java.util.List value)
Utility method to generate a list of simple elements.