org.apache.axis2.util
Class BeanSerializerUtil
java.lang.Object
org.apache.axis2.util.BeanSerializerUtil
- public class BeanSerializerUtil
- extends java.lang.Object
|
Method Summary |
static java.lang.Object |
deserialize(java.lang.Class beanClass,
OMElement beanElement)
|
static java.lang.Object |
deserialize(java.lang.Class beanClass,
OMElement beanElement,
MultirefHelper helper)
|
static java.lang.Object[] |
deserialize(OMElement response,
java.lang.Object[] javaTypes)
To get JavaObjects from XML elemnt , the element most of the time contains only one element
in that case that element will be converted to the JavaType specified by the javaTypes array
The algo is as follows, get the childerns of the response element , and if it conatian more than
one element then check the retuen type of that element and conver that to corresponding JavaType |
static OMElement |
getOMElement(javax.xml.namespace.QName opName,
java.lang.Object[] args)
|
static javax.xml.stream.XMLStreamReader |
getPullParser(java.lang.Object beanObject,
javax.xml.namespace.QName beanName)
To Serilize Bean object this method is used, this will create an object array using given
bean object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanSerializerUtil
public BeanSerializerUtil()
getPullParser
public static javax.xml.stream.XMLStreamReader getPullParser(java.lang.Object beanObject,
javax.xml.namespace.QName beanName)
- To Serilize Bean object this method is used, this will create an object array using given
bean object
- Parameters:
beanObject - beanName -
deserialize
public static java.lang.Object deserialize(java.lang.Class beanClass,
OMElement beanElement)
throws AxisFault
- Throws:
AxisFault
deserialize
public static java.lang.Object deserialize(java.lang.Class beanClass,
OMElement beanElement,
MultirefHelper helper)
throws AxisFault
- Throws:
AxisFault
deserialize
public static java.lang.Object[] deserialize(OMElement response,
java.lang.Object[] javaTypes)
throws AxisFault
- To get JavaObjects from XML elemnt , the element most of the time contains only one element
in that case that element will be converted to the JavaType specified by the javaTypes array
The algo is as follows, get the childerns of the response element , and if it conatian more than
one element then check the retuen type of that element and conver that to corresponding JavaType
- Parameters:
response - OMElementjavaTypes - Array of JavaTypes
- Returns:
- Array of objects
- Throws:
AxisFault
getOMElement
public static OMElement getOMElement(javax.xml.namespace.QName opName,
java.lang.Object[] args)