public class MapSerializer extends TypeSerializerImpl
TypeSerializer for maps.| Modifier and Type | Field and Description |
|---|---|
static String |
MEMBER_TAG
Tag name of a maps member tag.
|
static String |
NAME_TAG
Tag name of a maps members name tag.
|
static String |
STRUCT_TAG
Tag name of a maps struct tag.
|
VALUE_TAG, ZERO_ATTRIBUTES| Constructor and Description |
|---|
MapSerializer(TypeFactory pTypeFactory,
XmlRpcStreamConfig pConfig)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(ContentHandler pHandler,
Object pObject)
Writes the object
pObject to the SAX handler
pHandler. |
protected void |
writeData(ContentHandler pHandler,
Object pData) |
protected void |
writeEntry(ContentHandler pHandler,
Object pKey,
Object pValue) |
write, write, writepublic static final String STRUCT_TAG
public static final String MEMBER_TAG
public static final String NAME_TAG
public MapSerializer(TypeFactory pTypeFactory, XmlRpcStreamConfig pConfig)
pTypeFactory - The factory being used for creating serializers.pConfig - The configuration being used for creating serializers.protected void writeEntry(ContentHandler pHandler, Object pKey, Object pValue) throws SAXException
SAXExceptionprotected void writeData(ContentHandler pHandler, Object pData) throws SAXException
SAXExceptionpublic void write(ContentHandler pHandler, Object pObject) throws SAXException
TypeSerializerpObject to the SAX handler
pHandler.pHandler - The destination handler.pObject - The object being written.SAXException - Writing the object failed.Copyright © 2001–2025 The Apache Software Foundation. All rights reserved.