org.apache.xmlrpc.parser

Class RecursiveTypeParserImpl

Implemented Interfaces:
ContentHandler, TypeParser
Known Direct Subclasses:
MapParser, ObjectArrayParser, XmlRpcRequestParser, XmlRpcResponseParser

public abstract class RecursiveTypeParserImpl
extends TypeParserImpl

Abstract base class of a parser, that invokes other type parsers recursively.

Field Summary

protected XmlRpcStreamConfig
cfg

Constructor Summary

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

Method Summary

protected abstract void
addResult(Object pResult)
void
characters(char[] pChars, int pOffset, int pLength)
void
endElement(String pURI, String pLocalName, String pQName)
void
endPrefixMapping(String pPrefix)
protected void
endValueTag()
void
ignorableWhitespace(char[] pChars, int pOffset, int pLength)
void
processingInstruction(String pTarget, String pData)
PI's are by default ignored.
void
skippedEntity(String pEntity)
Skipped entities raise an exception by default.
void
startDocument()
void
startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs)
void
startPrefixMapping(String pPrefix, String pURI)
protected void
startValueTag()

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

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

Field Details

cfg

protected final XmlRpcStreamConfig cfg

Constructor Details

RecursiveTypeParserImpl

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

Method Details

addResult

protected abstract void addResult(Object pResult)
            throws SAXException

characters

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

endElement

public void endElement(String pURI,
                       String pLocalName,
                       String pQName)
            throws SAXException

endPrefixMapping

public void endPrefixMapping(String pPrefix)
            throws SAXException
Overrides:
endPrefixMapping in interface TypeParserImpl

endValueTag

protected void endValueTag()
            throws SAXException

ignorableWhitespace

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

processingInstruction

public void processingInstruction(String pTarget,
                                  String pData)
            throws SAXException
PI's are by default ignored.
Overrides:
processingInstruction in interface TypeParserImpl

skippedEntity

public void skippedEntity(String pEntity)
            throws SAXException
Skipped entities raise an exception by default.
Overrides:
skippedEntity in interface TypeParserImpl

startDocument

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

startElement

public void startElement(String pURI,
                         String pLocalName,
                         String pQName,
                         Attributes pAttrs)
            throws SAXException

startPrefixMapping

public void startPrefixMapping(String pPrefix,
                               String pURI)
            throws SAXException
Overrides:
startPrefixMapping in interface TypeParserImpl

startValueTag

protected void startValueTag()
            throws SAXException

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