public class DataBindUtil extends Object
Constructor and Description |
---|
DataBindUtil() |
Modifier and Type | Method and Description |
---|---|
static Object |
getValue(org.apache.axiom.om.OMElement omElement,
Class type)
utility method convert the OMElements to java objects.
|
static org.apache.axiom.om.OMElement |
toOM(Object object,
QName parentQname)
Utility method to convert the java objects to OMElements
|
public static org.apache.axiom.om.OMElement toOM(Object object, QName parentQname)
object
- - POJO object to be converted to an OMElementparentQname
- - Top element QName for this POJO objectpublic static Object getValue(org.apache.axiom.om.OMElement omElement, Class type) throws org.wso2.carbon.rule.common.exception.RuleRuntimeException
omElement
- - OMElement to be used to get the POJO object valuetype
- - class name of the POJO element to be createdorg.wso2.carbon.rule.common.exception.RuleRuntimeException
- - if there is a problem in creating POJO objectCopyright © 2023 WSO2. All rights reserved.