Class MapParser
java.lang.Object
org.apache.xmlrpc.parser.TypeParserImpl
org.apache.xmlrpc.parser.RecursiveTypeParserImpl
org.apache.xmlrpc.parser.MapParser
- All Implemented Interfaces:
TypeParser, ContentHandler
TypeParser implementation
for maps.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate intprivate Mapprivate StringBufferprivate ObjectFields inherited from class RecursiveTypeParserImpl
cfg -
Constructor Summary
ConstructorsConstructorDescriptionMapParser(XmlRpcStreamConfig pConfig, org.apache.ws.commons.util.NamespaceContextImpl pContext, TypeFactory pFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidcharacters(char[] pChars, int pOffset, int pLength) voidendElement(String pURI, String pLocalName, String pQName) voidignorableWhitespace(char[] pChars, int pOffset, int pLength) voidvoidstartElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) Methods inherited from class RecursiveTypeParserImpl
endPrefixMapping, endValueTag, processingInstruction, skippedEntity, startPrefixMapping, startValueTagMethods inherited from class TypeParserImpl
endDocument, getDocumentLocator, getResult, isEmpty, setDocumentLocator, setResult
-
Field Details
-
level
private int level -
nameBuffer
-
nameObject
-
map
-
inName
private boolean inName -
inValue
private boolean inValue -
doneValue
private boolean doneValue
-
-
Constructor Details
-
MapParser
public MapParser(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 factory.
-
-
Method Details
-
addResult
- Specified by:
addResultin classRecursiveTypeParserImpl- Throws:
SAXException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classRecursiveTypeParserImpl- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classRecursiveTypeParserImpl- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classRecursiveTypeParserImpl- Throws:
SAXException
-
startElement
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classRecursiveTypeParserImpl- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classRecursiveTypeParserImpl- Throws:
SAXException
-