com.sun.syndication.io
Interface ModuleGenerator


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.

Author:
Alejandro Abdelnur

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

Returns:
the namespace URI.

generate

public void generate(ModuleI module,
                     org.jdom.Element element)
Generates and injectts module metadata in a XML node (JDOM element).

Parameters:
module - the module to inject into the XML node (JDOM element).
element - the XML node to inject the module metadata to.


Copyright © 2004 Sun Microsystems. All Rights Reserved.