All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.axis2.schema.template.ADBDatabindingTemplate.xsl Maven / Gradle / Ivy

There is a newer version: 1.8.2
Show newest version




    
    
    
    
    
    
    
    

    
    
    
        
        

        
        
            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;
        }



    





© 2015 - 2024 Weber Informatics LLC | Privacy Policy