axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r559925 - in /webservices/axis2/trunk/java/modules: java2wsdl/src/org/apache/ws/java2wsdl/ java2wsdl/src/org/apache/ws/java2wsdl/utils/ kernel/src/org/apache/axis2/description/java2wsdl/ tool/axis2-java2wsdl-maven-plugin/src/main/java/org/a...
Date Thu, 26 Jul 2007 18:24:23 GMT
Author: dims
Date: Thu Jul 26 11:24:22 2007
New Revision: 559925

URL: http://svn.apache.org/viewvc?view=rev&rev=559925
Log:
- Sort the list of constants and remove duplicates

- Add the following options to the Ant Task:
* DOC_LIT_BARE
* WSDL_VERSION_OPTION

- Add the following options to the Maven2 Mojo:
* ATTR_FORM_DEFAULT_OPTION
* DOC_LIT_BARE
* ELEMENT_FORM_DEFAULT_OPTION
* EXTRA_CLASSES_DEFAULT_OPTION
* JAVA_PKG_2_NSMAP_OPTION
* LOCATION_OPTION
* NAMESPACE_GENERATOR_OPTION
* SCHEMA_GENERATOR_OPTION
* STYLE_OPTION
* USE_OPTION
* WSDL_VERSION_OPTION


Modified:
    webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLTask.java
    webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/utils/Java2WSDLOptionsValidator.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/Java2WSDLConstants.java
    webservices/axis2/trunk/java/modules/tool/axis2-java2wsdl-maven-plugin/src/main/java/org/apache/axis2/maven2/java2wsdl/Java2WSDLMojo.java

Modified: webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLTask.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLTask.java?view=diff&rev=559925&r1=559924&r2=559925
==============================================================================
--- webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLTask.java
(original)
+++ webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLTask.java
Thu Jul 26 11:24:22 2007
@@ -50,6 +50,8 @@
     private String locationUri;
     private String attrFormDefault = null;
     private String elementFormDefault = null;
+    private String wsdlVersion = null;
+    private String docLitBare = null;
 
     //names of java types not used in the service defn. directly, but for which schema must
be generated
     private String[] extraClasses;
@@ -185,6 +187,14 @@
                 Java2WSDLConstants.SCHEMA_GENERATOR_OPTION,
                 getSchemaGenClassName());
 
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.WSDL_VERSION_OPTION,
+                getWSDLVersion());
+
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.DOC_LIT_BARE,
+                getDocLitBare());
+
         loadPkg2NsMap();
         addToOptionMap(optionMap,
                 Java2WSDLConstants.JAVA_PKG_2_NSMAP_OPTION,
@@ -397,5 +407,20 @@
         mappings.addMappingSet(mappingset);
     }
 
+    public String getDocLitBare() {
+        return docLitBare;
+    }
+
+    public void setDocLitBare(String docLitBare) {
+        this.docLitBare = docLitBare;
+    }
+
+    public String getWSDLVersion() {
+        return wsdlVersion;
+    }
+
+    public void setWSDLVersion(String wsdlVersion) {
+        this.wsdlVersion = wsdlVersion;
+    }
 }
 

Modified: webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/utils/Java2WSDLOptionsValidator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/utils/Java2WSDLOptionsValidator.java?view=diff&rev=559925&r1=559924&r2=559925
==============================================================================
--- webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/utils/Java2WSDLOptionsValidator.java
(original)
+++ webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/utils/Java2WSDLOptionsValidator.java
Thu Jul 26 11:24:22 2007
@@ -25,49 +25,48 @@
         boolean invalid;
         String optionType = option.getOptionType();
 
