public class BeanUtil
extends java.lang.Object
| Constructor and Description |
|---|
BeanUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
deserialize(java.lang.Class beanClass,
org.apache.axiom.om.OMElement beanElement,
MultirefHelper helper,
ObjectSupplier objectSupplier) |
static java.lang.Object |
deserialize(java.lang.Class beanClass,
org.apache.axiom.om.OMElement beanElement,
ObjectSupplier objectSupplier,
java.lang.String arrayLocalName) |
static java.lang.Object[] |
deserialize(org.apache.axiom.om.OMElement response,
java.lang.Object[] javaTypes,
ObjectSupplier objectSupplier)
To get JavaObjects from XML element , 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 java.lang.Object[] |
deserialize(org.apache.axiom.om.OMElement response,
java.lang.Object[] javaTypes,
ObjectSupplier objectSupplier,
java.lang.String[] parameterNames,
java.lang.reflect.Method method) |
static org.apache.axiom.om.OMElement |
getOMElement(javax.xml.namespace.QName opName,
java.lang.Object[] args,
javax.xml.namespace.QName partName,
boolean qualifed,
TypeTable typeTable) |
static javax.xml.stream.XMLStreamReader |
getPullParser(java.lang.Object beanObject)
to get the pull parser for a given bean object , generate the wrpper element using class
name
|
static javax.xml.stream.XMLStreamReader |
getPullParser(java.lang.Object beanObject,
javax.xml.namespace.QName beanName,
TypeTable typeTable,
boolean qualified,
boolean processingDocLitBare)
To Serilize Bean object this method is used, this will create an object array using given
bean object
|
static java.lang.String |
getUniquePrefix()
increments the namespace counter and returns a new prefix
|
static java.lang.String |
getUniquePrifix()
Deprecated.
Please use getUniquePrefix
|
static java.lang.Object |
processObject(org.apache.axiom.om.OMElement omElement,
java.lang.Class classType,
MultirefHelper helper,
boolean isArrayType,
ObjectSupplier objectSupplier,
java.lang.reflect.Type generictype) |
static void |
setIsForceIncludeNullElements(boolean isForceIncludeNullElements) |
public static javax.xml.stream.XMLStreamReader getPullParser(java.lang.Object beanObject,
javax.xml.namespace.QName beanName,
TypeTable typeTable,
boolean qualified,
boolean processingDocLitBare)
public static javax.xml.stream.XMLStreamReader getPullParser(java.lang.Object beanObject)
beanObject - public static java.lang.Object deserialize(java.lang.Class beanClass,
org.apache.axiom.om.OMElement beanElement,
ObjectSupplier objectSupplier,
java.lang.String arrayLocalName)
throws AxisFault
AxisFaultpublic static java.lang.Object deserialize(java.lang.Class beanClass,
org.apache.axiom.om.OMElement beanElement,
MultirefHelper helper,
ObjectSupplier objectSupplier)
throws AxisFault
AxisFaultpublic static java.lang.Object[] deserialize(org.apache.axiom.om.OMElement response,
java.lang.Object[] javaTypes,
ObjectSupplier objectSupplier)
throws AxisFault
response - OMElementjavaTypes - Array of JavaTypesAxisFaultpublic static java.lang.Object[] deserialize(org.apache.axiom.om.OMElement response,
java.lang.Object[] javaTypes,
ObjectSupplier objectSupplier,
java.lang.String[] parameterNames,
java.lang.reflect.Method method)
throws AxisFault
AxisFaultpublic static java.lang.Object processObject(org.apache.axiom.om.OMElement omElement,
java.lang.Class classType,
MultirefHelper helper,
boolean isArrayType,
ObjectSupplier objectSupplier,
java.lang.reflect.Type generictype)
throws AxisFault
AxisFaultpublic static org.apache.axiom.om.OMElement getOMElement(javax.xml.namespace.QName opName,
java.lang.Object[] args,
javax.xml.namespace.QName partName,
boolean qualifed,
TypeTable typeTable)
public static java.lang.String getUniquePrifix()
public static java.lang.String getUniquePrefix()
public static void setIsForceIncludeNullElements(boolean isForceIncludeNullElements)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.