axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r552010 - in /webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri: DocLitBareJaxbSchemaGenerator.java JaxbSchemaGenerator.java
Date Fri, 29 Jun 2007 19:46:46 GMT
Author: dims
Date: Fri Jun 29 12:46:45 2007
New Revision: 552010

URL: http://svn.apache.org/viewvc?view=rev&rev=552010
Log:
slightly better name

Modified:
    webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/DocLitBareJaxbSchemaGenerator.java
    webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/JaxbSchemaGenerator.java

Modified: webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/DocLitBareJaxbSchemaGenerator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/DocLitBareJaxbSchemaGenerator.java?view=diff&rev=552010&r1=552009&r2=552010
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/DocLitBareJaxbSchemaGenerator.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/DocLitBareJaxbSchemaGenerator.java
Fri Jun 29 12:46:45 2007
@@ -35,7 +35,7 @@
 
 
     public Collection generateSchema() throws Exception {
-       jaxbSchemaGenerator.generateScheamWithoutCallingParent();
+       jaxbSchemaGenerator.generateSchemaForParameters();
         return super.generateSchema();
     }
 }

Modified: webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/JaxbSchemaGenerator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/JaxbSchemaGenerator.java?view=diff&rev=552010&r1=552009&r2=552010
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/JaxbSchemaGenerator.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/JaxbSchemaGenerator.java
Fri Jun 29 12:46:45 2007
@@ -3,8 +3,6 @@
 import org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator;
 import org.apache.axis2.util.Loader;
 import org.apache.ws.commons.schema.XmlSchema;
-import org.apache.ws.commons.schema.XmlSchemaObject;
-import org.apache.ws.commons.schema.XmlSchemaType;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
@@ -55,11 +53,17 @@
     }
 
     public Collection generateSchema() throws Exception {
-        generateScheamWithoutCallingParent();
+        generateSchemaForParameters();
         return super.generateSchema();
     }
 
-    public void generateScheamWithoutCallingParent() throws Exception {
+    /**
+     * collects all the method parameters and the extra classes from the command line
+     * creates a JAXBContext and generates schemas from the JAXBContext
+     * 
+     * @throws Exception
+     */
+    public void generateSchemaForParameters() throws Exception {
         Set<Class<?>> classes = new HashSet<Class<?>>();
         classes.addAll(processMethods(serviceClass.getMethods()));
 



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