-        invalid = !((Java2WSDLConstants.CLASSNAME_OPTION).equalsIgnoreCase(optionType) ||
-                Java2WSDLConstants.OUTPUT_LOCATION_OPTION.equalsIgnoreCase(optionType) ||
-                Java2WSDLConstants.OUTPUT_FILENAME_OPTION.equalsIgnoreCase(optionType) ||
+        invalid = !(
+                Java2WSDLConstants.ATTR_FORM_DEFAULT_OPTION.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.ATTR_FORM_DEFAULT_OPTION_LONG.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.CLASSNAME_OPTION.equalsIgnoreCase(optionType) ||
+                Java2WSDLConstants.CLASSNAME_OPTION_LONG.equalsIgnoreCase(optionType) ||
                 Java2WSDLConstants.CLASSPATH_OPTION.equalsIgnoreCase(optionType) ||
-                Java2WSDLConstants.TARGET_NAMESPACE_OPTION.equalsIgnoreCase(optionType) ||
-                Java2WSDLConstants.TARGET_NAMESPACE_PREFIX_OPTION.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.SCHEMA_TARGET_NAMESPACE_OPTION.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.SERVICE_NAME_OPTION.equalsIgnoreCase(optionType) ||
-                Java2WSDLConstants.STYLE_OPTION.equalsIgnoreCase(optionType) ||
-                Java2WSDLConstants.USE_OPTION.equalsIgnoreCase(optionType) ||
+                Java2WSDLConstants.CLASSPATH_OPTION_LONG.equalsIgnoreCase(optionType) ||
                 Java2WSDLConstants.DOC_LIT_BARE.equalsIgnoreCase(optionType) ||
-                Java2WSDLConstants.LOCATION_OPTION.equalsIgnoreCase(optionType) ||
-                Java2WSDLConstants.ATTR_FORM_DEFAULT_OPTION.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.DOC_LIT_BARE_LONG.equalsIgnoreCase(optionType) ||
                 Java2WSDLConstants.ELEMENT_FORM_DEFAULT_OPTION.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.ATTR_FORM_DEFAULT_OPTION_LONG.equalsIgnoreCase(optionType)
||
                 Java2WSDLConstants.ELEMENT_FORM_DEFAULT_OPTION_LONG.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.ELEMENT_FORM_DEFAULT_OPTION.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.EXTRA_CLASSES_DEFAULT_OPTION_LONG.equalsIgnoreCase(optionType)
||
                 Java2WSDLConstants.EXTRA_CLASSES_DEFAULT_OPTION.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.NAMESPACE_GENERATOR_OPTION.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.NAMESPACE_GENERATOR_OPTION_LONG.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.SCHEMA_GENERATOR_OPTION.equalsIgnoreCase(optionType) ||
-                Java2WSDLConstants.SCHEMA_GENERATOR_OPTION_LONG.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.EXTRA_CLASSES_DEFAULT_OPTION_LONG.equalsIgnoreCase(optionType)
||
                 Java2WSDLConstants.JAVA_PKG_2_NSMAP_OPTION.equalsIgnoreCase(optionType) ||
                 Java2WSDLConstants.JAVA_PKG_2_NSMAP_OPTION_LONG.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.DOC_LIT_BARE_LONG.equalsIgnoreCase(optionType) ||
-
-                Java2WSDLConstants.CLASSNAME_OPTION_LONG.equalsIgnoreCase(optionType) ||
+                Java2WSDLConstants.LOCATION_OPTION.equalsIgnoreCase(optionType) ||
+                Java2WSDLConstants.LOCATION_OPTION_LONG.equalsIgnoreCase(optionType) ||
+                Java2WSDLConstants.NAMESPACE_GENERATOR_OPTION.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.NAMESPACE_GENERATOR_OPTION_LONG.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.OUTPUT_FILENAME_OPTION.equalsIgnoreCase(optionType) ||
                 Java2WSDLConstants.OUTPUT_FILENAME_OPTION_LONG.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.OUTPUT_LOCATION_OPTION.equalsIgnoreCase(optionType) ||
                 Java2WSDLConstants.OUTPUT_LOCATION_OPTION_LONG.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.CLASSNAME_OPTION_LONG.equalsIgnoreCase(optionType) ||
-                Java2WSDLConstants.CLASSPATH_OPTION_LONG.equalsIgnoreCase(optionType) ||
-                Java2WSDLConstants.TARGET_NAMESPACE_OPTION_LONG.equalsIgnoreCase(optionType)
||
-                Java2WSDLConstants.TARGET_NAMESPACE_PREFIX_OPTION_LONG.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.SCHEMA_GENERATOR_OPTION.equalsIgnoreCase(optionType) ||
+                Java2WSDLConstants.SCHEMA_GENERATOR_OPTION_LONG.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.SCHEMA_TARGET_NAMESPACE_OPTION.equalsIgnoreCase(optionType)
||
                 Java2WSDLConstants.SCHEMA_TARGET_NAMESPACE_OPTION_LONG.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION.equalsIgnoreCase(optionType)
||
                 Java2WSDLConstants.SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION_LONG.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.SERVICE_NAME_OPTION.equalsIgnoreCase(optionType) ||
                 Java2WSDLConstants.SERVICE_NAME_OPTION_LONG.equalsIgnoreCase(optionType)||
+                Java2WSDLConstants.STYLE_OPTION.equalsIgnoreCase(optionType) ||
                 Java2WSDLConstants.STYLE_OPTION_LONG.equalsIgnoreCase(optionType)||
+                Java2WSDLConstants.TARGET_NAMESPACE_OPTION.equalsIgnoreCase(optionType) ||
+                Java2WSDLConstants.TARGET_NAMESPACE_OPTION_LONG.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.TARGET_NAMESPACE_PREFIX_OPTION.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.TARGET_NAMESPACE_PREFIX_OPTION_LONG.equalsIgnoreCase(optionType)
||
+                Java2WSDLConstants.USE_OPTION.equalsIgnoreCase(optionType) ||
                 Java2WSDLConstants.USE_OPTION_LONG.equalsIgnoreCase(optionType)||
                 Java2WSDLConstants.WSDL_VERSION_OPTION.equalsIgnoreCase(optionType)||
-                Java2WSDLConstants.WSDL_VERSION_OPTION_LONG.equalsIgnoreCase(optionType)||
-                Java2WSDLConstants.LOCATION_OPTION_LONG.equalsIgnoreCase(optionType));
+                Java2WSDLConstants.WSDL_VERSION_OPTION_LONG.equalsIgnoreCase(optionType)
+        );
 
 
         return invalid;

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/Java2WSDLConstants.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/Java2WSDLConstants.java?view=diff&rev=559925&r1=559924&r2=559925
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/Java2WSDLConstants.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/Java2WSDLConstants.java
Thu Jul 26 11:24:22 2007
@@ -92,49 +92,48 @@
     String URI_2001_SCHEMA_XSD = "http://www.w3.org/2001/XMLSchema";
 
 
