com.sun.syndication.io

Interface ModuleParser

public interface ModuleParser

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

ModuleParser instances must thread safe.

TODO: explain how developers can plugin their own implementations.

Author: Alejandro Abdelnur

Method Summary
StringgetNamespaceUri()
Returns the namespace URI this parser handles.
Moduleparse(Element element)
Parses the XML node (JDOM element) extracting module information.

Method Detail

getNamespaceUri

public String getNamespaceUri()
Returns the namespace URI this parser handles.

Returns: the namespace URI.

parse

public Module parse(Element element)
Parses the XML node (JDOM element) extracting module information.

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

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

Copyright © Sun Microsystems. All Rights Reserved.