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

Quick Search    Search Deep

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

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

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

Feed Generator for SY ModuleImpl


Field Summary
private static java.util.Set NAMESPACES
           
private static org.jdom.Namespace SY_NS
           
private static java.lang.String SY_URI
           
 
Constructor Summary
SyModuleGenerator()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SY_URI

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

SY_NS

private static final org.jdom.Namespace SY_NS

NAMESPACES

private static final java.util.Set NAMESPACES
Constructor Detail

SyModuleGenerator

public SyModuleGenerator()
Method Detail

getNamespaceUri

public 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

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

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

generate

public void generate(com.sun.syndication.feed.module.Module module,
                     org.jdom.Element element)
Description copied from interface: com.sun.syndication.io.ModuleGenerator
Generates and injectts module metadata in a XML node (JDOM element).

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