Package org.apache.xmlrpc.parser
Class RecursiveTypeParserImpl
- java.lang.Object
-
- org.apache.xmlrpc.parser.TypeParserImpl
-
- org.apache.xmlrpc.parser.RecursiveTypeParserImpl
-
- All Implemented Interfaces:
TypeParser
,ContentHandler
- Direct Known 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
Fields Modifier and Type Field Description protected XmlRpcStreamConfig
cfg
-
Constructor Summary
Constructors Modifier Constructor Description protected
RecursiveTypeParserImpl(XmlRpcStreamConfig pConfig, org.apache.ws.commons.util.NamespaceContextImpl pContext, TypeFactory pFactory)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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()
Called to start a value tag.-
Methods inherited from class org.apache.xmlrpc.parser.TypeParserImpl
endDocument, getDocumentLocator, getResult, isEmpty, setDocumentLocator, setResult
-
-
-
-
Field Detail
-
cfg
protected final XmlRpcStreamConfig cfg
-
-
Constructor Detail
-
RecursiveTypeParserImpl
protected RecursiveTypeParserImpl(XmlRpcStreamConfig pConfig, org.apache.ws.commons.util.NamespaceContextImpl pContext, TypeFactory pFactory)
Creates a new instance.- Parameters:
pContext
- The namespace context.pConfig
- The request or response configuration.pFactory
- The type factory.
-
-
Method Detail
-
startValueTag
protected void startValueTag() throws SAXException
Called to start a value tag.- Throws:
SAXException
-
addResult
protected abstract void addResult(Object pResult) throws SAXException
- Throws:
SAXException
-
endValueTag
protected void endValueTag() throws SAXException
- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXException
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classTypeParserImpl
- Throws:
SAXException
-
endElement
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException
- Throws:
SAXException
-
startElement
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException
- Throws:
SAXException
-
characters
public void characters(char[] pChars, int pOffset, int pLength) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classTypeParserImpl
- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classTypeParserImpl
- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String pTarget, String pData) throws SAXException
Description copied from class:TypeParserImpl
PI's are by default ignored.- Specified by:
processingInstruction
in interfaceContentHandler
- Overrides:
processingInstruction
in classTypeParserImpl
- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String pEntity) throws SAXException
Description copied from class:TypeParserImpl
Skipped entities raise an exception by default.- Specified by:
skippedEntity
in interfaceContentHandler
- Overrides:
skippedEntity
in classTypeParserImpl
- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String pPrefix, String pURI) throws SAXException
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classTypeParserImpl
- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String pPrefix) throws SAXException
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in classTypeParserImpl
- Throws:
SAXException
-
-