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
Abstract base class of a parser, that invokes other type
parsers recursively.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final XmlRpcStreamConfig
private final org.apache.ws.commons.util.NamespaceContextImpl
private final TypeFactory
private boolean
private StringBuffer
private TypeParser
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RecursiveTypeParserImpl
(XmlRpcStreamConfig pConfig, org.apache.ws.commons.util.NamespaceContextImpl pContext, TypeFactory pFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
void
characters
(char[] pChars, int pOffset, int pLength) void
endElement
(String pURI, String pLocalName, String pQName) void
endPrefixMapping
(String pPrefix) protected void
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
void
startElement
(String pURI, String pLocalName, String pQName, Attributes pAttrs) void
startPrefixMapping
(String pPrefix, String pURI) protected void
Called to start a value tag.Methods inherited from class org.apache.xmlrpc.parser.TypeParserImpl
endDocument, getDocumentLocator, getResult, isEmpty, setDocumentLocator, setResult
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
context
private final org.apache.ws.commons.util.NamespaceContextImpl context -
cfg
-
factory
-
inValueTag
private boolean inValueTag -
typeParser
-
text
-
-
Constructor Details
-
RecursiveTypeParserImpl
protected RecursiveTypeParserImpl(XmlRpcStreamConfig pConfig, org.apache.ws.commons.util.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
-
startValueTag
Called to start a value tag.- Throws:
SAXException
-
addResult
- Throws:
SAXException
-
endValueTag
- Throws:
SAXException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classTypeParserImpl
- Throws:
SAXException
-
endElement
- Throws:
SAXException
-
startElement
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException - Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classTypeParserImpl
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classTypeParserImpl
- Throws:
SAXException
-
processingInstruction
Description copied from class:TypeParserImpl
PI's are by default ignored.- Specified by:
processingInstruction
in interfaceContentHandler
- Overrides:
processingInstruction
in classTypeParserImpl
- Throws:
SAXException
-
skippedEntity
Description copied from class:TypeParserImpl
Skipped entities raise an exception by default.- Specified by:
skippedEntity
in interfaceContentHandler
- Overrides:
skippedEntity
in classTypeParserImpl
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classTypeParserImpl
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in classTypeParserImpl
- Throws:
SAXException
-