axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r543198 - /webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
Date Thu, 31 May 2007 18:01:43 GMT
Author: dims
Date: Thu May 31 11:01:42 2007
New Revision: 543198

URL: http://svn.apache.org/viewvc?view=rev&rev=543198
Log:
default minoccurs is 1 not zero, so set 0 explicitly

Modified:
    webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java

Modified: webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java?view=diff&rev=543198&r1=543197&r2=543198
==============================================================================
--- webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
(original)
+++ webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
Thu May 31 11:01:42 2007
@@ -501,10 +501,11 @@
 
             if (isArryType && (!propertyName.equals("base64Binary"))){
                 elt1.setMaxOccurs(Long.MAX_VALUE);
-                elt1.setMinOccurs(1);
             }
-            if(type.isPrimitiveType() == false)
+            elt1.setMinOccurs(0) ;
+            if(type.isPrimitiveType() == false) {
                elt1.setNillable(true) ;
+            }
         } else {
             if (isArryType) {
                 generateSchema(type.getArrayComponentType());
@@ -517,8 +518,8 @@
             sequence.getItems().add(elt1);
             if (isArryType) {
                 elt1.setMaxOccurs(Long.MAX_VALUE);
-                elt1.setMinOccurs(1);
             }
+            elt1.setMinOccurs(0);
             elt1.setNillable(true);
 
             if (!((NamespaceMap)xmlSchema.getNamespaceContext()).values().
@@ -592,8 +593,8 @@
 
         if (isArray) {
             elt1.setMaxOccurs(Long.MAX_VALUE);
-            elt1.setMinOccurs(0);
         }
+        elt1.setMinOccurs(0);
         elt1.setNillable(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