ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r581865 - in /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl: codegen/emitter/ template/java/
Date Thu, 04 Oct 2007 11:51:38 GMT
Author: amilas
Date: Thu Oct  4 04:51:37 2007
New Revision: 581865

URL: http://svn.apache.org/viewvc?rev=581865&view=rev
Log:
added the wsdl operation comments to the method signature

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl
    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/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java?rev=581865&r1=581864&r2=581865&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
Thu Oct  4 04:51:37 2007
@@ -2164,6 +2164,13 @@
         addAttribute(doc, "style", (String) getBindingPropertyFromOperation(
                 WSDLConstants.WSDL_1_1_STYLE, axisOperation.getName()), methodElement);
 
+        // add documentation for this operation
+        String comment = "";
+        if (axisOperation.getDocumentation() != null){
+            comment = axisOperation.getDocumentation();
+        }
+        addAttribute(doc, "comment", comment, methodElement);
+
         String messageExchangePattern = axisOperation.getMessageExchangePattern();
         
         //Jaxws Specific

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?rev=581865&r1=581864&r2=581865&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
Thu Oct  4 04:51:37 2007
@@ -231,6 +231,7 @@
                 <xsl:if test="$isSync='1'">
                     /**
                      * Auto generated method signature
+                     * <xsl:value-of select="@comment"/>
                      * @see <xsl:value-of select="$package"/>.<xsl:value-of select="$interfaceName"/>#<xsl:value-of
select="@name"/>
                     <xsl:for-each select="input/param[@type!='']">
                      * @param <xsl:value-of select="@name"></xsl:value-of><xsl:text>
@@ -568,6 +569,7 @@
             <xsl:if test="$isAsync='1'">
                 /**
                 * Auto generated method signature for Asynchronous Invocations
+                * <xsl:value-of select="@comment"/>
                 * @see <xsl:value-of select="$package"/>.<xsl:value-of select="$interfaceName"/>#start<xsl:value-of
select="@name"/>
                 <xsl:for-each select="input/param[@type!='']">
                     * @param <xsl:value-of select="@name"></xsl:value-of><xsl:text>
@@ -873,6 +875,10 @@
             <!-- Start of in only mep-->
             <xsl:if test="$mep='10' or $mep='11'"> <!-- These constants can be found
in org.apache.axis2.wsdl.WSDLConstants -->
                 <!-- for the in only mep there is no notion of sync or async. And there
is no return type also -->
+                /**
+                  * Auto generated method signature
+                  * <xsl:value-of select="@comment"/>
+                  */
                 public void <xsl:text> </xsl:text><xsl:value-of select="@name"/>(
                  <xsl:variable name="inputcount" select="count(input/param[@location='body'
and @type!=''])"/>
                     <xsl:choose>

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl?rev=581865&r1=581864&r2=581865&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl
Thu Oct  4 04:51:37 2007
@@ -60,7 +60,8 @@
          <xsl:if test="$isSync='1'">
 
         /**
-                * Auto generated method signature
+          * Auto generated method signature
+          * <xsl:value-of select="@comment"/>
                 <xsl:for-each select="input/param[@type!='']">
                     * @param <xsl:value-of select="@name"></xsl:value-of><xsl:text>
                 </xsl:text></xsl:for-each>
@@ -144,6 +145,7 @@
         <xsl:if test="$isAsync='1'">
          /**
             * Auto generated method signature for Asynchronous Invocations
+            * <xsl:value-of select="@comment"/>
             <xsl:for-each select="input/param[@type!='']">
                 * @param <xsl:value-of select="@name"></xsl:value-of><xsl:text>
             </xsl:text></xsl:for-each>
@@ -183,7 +185,10 @@
         <!-- Code for in-only mep -->
        <xsl:if test="@mep='10' or @mep='11'">
        <xsl:variable name="mep"><xsl:value-of select="@mep"/></xsl:variable>
-
+       /**
+         * Auto generated method signature for Asynchronous Invocations
+         * <xsl:value-of select="@comment"/>
+         */
         public void <xsl:text> </xsl:text><xsl:value-of select="@name"/>(
          <xsl:variable name="inputcount" select="count(input/param[@location='body' and
@type!=''])"/>
          <xsl:choose>

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?rev=581865&r1=581864&r2=581865&view=diff
==============================================================================
--- 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
Thu Oct  4 04:51:37 2007
@@ -40,6 +40,8 @@
                java method -->
         /**
          * Auto generated method signature
+         * <xsl:value-of select="@comment"/>
+         
          <xsl:choose>
             <xsl:when test="$isbackcompatible = 'true'">
                 <xsl:variable name="inputcount" select="count(input/param[@location='body'
and @type!=''])"/>

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?rev=581865&r1=581864&r2=581865&view=diff
==============================================================================
--- 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
Thu Oct  4 04:51:37 2007
@@ -41,6 +41,7 @@
                java method -->
         /**
          * Auto generated method signature
+         * <xsl:value-of select="@comment"/>
          <!--  select only the body parameters  -->
          <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