com.sun.syndication.samples.module
Class SampleModuleGenerator
java.lang.Object
com.sun.syndication.samples.module.SampleModuleGenerator
- All Implemented Interfaces:
- com.sun.syndication.io.ModuleGenerator
- public class SampleModuleGenerator
- extends java.lang.Object
- implements com.sun.syndication.io.ModuleGenerator
Generator for the Sample ModuleImpl.
- Author:
- Alejandro Abdelnur
Method Summary |
void |
generate(com.sun.syndication.feed.module.Module module,
org.jdom.Element element)
|
protected org.jdom.Element |
generateSimpleElement(java.lang.String name,
java.lang.String value)
|
java.util.Set |
getNamespaces()
Returns a set with all the URIs (JDOM Namespace elements) this module generator uses. |
java.lang.String |
getNamespaceUri()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleModuleGenerator
public SampleModuleGenerator()
getNamespaceUri
public java.lang.String getNamespaceUri()
- 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
- Returns:
- a set with all the URIs (JDOM Namespace elements) this module generator uses.
generate
public void generate(com.sun.syndication.feed.module.Module module,
org.jdom.Element element)
- Specified by:
generate
in interface com.sun.syndication.io.ModuleGenerator
generateSimpleElement
protected org.jdom.Element generateSimpleElement(java.lang.String name,
java.lang.String value)
Copyright © 2004-2006 Sun Microsystems. All Rights Reserved.