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

Quick Search    Search Deep

com.sun.syndication.io
Interface ModuleGenerator  view ModuleGenerator download ModuleGenerator.java


public interface ModuleGenerator

Injects module metadata into a XML node (JDOM element).

ModuleGenerator instances must thread safe.

TODO: explain how developers can plugin their own implementations.


Method Summary
 void generate(com.sun.syndication.feed.module.Module module, org.jdom.Element element)
          Generates and injectts module metadata in a XML node (JDOM element).
 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.
 

Method Detail

getNamespaceUri

public java.lang.String getNamespaceUri()
Returns the namespace URI this generator handles.


getNamespaces

public 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).


generate

public void generate(com.sun.syndication.feed.module.Module module,
                     org.jdom.Element element)
Generates and injectts module metadata in a XML node (JDOM element).