You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/08/01 20:27:44 UTC

svn commit: r561898 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/WSDL11Writer.java

Author: dims
Date: Wed Aug  1 11:27:42 2007
New Revision: 561898

URL: http://svn.apache.org/viewvc?view=rev&rev=561898
Log:
deprecate badly named method

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/WSDL11Writer.java

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/WSDL11Writer.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/WSDL11Writer.java?view=diff&rev=561898&r1=561897&r2=561898
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/WSDL11Writer.java (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/WSDL11Writer.java Wed Aug  1 11:27:42 2007
@@ -110,7 +110,7 @@
             }
         }
         // change the locations on the imported schemas
-        adjustWSDLSchemaLocatins(definition, changedMap);
+        adjustWSDLSchemaLocations(definition, changedMap);
         // finally save the file
         WSDLWriter wsdlWriter = WSDLFactory.newInstance().newWSDLWriter();
         File outputFile = FileWriter.createClassFile(baseFolder,
@@ -158,11 +158,21 @@
     }
 
     /**
+     * @deprecated  please use adjustWSDLSchemaLocations
+     * @param definition
+     * @param changedSchemaLocations
+     */
+    public void adjustWSDLSchemaLocatins(Definition definition, Map changedSchemaLocations) {
+        adjustWSDLSchemaLocations(definition, changedSchemaLocations);
+    }
+    
+    /**
      * adjust the schema locations in the original wsdl
      *
-     * @param changedScheamLocations
+     * @param definition
+     * @param changedSchemaLocations
      */
-    public void adjustWSDLSchemaLocatins(Definition definition, Map changedScheamLocations) {
+    public void adjustWSDLSchemaLocations(Definition definition, Map changedSchemaLocations) {
         Types wsdlTypes = definition.getTypes();
         if (wsdlTypes != null) {
             List extensibilityElements = wsdlTypes.getExtensibilityElements();
@@ -172,7 +182,7 @@
                 currentObject = iter.next();
                 if (currentObject instanceof Schema) {
                     schema = (Schema)currentObject;
-                    changeLocations(schema.getElement(), changedScheamLocations);
+                    changeLocations(schema.getElement(), changedSchemaLocations);
                 }
             }
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org