geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r155614 - geronimo/trunk/modules/webservices/src/java/org/apache/geronimo/webservices/WSDLVisitor.java
Date Sun, 27 Feb 2005 04:39:56 GMT
Author: djencks
Date: Sat Feb 26 20:39:55 2005
New Revision: 155614

URL: http://svn.apache.org/viewcvs?view=rev&rev=155614
Log:
imports is a map of lists of imports, not a map of imports

Modified:
    geronimo/trunk/modules/webservices/src/java/org/apache/geronimo/webservices/WSDLVisitor.java

Modified: geronimo/trunk/modules/webservices/src/java/org/apache/geronimo/webservices/WSDLVisitor.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/webservices/src/java/org/apache/geronimo/webservices/WSDLVisitor.java?view=diff&r1=155613&r2=155614
==============================================================================
--- geronimo/trunk/modules/webservices/src/java/org/apache/geronimo/webservices/WSDLVisitor.java
(original)
+++ geronimo/trunk/modules/webservices/src/java/org/apache/geronimo/webservices/WSDLVisitor.java
Sat Feb 26 20:39:55 2005
@@ -19,6 +19,7 @@
 import java.util.Collection;
 import java.util.Iterator;
 import java.util.List;
+import java.util.Map;
 import javax.wsdl.*;
 import javax.wsdl.extensions.soap.SOAPBody;
 import javax.wsdl.extensions.soap.SOAPBinding;
@@ -35,10 +36,14 @@
         begin();
         try {
             visit(definition);
-            Collection imports = definition.getImports().values();
-            for (Iterator iterator = imports.iterator(); iterator.hasNext();) {
-                Import wsdlImport = (Import) iterator.next();
-                visit(wsdlImport);
+            for (Iterator iterator = definition.getImports().entrySet().iterator(); iterator.hasNext();)
{
+                Map.Entry entry = (Map.Entry) iterator.next();
+                String namespaceURI = (String) entry.getKey();
+                List importsForNamespace = (List) entry.getValue();
+                for (Iterator iterator1 = importsForNamespace.iterator(); iterator1.hasNext();)
{
+                    Import anImport = (Import) iterator1.next();
+                    visit(anImport);
+                }
             }
             visit(definition.getTypes());
             Collection messages = definition.getMessages().values();



Mime
View raw message