axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r492961 - in /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema: template/CADBBeanTemplateSource.xsl writer/CStructWriter.java
Date Fri, 05 Jan 2007 10:18:31 GMT
Author: amilas
Date: Fri Jan  5 02:18:30 2007
New Revision: 492961

URL: http://svn.apache.org/viewvc?view=rev&rev=492961
Log:
applied the patch for AXIS2C-494

Modified:
    webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
    webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/writer/CStructWriter.java

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl?view=diff&rev=492961&r1=492960&r2=492961
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
(original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
Fri Jan  5 02:18:30 2007
@@ -443,7 +443,7 @@
                axiom_element_t *current_element = NULL;-->
              </xsl:if>
             </xsl:for-each>
-            <xsl:if test="property and (not(property/@attribute) or property/@attribute='')">
+            <xsl:if test="property and (not(property/@attribute) or property/@attribute=''
or property/@notattribute)">
                axiom_node_t *current_node = NULL;
                axiom_element_t *current_element = NULL;
             </xsl:if>
@@ -1271,7 +1271,7 @@
                axiom_element_t *current_element = NULL;-->
              </xsl:if>
             </xsl:for-each>
-            <xsl:if test="property and (not(property/@attribute) or property/@attribute='')">
+            <xsl:if test="property and (not(property/@attribute) or property/@attribute=''
or property/@notattribute)">
                axiom_node_t *current_node = NULL;
                axiom_element_t *current_element = NULL;
             </xsl:if>

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/writer/CStructWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/writer/CStructWriter.java?view=diff&rev=492961&r1=492960&r2=492961
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/writer/CStructWriter.java
(original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/writer/CStructWriter.java
Fri Jan  5 02:18:30 2007
@@ -44,6 +44,8 @@
 import java.util.ArrayList;
 import java.io.*;
 
+import com.ibm.wsdl.util.xml.DOM2Writer;
+
 /**
  * Java Bean writer for the schema compiler.
  */
@@ -498,6 +500,8 @@
 
             if (metainf.getAttributeStatusForQName(name)) {
                 XSLTUtils.addAttribute(model, "attribute", "yes", property);
+            }else{
+                XSLTUtils.addAttribute(model, "notattribute", "yes", property);
             }
 
             if (metainf.isNillable(name)) {



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