org.apache.qpid.management.wsdm.muse.serializer
Class MapSerializer

java.lang.Object
  extended by org.apache.qpid.management.wsdm.muse.serializer.MapSerializer
All Implemented Interfaces:
org.apache.muse.core.serializer.Serializer

public class MapSerializer
extends Object
implements org.apache.muse.core.serializer.Serializer

Implementation of Muse Serializer for Map type.


Field Summary
(package private)  ByteArraySerializer _byteArraySerializer
           
(package private)  org.apache.muse.core.serializer.Serializer _objectSerializer
           
(package private)  org.apache.muse.core.serializer.Serializer _stringSerializer
           
 
Constructor Summary
MapSerializer()
           
 
Method Summary
 Object fromXML(Element xml)
          Return a map representation of the given xml element.
 Class<?> getSerializableType()
          Returns the java type associated to this class.
 Element toXML(Object obj, QName qname)
          Return an xml representation of the given Map with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_byteArraySerializer

ByteArraySerializer _byteArraySerializer

_objectSerializer

org.apache.muse.core.serializer.Serializer _objectSerializer

_stringSerializer

org.apache.muse.core.serializer.Serializer _stringSerializer
Constructor Detail

MapSerializer

public MapSerializer()
Method Detail

fromXML

public Object fromXML(Element xml)
               throws org.apache.muse.ws.addressing.soap.SoapFault
Return a map representation of the given xml element.

Specified by:
fromXML in interface org.apache.muse.core.serializer.Serializer
Parameters:
xml - the element to unmarshal.
Throws:
org.apache.muse.ws.addressing.soap.SoapFault - when the unmarshalling fails.

getSerializableType

public Class<?> getSerializableType()
Returns the java type associated to this class.

Specified by:
getSerializableType in interface org.apache.muse.core.serializer.Serializer
Returns:
the java type associated to this class.

toXML

public Element toXML(Object obj,
                     QName qname)
              throws org.apache.muse.ws.addressing.soap.SoapFault
Return an xml representation of the given Map with the given name.

Specified by:
toXML in interface org.apache.muse.core.serializer.Serializer
Parameters:
object - the Map to marshal.
qname - the qualified (xml) name of the object to use in xml representation.
Returns:
the xml representation of the given Map.
Throws:
org.apache.muse.ws.addressing.soap.SoapFault - when the marshalling fails.


Licensed to the Apache Software Foundation