axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r389920 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WebServiceGeneratorImpl.java
Date Wed, 29 Mar 2006 22:53:02 GMT
Author: nadiramra
Date: Wed Mar 29 14:52:59 2006
New Revision: 389920

URL: http://svn.apache.org/viewcvs?rev=389920&view=rev
Log:
Format code so more readable - align braces, etc.

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WebServiceGeneratorImpl.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WebServiceGeneratorImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WebServiceGeneratorImpl.java?rev=389920&r1=389919&r2=389920&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WebServiceGeneratorImpl.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WebServiceGeneratorImpl.java
Wed Mar 29 14:52:59 2006
@@ -42,107 +42,59 @@
 
         if (WrapperConstants.LANGUAGE_JAVA.equalsIgnoreCase(language))
         {
-            (new Generator(WrapperConstants.GENERATOR_WRAPPER_JAVA, wscontext))
-                .generate();
-            (new Generator(WrapperConstants.GENERATOR_SERVICE_JAVA, wscontext))
-                .generate();
-            (new Generator(WrapperConstants.GENERATOR_PARAM_JAVA, wscontext))
-                .generate();
+            (new Generator(WrapperConstants.GENERATOR_WRAPPER_JAVA, wscontext)).generate();
+            (new Generator(WrapperConstants.GENERATOR_SERVICE_JAVA, wscontext)).generate();
+            (new Generator(WrapperConstants.GENERATOR_PARAM_JAVA, wscontext)).generate();
         }
         else
         {
-
             if (WrapperConstants.LANGUAGE_CPP.equalsIgnoreCase(language))
             {
-                if (WrapperConstants
-                    .SERVER
-                    .equals(wscontext.getWrapInfo().getTargetEngine()))
+                if (WrapperConstants.SERVER.equals(wscontext.getWrapInfo().getTargetEngine()))
                 {
                     // Generate Server objects
-                    (new Generator(WrapperConstants.GENERATOR_WRAPPER_CPP,
-                        wscontext))
-                        .generate();
-                    (new Generator(WrapperConstants.GENERATOR_WRAPPER_HPP,
-                        wscontext))
-                        .generate();
-                    (new Generator(WrapperConstants.GENERATOR_SERVICE_CPP,
-                        wscontext))
-                        .generate();
-                    (new Generator(WrapperConstants.GENERATOR_SERVICE_HPP,
-                        wscontext))
-                        .generate();
-                    (new Generator(WrapperConstants.GENERATOR_CLASSLOADER_CPP,
-                        wscontext))
-                        .generate();
-                    (new Generator(WrapperConstants.GENERATOR_DEPLOYMENT,
-                        wscontext))
-                        .generate();
-                    (new Generator(WrapperConstants.GENERATOR_SERVER_EXCEPTION,
-                        wscontext))
-                        .generate();
-                    (new Generator(WrapperConstants.GENERATOR_UNDEPLOYMENT,
-                        wscontext))
-                        .generate();
+                    (new Generator(WrapperConstants.GENERATOR_WRAPPER_CPP,wscontext)).generate();
+                    (new Generator(WrapperConstants.GENERATOR_WRAPPER_HPP,wscontext)).generate();
+                    (new Generator(WrapperConstants.GENERATOR_SERVICE_CPP,wscontext)).generate();
+                    (new Generator(WrapperConstants.GENERATOR_SERVICE_HPP,wscontext)).generate();
+                    (new Generator(WrapperConstants.GENERATOR_CLASSLOADER_CPP,wscontext)).generate();
+                    (new Generator(WrapperConstants.GENERATOR_DEPLOYMENT,wscontext)).generate();
+                    (new Generator(WrapperConstants.GENERATOR_SERVER_EXCEPTION,wscontext)).generate();
+                    (new Generator(WrapperConstants.GENERATOR_UNDEPLOYMENT,wscontext)).generate();
                 }
                 else
                 {
                     // Generate Client objects
-                    (new Generator(WrapperConstants.GENERATOR_CLIENT_STUB_CPP,
-                        wscontext))
-                        .generate();
-                    (new Generator(WrapperConstants.GENERATOR_CLIENT_STUB_HPP,
-                        wscontext))
-                        .generate();
+                    (new Generator(WrapperConstants.GENERATOR_CLIENT_STUB_CPP,wscontext)).generate();
+                    (new Generator(WrapperConstants.GENERATOR_CLIENT_STUB_HPP,wscontext)).generate();
                 }
+                
                 // Generate objects common to Client and Server
-                (new Generator(WrapperConstants.GENERATOR_PARAM_CPP_ALL,
-                    wscontext))
-                    .generate();
+                (new Generator(WrapperConstants.GENERATOR_PARAM_CPP_ALL,wscontext)).generate();
             }
             else
             {
-
                 if (WrapperConstants.LANGUAGE_C.equalsIgnoreCase(language))
                 {
-                    if (WrapperConstants
-                        .SERVER
-                        .equals(wscontext.getWrapInfo().getTargetEngine()))
+                    if (WrapperConstants.SERVER.equals(wscontext.getWrapInfo().getTargetEngine()))
                     {
                         // Generate Server objects
-                        (new Generator(WrapperConstants.GENERATOR_WRAPPER_C,
-                            wscontext))
-                            .generate();
-                        (new Generator(WrapperConstants.GENERATOR_WRAPPER_H,
-                            wscontext))
-                            .generate();
-                        (new Generator(WrapperConstants.GENERATOR_SERVICE_C,
-                            wscontext))
-                            .generate();
-                        (new Generator(WrapperConstants.GENERATOR_CLASSLOADER_C,
-                            wscontext))
-                            .generate();
-                        (new Generator(WrapperConstants.GENERATOR_DEPLOYMENT,
-                            wscontext))
-                            .generate();
-                        (new Generator(WrapperConstants.GENERATOR_UNDEPLOYMENT,
-                            wscontext))
-                            .generate();
+                        (new Generator(WrapperConstants.GENERATOR_WRAPPER_C,wscontext)).generate();
+                        (new Generator(WrapperConstants.GENERATOR_WRAPPER_H,wscontext)).generate();
+                        (new Generator(WrapperConstants.GENERATOR_SERVICE_C,wscontext)).generate();
+                        (new Generator(WrapperConstants.GENERATOR_CLASSLOADER_C,wscontext)).generate();
+                        (new Generator(WrapperConstants.GENERATOR_DEPLOYMENT,wscontext)).generate();
+                        (new Generator(WrapperConstants.GENERATOR_UNDEPLOYMENT,wscontext)).generate();
                     }
                     else
                     {
                         // Generate Client Objects
-                        (new Generator(WrapperConstants.GENERATOR_CLIENT_STUB_C,
-                            wscontext))
-                            .generate();
-                        (new Generator(WrapperConstants.GENERATOR_CLIENT_STUB_H,
-                            wscontext))
-                            .generate();
+                        (new Generator(WrapperConstants.GENERATOR_CLIENT_STUB_C,wscontext)).generate();
+                        (new Generator(WrapperConstants.GENERATOR_CLIENT_STUB_H,wscontext)).generate();
 
                     }
                     // Generate objects common to Client and Server
-                    (new Generator(WrapperConstants.GENERATOR_PARAM_C_ALL,
-                        wscontext))
-                        .generate();
+                    (new Generator(WrapperConstants.GENERATOR_PARAM_C_ALL,wscontext)).generate();
                 }
                 else
                 {
@@ -154,8 +106,7 @@
             * If called earlier not all files will be added
             * to the build script(Ex : to Makefile.am).
             */ 
-            (new Generator(WrapperConstants.GENERATOR_BUILDSCRIPT, wscontext))
-                .generate();
+            (new Generator(WrapperConstants.GENERATOR_BUILDSCRIPT, wscontext)).generate();
         }
     }
 }



Mime
View raw message