org.apache.xmlrpc.parser
Class NodeParser

java.lang.Object
  extended by org.apache.xmlrpc.parser.ExtParser
      extended by org.apache.xmlrpc.parser.NodeParser
All Implemented Interfaces:
TypeParser, org.xml.sax.ContentHandler

public class NodeParser
extends ExtParser

A parser for DOM document.


Field Summary
private  org.apache.ws.commons.serialize.DOMBuilder builder
           
private static javax.xml.parsers.DocumentBuilderFactory dbf
           
 
Constructor Summary
NodeParser()
           
 
Method Summary
protected  org.xml.sax.ContentHandler getExtHandler()
          Returns a content handler for parsing the actual contents.
 java.lang.Object getResult()
          Returns the parsed object.
protected  java.lang.String getTagName()
          Returns the outer node name.
 
Methods inherited from class org.apache.xmlrpc.parser.ExtParser
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbf

private static final javax.xml.parsers.DocumentBuilderFactory dbf

builder

private final org.apache.ws.commons.serialize.DOMBuilder builder
Constructor Detail

NodeParser

public NodeParser()
Method Detail

getTagName

protected java.lang.String getTagName()
Description copied from class: ExtParser
Returns the outer node name.

Specified by:
getTagName in class ExtParser

getExtHandler

protected org.xml.sax.ContentHandler getExtHandler()
                                            throws org.xml.sax.SAXException
Description copied from class: ExtParser
Returns a content handler for parsing the actual contents.

Specified by:
getExtHandler in class ExtParser
Returns:
A SAX handler for parsing the XML inside the outer ex:foo element.
Throws:
org.xml.sax.SAXException - Creating the handler failed.

getResult

public java.lang.Object getResult()
Description copied from interface: TypeParser
Returns the parsed object.

Returns:
The parameter or result object.