org.apache.axis2.schema.template.ADBDatabindingTemplate.xsl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axis2-adb-codegen Show documentation
Show all versions of axis2-adb-codegen Show documentation
ADB code generation support for Axis2
private org.apache.axiom.om.OMElement toOM( param, boolean optimizeContent)
throws org.apache.axis2.AxisFault {
try{
return Helper.INSTANCE.getOMElement(
param,
.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
return param;
try{
return param.getOMElement( .MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory,
param ,
dummyWrappedType,
boolean optimizeContent) throws org.apache.axis2.AxisFault{
try{
wrappedType = new ();
wrappedComplexType = new ();
wrappedComplexType.set (param );
wrappedType.set (wrappedComplexType);
wrappedType.set (param );
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody().addChild( Helper.INSTANCE.getOMElement(
wrappedType,
.MY_QNAME,factory));
emptyEnvelope.getBody().addChild(wrappedType.getOMElement( .MY_QNAME,factory));
return emptyEnvelope;
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, param, boolean optimizeContent, javax.xml.namespace.QName elementQName)
throws org.apache.axis2.AxisFault{
try{
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody().addChild( Helper.INSTANCE.getOMElement(
param,
.MY_QNAME,factory));
return emptyEnvelope;
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody().addChild(param);
return emptyEnvelope;
try{
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody().addChild(param.getOMElement( .MY_QNAME,factory));
return emptyEnvelope;
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
/* methods to provide back word compatibility */
private get (
wrappedType){
return wrappedType.get ();
}
private wrap (
innerType){
wrappedElement = new ();
wrappedElement.set (innerType);
return wrappedElement;
}
private get (
wrappedType){
return wrappedType.get ().get ();
return wrappedType.get ();
}
private get (
wrappedType){
return wrappedType.get ();
}
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, param, boolean optimizeContent, javax.xml.namespace.QName elementQName)
throws org.apache.axis2.AxisFault{
try{
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody().addChild(
Helper.INSTANCE.getOMElement(
param,
.MY_QNAME,factory));
emptyEnvelope.getBody().addChild(param.getOMElement( .MY_QNAME,factory));
return emptyEnvelope;
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private get (
wrappedType){
return wrappedType.get ().get ();
return wrappedType.get ();
}
private get (
wrappedType){
return wrappedType.get ();
}
private wrap (
param){
wrappedElement = new ();
innerType = new ();
innerType.set (param);
wrappedElement.set (innerType);
wrappedElement.set (param);
return wrappedElement;
}
private wrap (
innerType){
wrappedElement = new ();
wrappedElement.set (innerType);
return wrappedElement;
}
private wrap (){
wrappedElement = new ();
return wrappedElement;
}
/**
* get the default envelope
*/
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){
return factory.getDefaultEnvelope();
}
private java.lang.Object fromOM(
org.apache.axiom.om.OMElement param,
java.lang.Class type) throws org.apache.axis2.AxisFault{
try {
if ( .class.equals(type)){
return Helper.INSTANCE.parse(param.getXMLStreamReaderWithoutCaching());
return param;
return .Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
} catch (java.lang.Exception e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
return null;
}