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
 java.lang.String getNamespaceUri()
          Returns the namespace URI this parser handles.
 Module parse(org.jdom.Element element)
          Parses the XML node (JDOM element) extracting module information.
 

Method Detail

getNamespaceUri

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

Returns:
the namespace URI.

parse

public Module parse(org.jdom.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 © 2004 Sun Microsystems. All Rights Reserved.