org.ogf.graap.wsag.wsrf.impl
Class Serializer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Serializer
public Serializer()
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 serializeqname
- 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.