-    String OUTPUT_LOCATION_OPTION = "o";
-    String OUTPUT_FILENAME_OPTION = "of";
+    String ATTR_FORM_DEFAULT_OPTION = "afd";
+    String ATTR_FORM_DEFAULT_OPTION_LONG = "attributeFormDefault";
     String CLASSNAME_OPTION = "cn";
+    String CLASSNAME_OPTION_LONG = "className";
     String CLASSPATH_OPTION = "cp";
-    String TARGET_NAMESPACE_OPTION = "tn";
-    String TARGET_NAMESPACE_PREFIX_OPTION = "tp";
-    String SCHEMA_TARGET_NAMESPACE_OPTION = "stn";
-    String SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION = "stp";
-    String SERVICE_NAME_OPTION = "sn";
-    String STYLE_OPTION = "st";
-    String USE_OPTION = "u";
-    String LOCATION_OPTION = "l";
-    String ATTR_FORM_DEFAULT_OPTION = "afd";
+    String CLASSPATH_OPTION_LONG = "classPath";
+    String DOC_LIT_BARE = "dlb";
+    String DOC_LIT_BARE_LONG = "doclitbare";
     String ELEMENT_FORM_DEFAULT_OPTION = "efd";
+    String ELEMENT_FORM_DEFAULT_OPTION_LONG = "elementFormDefault";
     String EXTRA_CLASSES_DEFAULT_OPTION = "xc";
-    String NAMESPACE_GENERATOR_OPTION = "nsg";
-    String SCHEMA_GENERATOR_OPTION = "sg";
+    String EXTRA_CLASSES_DEFAULT_OPTION_LONG = "extraClasses";
     String JAVA_PKG_2_NSMAP_OPTION = "p2n";
