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 XmlRpcStreamConfigprivate final org.apache.ws.commons.util.NamespaceContextImplprivate final TypeFactoryprivate booleanprivate StringBufferprivate TypeParser -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRecursiveTypeParserImpl(XmlRpcStreamConfig pConfig, org.apache.ws.commons.util.NamespaceContextImpl pContext, TypeFactory pFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidvoidcharacters(char[] pChars, int pOffset, int pLength) voidendElement(String pURI, String pLocalName, String pQName) voidendPrefixMapping(String pPrefix) protected voidvoidignorableWhitespace(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.voidvoidstartElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) voidstartPrefixMapping(String pPrefix, String pURI) protected voidCalled to start a value tag.Methods inherited from class TypeParserImpl
endDocument, getDocumentLocator, getResult, isEmpty, setDocumentLocator, setResult
-
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:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin 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:
charactersin interfaceContentHandler- Overrides:
charactersin classTypeParserImpl- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classTypeParserImpl- Throws:
SAXException
-
processingInstruction
Description copied from class:TypeParserImplPI's are by default ignored.- Specified by:
processingInstructionin interfaceContentHandler- Overrides:
processingInstructionin classTypeParserImpl- Throws:
SAXException
-
skippedEntity
Description copied from class:TypeParserImplSkipped entities raise an exception by default.- Specified by:
skippedEntityin interfaceContentHandler- Overrides:
skippedEntityin classTypeParserImpl- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classTypeParserImpl- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin classTypeParserImpl- Throws:
SAXException
-