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 XmlRpcStreamConfigcfg
-
Constructor Summary
Constructors Modifier Constructor Description protectedRecursiveTypeParserImpl(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 voidaddResult(Object pResult)voidcharacters(char[] pChars, int pOffset, int pLength)voidendElement(String pURI, String pLocalName, String pQName)voidendPrefixMapping(String pPrefix)protected voidendValueTag()voidignorableWhitespace(char[] pChars, int pOffset, int pLength)voidprocessingInstruction(String pTarget, String pData)PI's are by default ignored.voidskippedEntity(String pEntity)Skipped entities raise an exception by default.voidstartDocument()voidstartElement(String pURI, String pLocalName, String pQName, Attributes pAttrs)voidstartPrefixMapping(String pPrefix, String pURI)protected voidstartValueTag()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 SAXExceptionCalled 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:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin 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:
charactersin interfaceContentHandler- Overrides:
charactersin classTypeParserImpl- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classTypeParserImpl- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String pTarget, String pData) throws SAXException
Description copied from class:TypeParserImplPI's are by default ignored.- Specified by:
processingInstructionin interfaceContentHandler- Overrides:
processingInstructionin classTypeParserImpl- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String pEntity) throws SAXException
Description copied from class:TypeParserImplSkipped entities raise an exception by default.- Specified by:
skippedEntityin interfaceContentHandler- Overrides:
skippedEntityin classTypeParserImpl- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String pPrefix, String pURI) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classTypeParserImpl- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String pPrefix) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin classTypeParserImpl- Throws:
SAXException
-
-