org.apache.qpid.management.wsdm.muse.serializer
Class MapSerializer
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_byteArraySerializer
ByteArraySerializer _byteArraySerializer
_objectSerializer
org.apache.muse.core.serializer.Serializer _objectSerializer
_stringSerializer
org.apache.muse.core.serializer.Serializer _stringSerializer
MapSerializer
public MapSerializer()
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