Top Description Methods
com.rometools.rome.io

public Interface ModuleParser

Known Direct Subinterfaces
com.rometools.rome.io.DelegatingModuleParser
Known Direct Implementers
com.rometools.rome.io.impl.DCModuleParser, com.rometools.rome.io.impl.SyModuleParser
Imports
java.util.Locale, org.jdom2.Element, com.rometools.rome.feed.module.Module

Parses module metadata from a XML node (JDOM element).

ModuleParser instances must thread safe.

Todo

explain how developers can plugin their own implementations.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the namespace URI.
getNamespaceUri
()

Returns the namespace URI this parser handles.

public Module

Returns:

a module instance, null if the element did not have module information.
parse
(Element
the XML node (JDOM element) to extract module information from.
element
,
Locale locale)

Parses the XML node (JDOM element) extracting module information.

Method Detail

getNamespaceUriback to summary
public String getNamespaceUri()

Returns the namespace URI this parser handles.

Returns:String

the namespace URI.

parseback to summary
public Module parse(Element element, Locale locale)

Parses the XML node (JDOM element) extracting module information.

Parameters
element:Element

the XML node (JDOM element) to extract module information from.

Returns:Module

a module instance, null if the element did not have module information.