axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r601238 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl: DefaultSchemaGenerator.java DocLitBareSchemaGenerator.java
Date Wed, 05 Dec 2007 07:59:15 GMT
Author: deepal
Date: Tue Dec  4 23:59:14 2007
New Revision: 601238

URL: http://svn.apache.org/viewvc?rev=601238&view=rev
Log:
if we exclude bean properties which is static , it was not working properly so this is the
fix for that

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DocLitBareSchemaGenerator.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java?rev=601238&r1=601237&r2=601238&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java
Tue Dec  4 23:59:14 2007
@@ -538,7 +538,9 @@
                 // and there is no property with the same name
 
                 if (tempFields[i].isPublic()) {
-
+                    if (excludes !=null && excludes.contains(tempFields[i].getSimpleName()))
{
+                        continue;
+                    }
                     // skip field with same name as a property
                     if (!propertiesNames.contains(tempFields[i].getSimpleName())) {
 

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DocLitBareSchemaGenerator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DocLitBareSchemaGenerator.java?rev=601238&r1=601237&r2=601238&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DocLitBareSchemaGenerator.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DocLitBareSchemaGenerator.java
Tue Dec  4 23:59:14 2007
@@ -439,7 +439,9 @@
             for (int i = 0; i < tempFields.length; i++) {
                 // create a element for the field only if it is public
                 // and there is no property with the same name
-
+                if (excludes != null && excludes.contains(tempFields[i].getSimpleName()))
{
+                    continue;
+                }
                 if (tempFields[i].isPublic()) {
 
                     // skip field with same name as a property



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