axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r530000 - in /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java: SkeletonInterfaceTemplate.xsl SkeletonTemplate.xsl
Date Wed, 18 Apr 2007 12:30:22 GMT
Author: amilas
Date: Wed Apr 18 05:30:22 2007
New Revision: 530000

URL: http://svn.apache.org/viewvc?view=rev&rev=530000
Log:
set the method doc comments correctly for all unwrapping

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/SkeletonInterfaceTemplate.xsl
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/SkeletonTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/SkeletonInterfaceTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/SkeletonInterfaceTemplate.xsl?view=diff&rev=530000&r1=529999&r2=530000
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/SkeletonInterfaceTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/SkeletonInterfaceTemplate.xsl
Wed Apr 18 05:30:22 2007
@@ -22,6 +22,45 @@
                java method -->
         /**
          * Auto generated method signature
+         <xsl:choose>
+            <xsl:when test="$isbackcompatible = 'true'">
+                <xsl:variable name="inputcount" select="count(input/param[@location='body'
and @type!=''])"/>
+                <xsl:choose>
+                    <xsl:when test="$inputcount=1">
+                        <!-- should provide the inter complex type to method signature
if is available -->
+                        <xsl:variable name="inputComplexType" select="input/param[@location='body'
and @type!='']/@complextype"/>
+                        <xsl:choose>
+                            <xsl:when test="string-length(normalize-space($inputComplexType))
> 0">
+                               * @param<xsl:text> </xsl:text><xsl:value-of
select="input/param[@location='body' and @type!='']/@name"/>
+                            </xsl:when>
+                            <xsl:otherwise>
+                               * @param<xsl:text> </xsl:text><xsl:value-of
select="input/param[@location='body' and @type!='']/@name"/>
+                            </xsl:otherwise>
+                        </xsl:choose>
+                    </xsl:when>
+                </xsl:choose>
+            </xsl:when>
+            <xsl:otherwise>
+                  <xsl:variable name="inputcount" select="count(input/param[@location='body'
and @type!=''])"/>
+                    <xsl:choose>
+                        <xsl:when test="$inputcount=1">
+                            <!-- Even when the parameters are 1 we have to see whether
we have the
+                          wrapped parameters -->
+                            <xsl:variable name="inputWrappedCount" select="count(input/param[@location='body'
and @type!='']/param)"/>
+                            <xsl:choose>
+                                <xsl:when test="$inputWrappedCount &gt; 0">
+                                   <xsl:for-each select="input/param[@location='body'
and @type!='']/param">
+                                        * @param<xsl:text> </xsl:text><xsl:value-of
select="@name"/>
+                                    </xsl:for-each>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    * @param<xsl:text> </xsl:text><xsl:value-of
select="input/param[@location='body' and @type!='']/@name"/>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </xsl:when>
+                    </xsl:choose>
+            </xsl:otherwise>
+        </xsl:choose>
          */
 
         <xsl:choose>

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/SkeletonTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/SkeletonTemplate.xsl?view=diff&rev=530000&r1=529999&r2=530000
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/SkeletonTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/SkeletonTemplate.xsl
Wed Apr 18 05:30:22 2007
@@ -24,9 +24,46 @@
         /**
          * Auto generated method signature
          <!--  select only the body parameters  -->
-          <xsl:for-each select="input/param[@location='body']">
-            <xsl:if test="@type!=''">* @param <xsl:value-of select="@name"></xsl:value-of><xsl:text>
-         </xsl:text></xsl:if></xsl:for-each>
+         <xsl:choose>
+            <xsl:when test="$isbackcompatible = 'true'">
+                    <xsl:variable name="inputcount" select="count(input/param[@location='body'
and @type!=''])"/>
+                    <xsl:choose>
+                        <xsl:when test="$inputcount=1">
+                            <!-- Even when the parameters are 1 we have to see whether
we have the
+                                 wrapped parameters -->
+                            <xsl:variable name="inputComplexType" select="input/param[@location='body'
and @type!='']/@complextype"/>
+                            <xsl:choose>
+                                <xsl:when test="string-length(normalize-space($inputComplexType))
> 0">
+                                   * @param<xsl:text> </xsl:text><xsl:value-of
select="input/param[@location='body' and @type!='']/@name"/>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    * @param<xsl:text> </xsl:text><xsl:value-of
select="input/param[@location='body' and @type!='']/@name"/>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </xsl:when>
+                    </xsl:choose>
+              </xsl:when>
+            <xsl:otherwise>
+                  <xsl:variable name="inputcount" select="count(input/param[@location='body'
and @type!=''])"/>
+                    <xsl:choose>
+                        <xsl:when test="$inputcount=1">
+                            <!-- Even when the parameters are 1 we have to see whether
we have the
+                                 wrapped parameters -->
+                            <xsl:variable name="inputWrappedCount" select="count(input/param[@location='body'
and @type!='']/param)"/>
+                            <xsl:choose>
+                                <xsl:when test="$inputWrappedCount &gt; 0">
+                                   <xsl:for-each select="input/param[@location='body'
and @type!='']/param">
+                                     * @param<xsl:text> </xsl:text><xsl:value-of
select="@name"/>
+                                    </xsl:for-each>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                     * @param<xsl:text> </xsl:text><xsl:value-of
select="input/param[@location='body' and @type!='']/@name"/>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </xsl:when>
+                    </xsl:choose>
+            </xsl:otherwise>
+        </xsl:choose>
          */
         <xsl:choose>
             <xsl:when test="$isbackcompatible = 'true'">



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message