org.ogf.graap.wsag.wsrf.impl
Class Serializer

java.lang.Object
  extended by org.ogf.graap.wsag.wsrf.impl.Serializer
All Implemented Interfaces:
org.apache.muse.core.serializer.Serializer

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

Serializer

Author:
Oliver Waeldrich

Constructor Summary
Serializer()
           
 
Method Summary
 Object fromXML(Element xml)
          De-serializes an object as XML Bean.
 Class<?> getSerializableType()
           
 Element toXML(Object obj, QName qname)
          Serializes an XmlObject as dom node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Serializer

public Serializer()
Method Detail

fromXML

public Object fromXML(Element xml)
               throws org.apache.muse.ws.addressing.soap.SoapFault
De-serializes an object as XML Bean.

Specified by:
fromXML in interface org.apache.muse.core.serializer.Serializer
Parameters:
xml - XML representation of the object
Returns:
the de-serialized document
Throws:
org.apache.muse.ws.addressing.soap.SoapFault - indicates a de-serialization error

getSerializableType

public Class<?> getSerializableType()
Specified by:
getSerializableType in interface org.apache.muse.core.serializer.Serializer
Returns:
the XmlObject class

toXML

public Element toXML(Object obj,
                     QName qname)
              throws org.apache.muse.ws.addressing.soap.SoapFault
Serializes an XmlObject as dom node.

Specified by:
toXML in interface org.apache.muse.core.serializer.Serializer
Parameters:
obj - the object to serialize
qname - the document QName
Returns:
the serialized document
Throws:
org.apache.muse.ws.addressing.soap.SoapFault - indicates a serialization error


Copyright © 2008-2012. All Rights Reserved.