com.sun.syndication.io
インタフェース ModuleGenerator

既知のサブインタフェースの一覧:
DelegatingModuleGenerator
既知の実装クラスの一覧:
DCModuleGenerator, SyModuleGenerator

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.


メソッドの概要
 void generate(Module module, Element element)
          Generates and injects module metadata into an 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.
 

メソッドの詳細

getNamespaceUri

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

戻り値:
the namespace URI.

getNamespaces

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

戻り値:
a set with all the URIs (JDOM Namespace elements) this module generator uses.

generate

void generate(Module module,
              Element element)
Generates and injects module metadata into an XML node (JDOM element).

パラメータ:
module - the module to inject into the XML node (JDOM element).
element - the XML node into which module meta-data will be injected.