-    String WSDL_VERSION_OPTION = "wv";
-    String DOC_LIT_BARE = "dlb";
-
-    //long option constants
-    String OUTPUT_LOCATION_OPTION_LONG = "output";
-    String TARGET_NAMESPACE_OPTION_LONG = "targetNamespace";
-    String TARGET_NAMESPACE_PREFIX_OPTION_LONG = "targetNamespacePrefix";
-    String SERVICE_NAME_OPTION_LONG = "serviceName";
-    String CLASSNAME_OPTION_LONG = "className";
-    String CLASSPATH_OPTION_LONG = "classPath";
+    String JAVA_PKG_2_NSMAP_OPTION_LONG = "package2Namespace";
+    String LOCATION_OPTION = "l";
+    String LOCATION_OPTION_LONG = "location";
+    String NAMESPACE_GENERATOR_OPTION = "nsg";
+    String NAMESPACE_GENERATOR_OPTION_LONG = "namespaceGenerator";
+    String OUTPUT_FILENAME_OPTION = "of";
     String OUTPUT_FILENAME_OPTION_LONG = "outputFilename";
+    String OUTPUT_LOCATION_OPTION = "o";
+    String OUTPUT_LOCATION_OPTION_LONG = "output";
+    String SCHEMA_GENERATOR_OPTION = "sg";
+    String SCHEMA_GENERATOR_OPTION_LONG = "schemaGenerator";
+    String SCHEMA_TARGET_NAMESPACE_OPTION = "stn";
     String SCHEMA_TARGET_NAMESPACE_OPTION_LONG = "schemaTargetnamespace";
+    String SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION = "stp";
     String SCHEMA_TARGET_NAMESPACE_PREFIX_OPTION_LONG = "schemaTargetnamespacePrefix";
+    String SERVICE_NAME_OPTION = "sn";
+    String SERVICE_NAME_OPTION_LONG = "serviceName";
+    String STYLE_OPTION = "st";
     String STYLE_OPTION_LONG = "style";
+    String TARGET_NAMESPACE_OPTION = "tn";
+    String TARGET_NAMESPACE_OPTION_LONG = "targetNamespace";
+    String TARGET_NAMESPACE_PREFIX_OPTION = "tp";
+    String TARGET_NAMESPACE_PREFIX_OPTION_LONG = "targetNamespacePrefix";
+    String USE_OPTION = "u";
     String USE_OPTION_LONG = "use";
-    String LOCATION_OPTION_LONG = "location";
-    String AXIS2_NAMESPACE_PREFIX = "ns1";
-    String ATTR_FORM_DEFAULT_OPTION_LONG = "attributeFormDefault";
-    String ELEMENT_FORM_DEFAULT_OPTION_LONG = "elementFormDefault";
-    String EXTRA_CLASSES_DEFAULT_OPTION_LONG = "extraClasses";
-    String NAMESPACE_GENERATOR_OPTION_LONG = "namespaceGenerator";
-    String SCHEMA_GENERATOR_OPTION_LONG = "schemaGenerator";
-    String JAVA_PKG_2_NSMAP_OPTION_LONG = "package2Namespace";
+    String WSDL_VERSION_OPTION = "wv";
     String WSDL_VERSION_OPTION_LONG = "wsdl-version";
-    String DOC_LIT_BARE_LONG = "doclitbare";
+    
+    String AXIS2_NAMESPACE_PREFIX = "ns1";
 
     public static final String SOLE_INPUT = "SOLE_INPUT";
 

Modified: webservices/axis2/trunk/java/modules/tool/axis2-java2wsdl-maven-plugin/src/main/java/org/apache/axis2/maven2/java2wsdl/Java2WSDLMojo.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-java2wsdl-maven-plugin/src/main/java/org/apache/axis2/maven2/java2wsdl/Java2WSDLMojo.java?view=diff&rev=559925&r1=559924&r2=559925
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/axis2-java2wsdl-maven-plugin/src/main/java/org/apache/axis2/maven2/java2wsdl/Java2WSDLMojo.java
(original)
+++ webservices/axis2/trunk/java/modules/tool/axis2-java2wsdl-maven-plugin/src/main/java/org/apache/axis2/maven2/java2wsdl/Java2WSDLMojo.java
Thu Jul 26 11:24:22 2007
@@ -23,6 +23,8 @@
 import java.util.Iterator;
 import java.util.Map;
 import java.util.Set;
+import java.util.Properties;
+import java.util.ArrayList;
 
 import org.apache.maven.artifact.Artifact;
 import org.apache.maven.plugin.AbstractMojo;
