|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.wsrf.encoding.ObjectDeserializer
public class ObjectDeserializer
Converts Java DOM Elements and SOAP Elements to Java objects. The objects must be compliant with the Axis Bean model, i.e. generated using the WSDL2Java tool from an XML Schema definition or must be of simple type.
| Field Summary | |
|---|---|
private static org.globus.util.I18n |
i18n
|
| Constructor Summary | |
|---|---|
ObjectDeserializer()
|
|
| Method Summary | |
|---|---|
static boolean |
contains(javax.xml.soap.SOAPElement element,
java.lang.Class javaClass)
Checks to see whether the any element is of type javaClass. |
static java.lang.Object |
deserialize(org.xml.sax.InputSource input,
java.lang.Class javaClass)
Deserializes input with XML into a Java object of the given type. |
static java.lang.Object |
getFirstAsObject(org.apache.axis.encoding.AnyContentType any)
Converts the first element of AnyContentType object into a Java object. |
static java.lang.Object |
getFirstAsObject(org.apache.axis.encoding.AnyContentType any,
java.lang.Class javaClass)
Converts the first element of AnyContentType object into a Java object. |
static java.lang.Object[] |
toObject(org.apache.axis.encoding.AnyContentType any)
Converts a AnyContentType object into a set of Java objects. |
static java.lang.Object[] |
toObject(org.apache.axis.encoding.AnyContentType any,
java.lang.Class javaClass)
Converts a AnyContentType object into a set of Java objects. |
static java.lang.Object |
toObject(org.w3c.dom.Element element)
Converts a DOM Element object into a Java object. |
static java.lang.Object |
toObject(org.w3c.dom.Element element,
java.lang.Class javaClass)
Converts a DOM Element object into a Java object. |
static java.lang.Object |
toObject(javax.xml.soap.SOAPElement element)
Converts a SOAPElement object into a Java object. |
static java.lang.Object[] |
toObject(javax.xml.soap.SOAPElement[] elements)
Converts an array of SOAPElement objects into a set of Java objects. |
static java.lang.Object[] |
toObject(javax.xml.soap.SOAPElement[] elements,
java.lang.Class javaClass)
Converts an array of SOAPElement objects into a set of Java objects. |
static java.lang.Object |
toObject(javax.xml.soap.SOAPElement element,
java.lang.Class javaClass)
Converts a SOAPElement object into a Java object of specified type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.globus.util.I18n i18n
| Constructor Detail |
|---|
public ObjectDeserializer()
| Method Detail |
|---|
public static java.lang.Object toObject(org.w3c.dom.Element element)
throws DeserializationException
DeserializationException
public static java.lang.Object toObject(org.w3c.dom.Element element,
java.lang.Class javaClass)
throws DeserializationException
DeserializationException
public static java.lang.Object toObject(javax.xml.soap.SOAPElement element)
throws DeserializationException
DeserializationExceptiontoObject(SOAPElement, Class)
public static java.lang.Object toObject(javax.xml.soap.SOAPElement element,
java.lang.Class javaClass)
throws DeserializationException
element - SOAPElement to be convertedjavaClass - class containing the meta data about how to deserialize
the element or a simple Java type such as Integer.
DeserializationException - if deserialization fails.
public static java.lang.Object[] toObject(javax.xml.soap.SOAPElement[] elements)
throws DeserializationException
DeserializationExceptiontoObject(SOAPElement[], Class)
public static java.lang.Object[] toObject(javax.xml.soap.SOAPElement[] elements,
java.lang.Class javaClass)
throws DeserializationException
elements - an array of elements to convertjavaClass - class containing the meta data about how to deserialize
the elements or a simple Java type such as Integer.
DeserializationException - if deserialization fails.
public static java.lang.Object[] toObject(org.apache.axis.encoding.AnyContentType any)
throws DeserializationException
DeserializationExceptiontoObject(SOAPElement[], Class)
public static java.lang.Object[] toObject(org.apache.axis.encoding.AnyContentType any,
java.lang.Class javaClass)
throws DeserializationException
DeserializationExceptiontoObject(SOAPElement[], Class)
public static java.lang.Object getFirstAsObject(org.apache.axis.encoding.AnyContentType any)
throws DeserializationException
DeserializationExceptiontoObject(SOAPElement, Class)
public static java.lang.Object getFirstAsObject(org.apache.axis.encoding.AnyContentType any,
java.lang.Class javaClass)
throws DeserializationException
DeserializationExceptiontoObject(SOAPElement, Class)
public static boolean contains(javax.xml.soap.SOAPElement element,
java.lang.Class javaClass)
public static java.lang.Object deserialize(org.xml.sax.InputSource input,
java.lang.Class javaClass)
throws DeserializationException
DeserializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||