public class BeanUtil extends Object
| Constructor and Description |
|---|
BeanUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addInstanceTypeAttribute(org.apache.axiom.om.OMFactory fac,
org.apache.axiom.om.OMElement element,
Object resObject,
org.apache.axis2.description.java2wsdl.TypeTable typeTable)
Adds the instance type attribute to the passed OMElement.
|
static org.apache.axiom.om.OMElement |
convertDOMtoOM(org.apache.axiom.om.OMFactory fac,
Object document)
Convert DOM Document to a OMElement.
|
static org.apache.axiom.om.OMDocument |
convertOMtoDOM(org.apache.axiom.om.OMContainer omElement)
Gets the DOOM implementation of org.w3c.dom.Document
|
static Object |
deserialize(Class beanClass,
org.apache.axiom.om.OMElement beanElement,
MultirefHelper helper,
org.apache.axis2.engine.ObjectSupplier objectSupplier) |
static Object |
deserialize(Class beanClass,
org.apache.axiom.om.OMElement beanElement,
org.apache.axis2.engine.ObjectSupplier objectSupplier,
String arrayLocalName) |
static Object[] |
deserialize(org.apache.axiom.om.OMElement response,
Object[] javaTypes,
org.apache.axis2.engine.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 Object[] |
deserialize(org.apache.axiom.om.OMElement response,
Object[] javaTypes,
org.apache.axis2.engine.ObjectSupplier objectSupplier,
String[] parameterNames,
Method method) |
static org.apache.axiom.om.OMElement |
getCollectionElement(org.apache.axiom.om.OMFactory fac,
Type type,
Collection results,
String name,
String innerName,
QName elementQName,
org.apache.axis2.description.java2wsdl.TypeTable typeTable,
boolean elementFormDefault)
Gets the collection element.
|
static List<org.apache.axiom.om.OMElement> |
getMapElement(org.apache.axiom.om.OMFactory fac,
Type type,
Map results,
org.apache.axis2.description.java2wsdl.TypeTable typeTable,
boolean elementFormDefault)
This method convert a instance of java.util.Map into
OM object model for serialization.
|
static org.apache.axiom.om.OMElement |
getOMElement(QName opName,
Object[] args,
QName partName,
boolean qualifed,
org.apache.axis2.description.java2wsdl.TypeTable typeTable) |
static javax.xml.stream.XMLStreamReader |
getPullParser(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(Object beanObject,
QName beanName,
org.apache.axis2.description.java2wsdl.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 String |
getUniquePrefix()
increments the namespace counter and returns a new prefix
|
static String |
getUniquePrifix()
Deprecated.
Please use getUniquePrefix
|
static Object |
processEnumObject(Class classType,
org.apache.axiom.om.OMElement omElement) |
static Collection<Object> |
processGenericCollection(org.apache.axiom.om.OMElement omElement,
org.apache.axiom.om.OMElement[] toReturn,
Type generictype,
MultirefHelper helper,
org.apache.axis2.engine.ObjectSupplier objectSupplier,
Iterator parts,
boolean bare)
Process collection.
|
static Collection<Object> |
processGenericCollection(org.apache.axiom.om.OMElement omElement,
Type generictype,
MultirefHelper helper,
org.apache.axis2.engine.ObjectSupplier objectSupplier)
Process generic collection.
|
static Map<Object,Object> |
processGenericsMapElement(Type[] parameterArgTypes,
org.apache.axiom.om.OMElement omElement,
MultirefHelper helper,
Iterator parts,
org.apache.axis2.engine.ObjectSupplier objectSupplier,
Type genericType)
This method deserialize OM model in to a instance of java.util.Map
|
static Object |
processObject(org.apache.axiom.om.OMElement omElement,
Class classType,
MultirefHelper helper,
boolean isArrayType,
org.apache.axis2.engine.ObjectSupplier objectSupplier,
Type generictype) |
public static javax.xml.stream.XMLStreamReader getPullParser(Object beanObject, QName beanName, org.apache.axis2.description.java2wsdl.TypeTable typeTable, boolean qualified, boolean processingDocLitBare)
public static javax.xml.stream.XMLStreamReader getPullParser(Object beanObject)
beanObject - public static Object deserialize(Class beanClass, org.apache.axiom.om.OMElement beanElement, org.apache.axis2.engine.ObjectSupplier objectSupplier, String arrayLocalName) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic static Object deserialize(Class beanClass, org.apache.axiom.om.OMElement beanElement, MultirefHelper helper, org.apache.axis2.engine.ObjectSupplier objectSupplier) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic static Object[] deserialize(org.apache.axiom.om.OMElement response, Object[] javaTypes, org.apache.axis2.engine.ObjectSupplier objectSupplier) throws org.apache.axis2.AxisFault
response - OMElementjavaTypes - Array of JavaTypesorg.apache.axis2.AxisFaultpublic static Object[] deserialize(org.apache.axiom.om.OMElement response, Object[] javaTypes, org.apache.axis2.engine.ObjectSupplier objectSupplier, String[] parameterNames, Method method) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic static Object processObject(org.apache.axiom.om.OMElement omElement, Class classType, MultirefHelper helper, boolean isArrayType, org.apache.axis2.engine.ObjectSupplier objectSupplier, Type generictype) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic static Object processEnumObject(Class classType, org.apache.axiom.om.OMElement omElement) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic static org.apache.axiom.om.OMElement getOMElement(QName opName, Object[] args, QName partName, boolean qualifed, org.apache.axis2.description.java2wsdl.TypeTable typeTable)
public static String getUniquePrifix()
public static String getUniquePrefix()
public static void addInstanceTypeAttribute(org.apache.axiom.om.OMFactory fac,
org.apache.axiom.om.OMElement element,
Object resObject,
org.apache.axis2.description.java2wsdl.TypeTable typeTable)
fac - the SOAPFactory instance.element - the child OMElement to add attributes.resObject - the java reflection methodresObject - the res objecttypeTable - the type table of particular Axis2 servicepublic static org.apache.axiom.om.OMDocument convertOMtoDOM(org.apache.axiom.om.OMContainer omElement)
omElement - the OMelementpublic static org.apache.axiom.om.OMElement convertDOMtoOM(org.apache.axiom.om.OMFactory fac,
Object document)
fac - the facdocument - the documentpublic static Map<Object,Object> processGenericsMapElement(Type[] parameterArgTypes, org.apache.axiom.om.OMElement omElement, MultirefHelper helper, Iterator parts, org.apache.axis2.engine.ObjectSupplier objectSupplier, Type genericType) throws org.apache.axis2.AxisFault
parameterArgTypes - the parameter argument types of Map omElement - the OMElementhelper - the helperparts - the partsobjectSupplier - the object suppliergenericType - the generic typeorg.apache.axis2.AxisFault - the axis faultpublic static List<org.apache.axiom.om.OMElement> getMapElement(org.apache.axiom.om.OMFactory fac, Type type, Map results, org.apache.axis2.description.java2wsdl.TypeTable typeTable, boolean elementFormDefault)
fac - the OMFactorytype - of the java.util.Mapresults - the results valuestypeTable - the type tableelementFormDefault - the element form defaultpublic static Collection<Object> processGenericCollection(org.apache.axiom.om.OMElement omElement, Type generictype, MultirefHelper helper, org.apache.axis2.engine.ObjectSupplier objectSupplier) throws org.apache.axis2.AxisFault
omElement - the om elementgenerictype - the generictypehelper - the helperobjectSupplier - the object supplierorg.apache.axis2.AxisFault - the axis faultpublic static Collection<Object> processGenericCollection(org.apache.axiom.om.OMElement omElement, org.apache.axiom.om.OMElement[] toReturn, Type generictype, MultirefHelper helper, org.apache.axis2.engine.ObjectSupplier objectSupplier, Iterator parts, boolean bare) throws org.apache.axis2.AxisFault
omElement - the om elementtoReturn - the to returngenerictype - the generictypehelper - the helperobjectSupplier - the object supplierparts - the partsbare - the bareorg.apache.axis2.AxisFault - the axis faultpublic static org.apache.axiom.om.OMElement getCollectionElement(org.apache.axiom.om.OMFactory fac,
Type type,
Collection results,
String name,
String innerName,
QName elementQName,
org.apache.axis2.description.java2wsdl.TypeTable typeTable,
boolean elementFormDefault)
fac - the factype - the typeresults - the resultsname - the nameinnerName - the inner nameelementQName - the element q nametypeTable - the type tableelementFormDefault - the element form defaultCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.