@@ -43,6 +45,10 @@
  * @requiresDependencyResolution compile
  */
 public class Java2WSDLMojo extends AbstractMojo {
+    public static final String OPEN_BRACKET = "[";
+    public static final String CLOSE_BRACKET = "]";
+    public static final String COMMA = ",";
+
     /**
      * The maven project.
      * @parameter expression="${project}"
@@ -95,6 +101,72 @@
      */
     private String outputFileName;
 
+    /**
+     * Style for the wsdl
+     * @parameter expression="${axis2.java2wsdl.style}"
+     */
+    private String style;
+
+    /**
+     * Use for the wsdl
+     * @parameter expression="${axis2.java2wsdl.use}"
+     */
+    private String use;
+
+    /**
+     * Version for the wsdl
+     * @parameter expression="${axis2.java2wsdl.wsdlVersion}"
+     */
+    private String wsdlVersion;
+
+    /**
+     * Namespace Generator
+     * @parameter expression="${axis2.java2wsdl.nsGenClassName}"
+     */
+    private String nsGenClassName;
+
+    /**
+     * Schema Generator
+     * @parameter expression="${axis2.java2wsdl.nsGenClassName}"
+     */
+    private String schemaGenClassName;
+
+    /**
+     * Location URI in the wsdl
+     * @parameter expression="${axis2.java2wsdl.locationUri}"
+     */
+    private String locationUri;
+
+    /**
+     * attrFormDefault setting for the schema
+     * @parameter expression="${axis2.java2wsdl.attrFormDefault}"
+     */
+    private String attrFormDefault;
+
+    /**
+     * elementFormDefault setting for the schema
+     * @parameter expression="${axis2.java2wsdl.elementFormDefault}"
+     */
+    private String elementFormDefault;
+
+    /**
+     * Switch on the Doc/Lit/Bare style schema
+     * @parameter expression="${axis2.java2wsdl.docLitBare}"
+     */
+    private String docLitBare;
+
+    /**
+     * Additional classes for which we need to generate schema
+     * @parameter expression="${axis2.java2wsdl.extraClasses}"
+     */
+    private String[] extraClasses;
+
+    /**
+     * Specify namespaces explicitly for packages
+     * @parameter expression="${axis2.java2wsdl.package2Namespace}"
+     */
+    private Properties package2Namespace;
+
     private void addToOptionMap(Map map, String option, String value) {
         addToOptionMap(map, option, new String[]{value});
     }
@@ -106,6 +178,13 @@
         }
     }
 
+    private void addToOptionMap(Map map, String option, ArrayList values) {
+        if (values != null && !values.isEmpty()) {
+            map.put(option,
+                    new Java2WSDLCommandLineOption(option, values));
+        }
+    }
+
     /**
      * Fills the option map. This map is passed onto
      * the code generation API to generate the code.
@@ -157,6 +236,63 @@
         addToOptionMap( optionMap,
                         Java2WSDLConstants.CLASSPATH_OPTION,
                         artifactFileNames);
+
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.STYLE_OPTION,
+                style);
+
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.USE_OPTION,
+                use);
+
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.WSDL_VERSION_OPTION,
+                wsdlVersion);
+
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.DOC_LIT_BARE,
+                docLitBare);
+
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.LOCATION_OPTION,
+                locationUri);
+
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.NAMESPACE_GENERATOR_OPTION,
+                nsGenClassName);
+
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.SCHEMA_GENERATOR_OPTION,
+                schemaGenClassName);
+
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.ATTR_FORM_DEFAULT_OPTION,
+                attrFormDefault);
+
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.ELEMENT_FORM_DEFAULT_OPTION,
+                elementFormDefault);
+
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.EXTRA_CLASSES_DEFAULT_OPTION,
+                extraClasses);
+
+        ArrayList list = new ArrayList();
+        Iterator iterator = package2Namespace.entrySet().iterator();
+
+        while (iterator.hasNext()) {
+            Map.Entry entry = (Map.Entry) iterator.next();
+            String packageName = (String) entry.getKey();
+            String namespace = (String) entry.getValue();
+            list.add(OPEN_BRACKET +
+                    packageName +
+                    COMMA +
+                    namespace +
+                    CLOSE_BRACKET);
+        }
+        addToOptionMap(optionMap,
+                Java2WSDLConstants.JAVA_PKG_2_NSMAP_OPTION,
+                list);
 
         return optionMap;
     }



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