org.apache.xmlrpc.serializer

Class MapSerializer

Implemented Interfaces:
TypeSerializer

public class MapSerializer
extends TypeSerializerImpl

A TypeSerializer for maps.

Field Summary

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.

Fields inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl

VALUE_TAG, ZERO_ATTRIBUTES

Constructor Summary

MapSerializer(TypeFactory pTypeFactory, XmlRpcStreamConfig pConfig)
Creates a new instance.

Method Summary

void
write(ContentHandler pHandler, Object pObject)
protected void
writeData(ContentHandler pHandler, Object pData)
protected void
writeEntry(ContentHandler pHandler, Object pKey, Object pValue)

Methods inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl

write, write, write

Field Details

MEMBER_TAG

public static final String MEMBER_TAG
Tag name of a maps member tag.

NAME_TAG

public static final String NAME_TAG
Tag name of a maps members name tag.

STRUCT_TAG

public static final String STRUCT_TAG
Tag name of a maps struct tag.

Constructor Details

MapSerializer

public MapSerializer(TypeFactory pTypeFactory,
                     XmlRpcStreamConfig pConfig)
Creates a new instance.
Parameters:
pTypeFactory - The factory being used for creating serializers.
pConfig - The configuration being used for creating serializers.

Method Details

write

public void write(ContentHandler pHandler,
                  Object pObject)
            throws SAXException
Specified by:
write in interface TypeSerializer

writeData

protected void writeData(ContentHandler pHandler,
                         Object pData)
            throws SAXException

writeEntry

protected void writeEntry(ContentHandler pHandler,
                          Object pKey,
                          Object pValue)
            throws SAXException

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.