Top Description Fields Constructors Methods
com.rometools.rome.io.impl

public Class SyModuleGenerator

extends Object
implements ModuleGenerator
Class Inheritance
All Implemented Interfaces
com.rometools.rome.io.ModuleGenerator
Imports
java.util.Collections, .Date, .HashSet, .Locale, .Set, org.jdom2.Element, .Namespace, com.rometools.rome.feed.module.Module, .SyModule, com.rometools.rome.io.ModuleGenerator

Feed Generator for SY ModuleImpl

Field Summary

Modifier and TypeField and Description
private static final Set<Namespace>
private static final Namespace
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
generate(final Module
the module to inject into the XML node (JDOM element).
module
,
final Element
the XML node into which module meta-data will be injected.
element
)

Implements com.rometools.rome.io.ModuleGenerator.generate.

Generates and injects module metadata into an XML node (JDOM element).
public Set<Namespace>

Returns:

a set with all the URIs (JDOM Namespace elements) this module generator uses.
getNamespaces
()

Implements com.rometools.rome.io.ModuleGenerator.getNamespaces.

Returns a set with all the URIs (JDOM Namespace elements) this module generator uses.
public String
getNamespaceUri()

Implements com.rometools.rome.io.ModuleGenerator.getNamespaceUri.

Returns the namespace URI this generator handles.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NAMESPACESback to summary
private static final Set<Namespace> NAMESPACES
SY_NSback to summary
private static final Namespace SY_NS
SY_URIback to summary
private static final String SY_URI

Constructor Detail

SyModuleGeneratorback to summary
public SyModuleGenerator()

Method Detail

generateback to summary
public void generate(final Module module, final Element element)

Implements com.rometools.rome.io.ModuleGenerator.generate.

Doc from com.rometools.rome.io.ModuleGenerator.generate.

Generates and injects module metadata into an XML node (JDOM element).

Parameters
module:Module

the module to inject into the XML node (JDOM element).

element:Element

the XML node into which module meta-data will be injected.

Annotations
@Override
getNamespacesback to summary
public Set<Namespace> getNamespaces()

Implements com.rometools.rome.io.ModuleGenerator.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).

Returns:Set<Namespace>

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

Annotations
@Override
getNamespaceUriback to summary
public String getNamespaceUri()

Implements com.rometools.rome.io.ModuleGenerator.getNamespaceUri.

Doc from com.rometools.rome.io.ModuleGenerator.getNamespaceUri.

Returns the namespace URI this generator handles.

Returns:String

the namespace URI.

Annotations
@Override