org.globus.ogsa.encoding
Class ObjectSerializer

java.lang.Object
  extended byorg.globus.ogsa.encoding.ObjectSerializer

public class ObjectSerializer
extends java.lang.Object

Converts Java Objects to DOM Elements and vice versa. The objects must be compliant with the Axis Bean model, i.e. generated using the WSDL2Java tool from an XML Schema definition.


Constructor Summary
ObjectSerializer()
           
 
Method Summary
static org.w3c.dom.Element toElement(java.lang.Object obj)
           
static org.w3c.dom.Element toElement(java.lang.Object obj, QName qname)
           
static java.lang.Object toObject(org.w3c.dom.Element element)
           
static java.lang.Object toObject(org.w3c.dom.Element element, java.lang.Class javaClass)
           
static java.lang.String toString(java.lang.Object obj)
           
static java.lang.String toString(java.lang.Object obj, QName qname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSerializer

public ObjectSerializer()
Method Detail

toElement

public static org.w3c.dom.Element toElement(java.lang.Object obj)
                                     throws GridServiceException
Throws:
GridServiceException

toElement

public static org.w3c.dom.Element toElement(java.lang.Object obj,
                                            QName qname)
                                     throws GridServiceException
Throws:
GridServiceException

toString

public static java.lang.String toString(java.lang.Object obj)
                                 throws GridServiceException
Throws:
GridServiceException

toString

public static java.lang.String toString(java.lang.Object obj,
                                        QName qname)
                                 throws GridServiceException
Throws:
GridServiceException

toObject

public static java.lang.Object toObject(org.w3c.dom.Element element)
                                 throws GridServiceException
Throws:
GridServiceException

toObject

public static java.lang.Object toObject(org.w3c.dom.Element element,
                                        java.lang.Class javaClass)
                                 throws GridServiceException
Throws:
GridServiceException