org.apache.xmlrpc.parser

Class MapParser

Implemented Interfaces:
ContentHandler, TypeParser

public class MapParser
extends RecursiveTypeParserImpl

TypeParser implementation for maps.

Field Summary

Fields inherited from class org.apache.xmlrpc.parser.RecursiveTypeParserImpl

cfg

Constructor Summary

MapParser(XmlRpcStreamConfig pConfig, NamespaceContextImpl pContext, TypeFactory pFactory)
Creates a new instance.

Method Summary

protected void
addResult(Object pResult)
void
characters(char[] pChars, int pOffset, int pLength)
void
endElement(String pURI, String pLocalName, String pQName)
void
ignorableWhitespace(char[] pChars, int pOffset, int pLength)
void
startDocument()
void
startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs)

Methods inherited from class org.apache.xmlrpc.parser.RecursiveTypeParserImpl

addResult, characters, endElement, endPrefixMapping, endValueTag, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startElement, startPrefixMapping, startValueTag

Methods inherited from class org.apache.xmlrpc.parser.TypeParserImpl

characters, endDocument, endPrefixMapping, getDocumentLocator, getResult, ignorableWhitespace, isEmpty, processingInstruction, setDocumentLocator, setResult, skippedEntity, startDocument, startPrefixMapping

Constructor Details

MapParser

public MapParser(XmlRpcStreamConfig pConfig,
                 NamespaceContextImpl pContext,
                 TypeFactory pFactory)
Creates a new instance.
Parameters:
pConfig - The request or response configuration.
pContext - The namespace context.
pFactory - The factory.

Method Details

addResult

protected void addResult(Object pResult)
            throws SAXException
Overrides:
addResult in interface RecursiveTypeParserImpl

characters

public void characters(char[] pChars,
                       int pOffset,
                       int pLength)
            throws SAXException
Overrides:
characters in interface RecursiveTypeParserImpl

endElement

public void endElement(String pURI,
                       String pLocalName,
                       String pQName)
            throws SAXException
Overrides:
endElement in interface RecursiveTypeParserImpl

ignorableWhitespace

public void ignorableWhitespace(char[] pChars,
                                int pOffset,
                                int pLength)
            throws SAXException
Overrides:
ignorableWhitespace in interface RecursiveTypeParserImpl

startDocument

public void startDocument()
            throws SAXException
Overrides:
startDocument in interface RecursiveTypeParserImpl

startElement

public void startElement(String pURI,
                         String pLocalName,
                         String pQName,
                         Attributes pAttrs)
            throws SAXException
Overrides:
startElement in interface RecursiveTypeParserImpl

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.