+ *
+ * @author Andreas Veithen
+ */
+public class AxisServerMBeanExporter implements ServletContextAttributeListener {
+ public void attributeAdded(ServletContextAttributeEvent event) {
+ Object value = event.getValue();
+ if (value instanceof AxisServer) {
+ ServiceAdmin.setEngine((AxisServer)value, event.getServletContext().getServerInfo());
+ }
+ }
+
+ public void attributeRemoved(ServletContextAttributeEvent event) {
+ // TODO: we currently never unregister the MBeans, but this was also the case in Axis 1.4
+ }
+
+ public void attributeReplaced(ServletContextAttributeEvent event) {
+ attributeRemoved(event);
+ attributeAdded(event);
+ }
+}
diff --git a/axis-war/pom.xml b/axis-war/pom.xml
index 9b4222b74..f2fed9c8c 100644
--- a/axis-war/pom.xml
+++ b/axis-war/pom.xml
@@ -44,6 +44,11 @@
axis-rt-soapmonitor${project.version}
+
+ ${project.groupId}
+ axis-rt-management
+ ${project.version}
+ log4jlog4j
diff --git a/axis-war/src/main/webapp/WEB-INF/web.xml b/axis-war/src/main/webapp/WEB-INF/web.xml
index 3574451a4..517caa876 100644
--- a/axis-war/src/main/webapp/WEB-INF/web.xml
+++ b/axis-war/src/main/webapp/WEB-INF/web.xml
@@ -9,6 +9,10 @@ Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
org.apache.axis.transport.http.AxisHTTPSessionListener
+
+
AxisServlet
diff --git a/pom.xml b/pom.xml
index 1dbf7e2b0..99a462c83 100644
--- a/pom.xml
+++ b/pom.xml
@@ -66,6 +66,7 @@
axis-rt-jwsaxis-rt-databinding-castoraxis-rt-databinding-xmlbeans
+ axis-rt-managementaxis-rt-provider-bsfaxis-rt-soapmonitoraxis-rt-transport-http-hc3
diff --git a/src/site/apt/changelogs/1_4_1.apt b/src/site/apt/changelogs/1_4_1.apt
index c7ca0077e..55cbfc063 100644
--- a/src/site/apt/changelogs/1_4_1.apt
+++ b/src/site/apt/changelogs/1_4_1.apt
@@ -47,4 +47,7 @@ Changes from 1.4 final
* WSDL4J has been upgraded from 1.5.1 to 1.6.2.
* Support for Java 1.3 has been dropped.
-
+
+ * <<>> no longer attempts to register the Axis MBeans automatically. To enable them, add
+ <<>> as a dependency and register <<>>
+ as a listener in <<>>.
From caa6b9a3baefd1736506ed7cd0b1749eec767e5b Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Fri, 16 Nov 2012 21:13:49 +0000
Subject: [PATCH 037/197] Moved the tcpmon resource bundle to the right place.
---
.../src/main/resources/org/apache/axis/utils/tcpmon.properties | 0
.../src/main/resources/org/apache/axis/utils/tcpmon_ja.properties | 0
.../src/main/resources/org/apache/axis/utils/tcpmon_ko.properties | 0
3 files changed, 0 insertions(+), 0 deletions(-)
rename {axis-rt-core => tcpmon}/src/main/resources/org/apache/axis/utils/tcpmon.properties (100%)
rename {axis-rt-core => tcpmon}/src/main/resources/org/apache/axis/utils/tcpmon_ja.properties (100%)
rename {axis-rt-core => tcpmon}/src/main/resources/org/apache/axis/utils/tcpmon_ko.properties (100%)
diff --git a/axis-rt-core/src/main/resources/org/apache/axis/utils/tcpmon.properties b/tcpmon/src/main/resources/org/apache/axis/utils/tcpmon.properties
similarity index 100%
rename from axis-rt-core/src/main/resources/org/apache/axis/utils/tcpmon.properties
rename to tcpmon/src/main/resources/org/apache/axis/utils/tcpmon.properties
diff --git a/axis-rt-core/src/main/resources/org/apache/axis/utils/tcpmon_ja.properties b/tcpmon/src/main/resources/org/apache/axis/utils/tcpmon_ja.properties
similarity index 100%
rename from axis-rt-core/src/main/resources/org/apache/axis/utils/tcpmon_ja.properties
rename to tcpmon/src/main/resources/org/apache/axis/utils/tcpmon_ja.properties
diff --git a/axis-rt-core/src/main/resources/org/apache/axis/utils/tcpmon_ko.properties b/tcpmon/src/main/resources/org/apache/axis/utils/tcpmon_ko.properties
similarity index 100%
rename from axis-rt-core/src/main/resources/org/apache/axis/utils/tcpmon_ko.properties
rename to tcpmon/src/main/resources/org/apache/axis/utils/tcpmon_ko.properties
From c1ee8f1a30b012a2852e5f5819ccaa022635a959 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sat, 17 Nov 2012 10:10:45 +0000
Subject: [PATCH 038/197] Duplicate code reduction.
---
.../DelegatingWSDDEngineConfiguration.java | 135 ++++++++++++++++++
.../axis/configuration/DirProvider.java | 105 +-------------
.../axis/configuration/FileProvider.java | 107 +-------------
3 files changed, 137 insertions(+), 210 deletions(-)
create mode 100644 axis-rt-core/src/main/java/org/apache/axis/configuration/DelegatingWSDDEngineConfiguration.java
diff --git a/axis-rt-core/src/main/java/org/apache/axis/configuration/DelegatingWSDDEngineConfiguration.java b/axis-rt-core/src/main/java/org/apache/axis/configuration/DelegatingWSDDEngineConfiguration.java
new file mode 100644
index 000000000..a36123808
--- /dev/null
+++ b/axis-rt-core/src/main/java/org/apache/axis/configuration/DelegatingWSDDEngineConfiguration.java
@@ -0,0 +1,135 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.configuration;
+
+import java.util.Hashtable;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.apache.axis.ConfigurationException;
+import org.apache.axis.Handler;
+import org.apache.axis.WSDDEngineConfiguration;
+import org.apache.axis.deployment.wsdd.WSDDDeployment;
+import org.apache.axis.deployment.wsdd.WSDDGlobalConfiguration;
+import org.apache.axis.encoding.TypeMappingRegistry;
+import org.apache.axis.handlers.soap.SOAPService;
+import org.apache.axis.utils.Messages;
+
+/**
+ * {@link WSDDEngineConfiguration} implementation that delegates to the {@link WSDDDeployment}
+ * returned by {@link WSDDEngineConfiguration#getDeployment()}.
+ */
+public abstract class DelegatingWSDDEngineConfiguration implements WSDDEngineConfiguration {
+ /**
+ * retrieve an instance of the named handler
+ * @param qname XXX
+ * @return XXX
+ * @throws ConfigurationException XXX
+ */
+ public final Handler getHandler(QName qname) throws ConfigurationException {
+ return getDeployment().getHandler(qname);
+ }
+
+ /**
+ * retrieve an instance of the named service
+ * @param qname XXX
+ * @return XXX
+ * @throws ConfigurationException XXX
+ */
+ public final SOAPService getService(QName qname) throws ConfigurationException {
+ SOAPService service = getDeployment().getService(qname);
+ if (service == null) {
+ throw new ConfigurationException(Messages.getMessage("noService10",
+ qname.toString()));
+ }
+ return service;
+ }
+
+ /**
+ * Get a service which has been mapped to a particular namespace
+ *
+ * @param namespace a namespace URI
+ * @return an instance of the appropriate Service, or null
+ */
+ public final SOAPService getServiceByNamespaceURI(String namespace)
+ throws ConfigurationException {
+ return getDeployment().getServiceByNamespaceURI(namespace);
+ }
+
+ /**
+ * retrieve an instance of the named transport
+ * @param qname XXX
+ * @return XXX
+ * @throws ConfigurationException XXX
+ */
+ public final Handler getTransport(QName qname) throws ConfigurationException {
+ return getDeployment().getTransport(qname);
+ }
+
+ public final TypeMappingRegistry getTypeMappingRegistry()
+ throws ConfigurationException {
+ return getDeployment().getTypeMappingRegistry();
+ }
+
+ /**
+ * Returns a global request handler.
+ */
+ public final Handler getGlobalRequest() throws ConfigurationException {
+ return getDeployment().getGlobalRequest();
+ }
+
+ /**
+ * Returns a global response handler.
+ */
+ public final Handler getGlobalResponse() throws ConfigurationException {
+ return getDeployment().getGlobalResponse();
+ }
+
+ /**
+ * Returns the global configuration options.
+ */
+ public final Hashtable getGlobalOptions() throws ConfigurationException {
+ WSDDGlobalConfiguration globalConfig
+ = getDeployment().getGlobalConfiguration();
+
+ if (globalConfig != null)
+ return globalConfig.getParametersTable();
+
+ return null;
+ }
+
+ /**
+ * Get an enumeration of the services deployed to this engine
+ */
+ public final Iterator getDeployedServices() throws ConfigurationException {
+ return getDeployment().getDeployedServices();
+ }
+
+ /**
+ * Get a list of roles that this engine plays globally. Services
+ * within the engine configuration may also add additional roles.
+ *
+ * @return a List of the roles for this engine
+ */
+ public final List getRoles() {
+ return getDeployment().getRoles();
+ }
+}
diff --git a/axis-rt-core/src/main/java/org/apache/axis/configuration/DirProvider.java b/axis-rt-core/src/main/java/org/apache/axis/configuration/DirProvider.java
index 90d8a6f37..54cf4a8b0 100755
--- a/axis-rt-core/src/main/java/org/apache/axis/configuration/DirProvider.java
+++ b/axis-rt-core/src/main/java/org/apache/axis/configuration/DirProvider.java
@@ -22,27 +22,19 @@
import java.io.FileFilter;
import java.io.IOException;
import java.util.Hashtable;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.xml.namespace.QName;
import org.apache.axis.AxisEngine;
import org.apache.axis.ConfigurationException;
-import org.apache.axis.Handler;
-import org.apache.axis.WSDDEngineConfiguration;
import org.apache.axis.deployment.wsdd.WSDDDeployment;
import org.apache.axis.deployment.wsdd.WSDDDocument;
import org.apache.axis.deployment.wsdd.WSDDGlobalConfiguration;
-import org.apache.axis.encoding.TypeMappingRegistry;
-import org.apache.axis.handlers.soap.SOAPService;
import org.apache.axis.utils.Messages;
import org.apache.axis.utils.XMLUtils;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.Log;
-public class DirProvider implements WSDDEngineConfiguration {
+public class DirProvider extends DelegatingWSDDEngineConfiguration {
protected static Log log =
LogFactory.getLog(DirProvider.class.getName());
@@ -133,99 +125,4 @@ public void writeEngineConfig(AxisEngine engine)
throws ConfigurationException {
// this is not implemented
}
-
- /**
- * retrieve an instance of the named handler
- * @param qname XXX
- * @return XXX
- * @throws ConfigurationException XXX
- */
- public Handler getHandler(QName qname) throws ConfigurationException {
- return this.deployment.getHandler(qname);
- }
-
- /**
- * retrieve an instance of the named service
- * @param qname XXX
- * @return XXX
- * @throws ConfigurationException XXX
- */
- public SOAPService getService(QName qname) throws ConfigurationException {
- SOAPService service = this.deployment.getService(qname);
- if (service == null) {
- throw new ConfigurationException(Messages.getMessage("noService10",
- qname.toString()));
- }
- return service;
- }
-
- /**
- * Get a service which has been mapped to a particular namespace
- *
- * @param namespace a namespace URI
- * @return an instance of the appropriate Service, or null
- */
- public SOAPService getServiceByNamespaceURI(String namespace)
- throws ConfigurationException {
- return this.deployment.getServiceByNamespaceURI(namespace);
- }
-
- /**
- * retrieve an instance of the named transport
- * @param qname XXX
- * @return XXX
- * @throws ConfigurationException XXX
- */
- public Handler getTransport(QName qname) throws ConfigurationException {
- return this.deployment.getTransport(qname);
- }
-
- public TypeMappingRegistry getTypeMappingRegistry()
- throws ConfigurationException {
- return this.deployment.getTypeMappingRegistry();
- }
-
- /**
- * Returns a global request handler.
- */
- public Handler getGlobalRequest() throws ConfigurationException {
- return this.deployment.getGlobalRequest();
- }
-
- /**
- * Returns a global response handler.
- */
- public Handler getGlobalResponse() throws ConfigurationException {
- return this.deployment.getGlobalResponse();
- }
-
- /**
- * Returns the global configuration options.
- */
- public Hashtable getGlobalOptions() throws ConfigurationException {
- WSDDGlobalConfiguration globalConfig
- = this.deployment.getGlobalConfiguration();
-
- if (globalConfig != null)
- return globalConfig.getParametersTable();
-
- return null;
- }
-
- /**
- * Get an enumeration of the services deployed to this engine
- */
- public Iterator getDeployedServices() throws ConfigurationException {
- return this.deployment.getDeployedServices();
- }
-
- /**
- * Get a list of roles that this engine plays globally. Services
- * within the engine configuration may also add additional roles.
- *
- * @return a List of the roles for this engine
- */
- public List getRoles() {
- return this.deployment.getRoles();
- }
}
diff --git a/axis-rt-core/src/main/java/org/apache/axis/configuration/FileProvider.java b/axis-rt-core/src/main/java/org/apache/axis/configuration/FileProvider.java
index 57354951a..0c5f67460 100644
--- a/axis-rt-core/src/main/java/org/apache/axis/configuration/FileProvider.java
+++ b/axis-rt-core/src/main/java/org/apache/axis/configuration/FileProvider.java
@@ -24,22 +24,12 @@
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.Writer;
-import java.util.Hashtable;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.xml.namespace.QName;
import org.apache.axis.AxisEngine;
import org.apache.axis.ConfigurationException;
-import org.apache.axis.Handler;
-import org.apache.axis.WSDDEngineConfiguration;
import org.apache.axis.components.logger.LogFactory;
import org.apache.axis.deployment.wsdd.WSDDDeployment;
import org.apache.axis.deployment.wsdd.WSDDDocument;
-import org.apache.axis.deployment.wsdd.WSDDGlobalConfiguration;
-import org.apache.axis.encoding.TypeMappingRegistry;
-import org.apache.axis.handlers.soap.SOAPService;
import org.apache.axis.utils.Admin;
import org.apache.axis.utils.ClassUtils;
import org.apache.axis.utils.Messages;
@@ -54,7 +44,7 @@
* @author Glen Daniels (gdaniels@apache.org)
* @author Glyn Normington (glyn@apache.org)
*/
-public class FileProvider implements WSDDEngineConfiguration {
+public class FileProvider extends DelegatingWSDDEngineConfiguration {
protected static Log log =
LogFactory.getLog(FileProvider.class.getName());
@@ -210,99 +200,4 @@ public void writeEngineConfig(AxisEngine engine)
}
}
}
-
- /**
- * retrieve an instance of the named handler
- * @param qname XXX
- * @return XXX
- * @throws ConfigurationException XXX
- */
- public Handler getHandler(QName qname) throws ConfigurationException {
- return deployment.getHandler(qname);
- }
-
- /**
- * retrieve an instance of the named service
- * @param qname XXX
- * @return XXX
- * @throws ConfigurationException XXX
- */
- public SOAPService getService(QName qname) throws ConfigurationException {
- SOAPService service = deployment.getService(qname);
- if (service == null) {
- throw new ConfigurationException(Messages.getMessage("noService10",
- qname.toString()));
- }
- return service;
- }
-
- /**
- * Get a service which has been mapped to a particular namespace
- *
- * @param namespace a namespace URI
- * @return an instance of the appropriate Service, or null
- */
- public SOAPService getServiceByNamespaceURI(String namespace)
- throws ConfigurationException {
- return deployment.getServiceByNamespaceURI(namespace);
- }
-
- /**
- * retrieve an instance of the named transport
- * @param qname XXX
- * @return XXX
- * @throws ConfigurationException XXX
- */
- public Handler getTransport(QName qname) throws ConfigurationException {
- return deployment.getTransport(qname);
- }
-
- public TypeMappingRegistry getTypeMappingRegistry()
- throws ConfigurationException {
- return deployment.getTypeMappingRegistry();
- }
-
- /**
- * Returns a global request handler.
- */
- public Handler getGlobalRequest() throws ConfigurationException {
- return deployment.getGlobalRequest();
- }
-
- /**
- * Returns a global response handler.
- */
- public Handler getGlobalResponse() throws ConfigurationException {
- return deployment.getGlobalResponse();
- }
-
- /**
- * Returns the global configuration options.
- */
- public Hashtable getGlobalOptions() throws ConfigurationException {
- WSDDGlobalConfiguration globalConfig
- = deployment.getGlobalConfiguration();
-
- if (globalConfig != null)
- return globalConfig.getParametersTable();
-
- return null;
- }
-
- /**
- * Get an enumeration of the services deployed to this engine
- */
- public Iterator getDeployedServices() throws ConfigurationException {
- return deployment.getDeployedServices();
- }
-
- /**
- * Get a list of roles that this engine plays globally. Services
- * within the engine configuration may also add additional roles.
- *
- * @return a List of the roles for this engine
- */
- public List getRoles() {
- return deployment.getRoles();
- }
}
From c628c6bfea1db75ff4657d222c7e9055b99f8d33 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sat, 17 Nov 2012 17:33:04 +0000
Subject: [PATCH 039/197] Added a mechanism that allows individual JARs to
contribute items to the default client or server configuration. This is
essential for splitting up the Axis JAR into smaller modules.
---
.../configuration/DefaultConfiguration.java | 158 ++++++++++++++++++
.../axis/configuration/FileProvider.java | 38 +++--
.../org/apache/axis/utils/ClassUtils.java | 31 ++--
.../META-INF/axis/default-client-config.wsdd} | 10 +-
.../src/site/apt/index.apt.vm | 17 +-
.../javanet/TestDefaultConfiguration.java | 40 +++++
interop/src/test/resources/client-config.wsdd | 10 --
7 files changed, 259 insertions(+), 45 deletions(-)
create mode 100644 axis-rt-core/src/main/java/org/apache/axis/configuration/DefaultConfiguration.java
rename axis-rt-transport-http-javanet/src/{test/resources/client-config.wsdd => main/resources/META-INF/axis/default-client-config.wsdd} (70%)
create mode 100644 axis-rt-transport-http-javanet/src/test/java/org/apache/axis/transport/http/javanet/TestDefaultConfiguration.java
delete mode 100644 interop/src/test/resources/client-config.wsdd
diff --git a/axis-rt-core/src/main/java/org/apache/axis/configuration/DefaultConfiguration.java b/axis-rt-core/src/main/java/org/apache/axis/configuration/DefaultConfiguration.java
new file mode 100644
index 000000000..a77d23313
--- /dev/null
+++ b/axis-rt-core/src/main/java/org/apache/axis/configuration/DefaultConfiguration.java
@@ -0,0 +1,158 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.configuration;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+import java.util.Enumeration;
+
+import org.apache.axis.AxisEngine;
+import org.apache.axis.ConfigurationException;
+import org.apache.axis.components.logger.LogFactory;
+import org.apache.axis.deployment.wsdd.WSDDDeployment;
+import org.apache.axis.deployment.wsdd.WSDDDocument;
+import org.apache.axis.utils.XMLUtils;
+import org.apache.commons.logging.Log;
+
+/**
+ * Configuration provider that loads the default Axis configuration. It first loads the
+ * org/apache/axis/<type>/<type>-config.wsdd resource and then searches for resources
+ * with name META-INF/axis/default-<type>-config.wsdd. All the discovered WSDD documents
+ * are merged into a single configuration. <type> identifies the engine type for which
+ * the configuration is to be built; it is either client or server.
+ *
+ * This class looks up the resources using the thread context class loader, except if it determines
+ * that the context class loader is not set correctly, in which case it falls back to the class
+ * loader that loaded the {@link DefaultConfiguration} class. To determine if the context class
+ * loader is set correctly, the code checks that the {@link DefaultConfiguration} class is visible
+ * to the context class loader.
+ *
+ * The algorithm implemented by this class is designed to support the modularized artifacts
+ * introduced in Axis 1.4.1. It allows individual JARs to contribute items (transports, handlers,
+ * etc.) to the default configuration. The naming convention for the base configuration file
+ * (org/apache/axis/<type>/<type>-config.wsdd) was chosen for consistency with Axis
+ * 1.4, while META-INF/axis/default-<type>-config.wsdd is new in Axis 1.4.1.
+ *
+ * {@link DefaultConfiguration} is also used by {@link FileProvider} to build the configuration if
+ * no existing configuration file is found.
+ *
+ * @author Andreas Veithen
+ */
+public class DefaultConfiguration extends DelegatingWSDDEngineConfiguration {
+ private static final Log log = LogFactory.getLog(DefaultConfiguration.class.getName());
+
+ private final String type;
+ private WSDDDeployment deployment;
+
+ /**
+ * Constructor.
+ *
+ * @param type
+ * the engine type to load the default configuration for; this should be
+ * client or server (although any value is supported)
+ */
+ public DefaultConfiguration(String type) {
+ this.type = type;
+ }
+
+ public void configureEngine(AxisEngine engine) throws ConfigurationException {
+ ClassLoader classLoader;
+ try {
+ classLoader = Thread.currentThread().getContextClassLoader();
+ } catch (SecurityException ex) {
+ // We can only get a SecurityException if "the caller's class loader is not the same as
+ // or an ancestor of the context class loader". In this case we are not interested in
+ // the class loader anyway.
+ classLoader = null;
+ }
+ if (classLoader != null) {
+ // Check if we are visible to the thread context class loader. If this is not the case,
+ // then the context class loader is likely not set correctly and we ignore it.
+ try {
+ classLoader.loadClass(DefaultConfiguration.class.getName());
+ } catch (ClassNotFoundException ex) {
+ log.debug(DefaultConfiguration.class.getName() + " not visible to thread context class loader");
+ classLoader = null;
+ }
+ }
+ if (classLoader == null) {
+ log.debug("Not using thread context class loader");
+ classLoader = DefaultConfiguration.class.getClassLoader();
+ } else {
+ log.debug("Using thread context class loader");
+ }
+
+ // Load the base configuration
+ String resourceName = "org/apache/axis/" + type + "/" + type + "-config.wsdd";
+ if (log.isDebugEnabled()) {
+ log.debug("Loading resource " + resourceName);
+ }
+ InputStream in = classLoader.getResourceAsStream(resourceName);
+ if (in == null) {
+ throw new ConfigurationException("Resource " + resourceName + " not found");
+ }
+ try {
+ try {
+ deployment = new WSDDDocument(XMLUtils.newDocument(in)).getDeployment();
+ } finally {
+ in.close();
+ }
+ } catch (Exception ex) {
+ // TODO: refactor ConfigurationException to support exception chaining
+ throw new ConfigurationException(/*"Failed to process resource " + baseConfigResource,*/ ex);
+ }
+
+ // Discover and load additional default configuration fragments
+ resourceName = "META-INF/axis/default-" + type + "-config.wsdd";
+ Enumeration resources;
+ try {
+ resources = classLoader.getResources(resourceName);
+ } catch (IOException ex) {
+ // TODO: refactor ConfigurationException to support exception chaining
+ throw new ConfigurationException(/*"Failed to discover resources with name " + resourceName,*/ ex);
+ }
+ while (resources.hasMoreElements()) {
+ URL url = (URL)resources.nextElement();
+ if (log.isDebugEnabled()) {
+ log.debug("Loading " + url);
+ }
+ try {
+ in = url.openStream();
+ try {
+ new WSDDDocument(XMLUtils.newDocument(in)).deploy(deployment);
+ } finally {
+ in.close();
+ }
+ } catch (Exception ex) {
+ // TODO: refactor ConfigurationException to support exception chaining
+ throw new ConfigurationException(/*"Failed to process " + url,*/ ex);
+ }
+ }
+ deployment.configureEngine(engine);
+ }
+
+ public WSDDDeployment getDeployment() {
+ return deployment;
+ }
+
+ public void writeEngineConfig(AxisEngine engine) throws ConfigurationException {
+ // Default configuration is read-only
+ }
+}
diff --git a/axis-rt-core/src/main/java/org/apache/axis/configuration/FileProvider.java b/axis-rt-core/src/main/java/org/apache/axis/configuration/FileProvider.java
index 0c5f67460..41dcf8297 100644
--- a/axis-rt-core/src/main/java/org/apache/axis/configuration/FileProvider.java
+++ b/axis-rt-core/src/main/java/org/apache/axis/configuration/FileProvider.java
@@ -156,21 +156,39 @@ public void configureEngine(AxisEngine engine)
try {
setInputStream(new FileInputStream(configFile));
} catch (Exception e) {
- if (searchClasspath)
- setInputStream(ClassUtils.getResourceAsStream(engine.getClass(), filename, true));
+ // Ignore and continue
}
}
+ if (getInputStream() == null && searchClasspath) {
+ // Attempt to load the file from the classpath
+ setInputStream(ClassUtils.getResourceAsStream(filename, engine.getClass().getClassLoader()));
+ }
if (getInputStream() == null) {
- throw new ConfigurationException(
- Messages.getMessage("noConfigFile"));
+ // Load the default configuration. This piece of code provides compatibility with Axis 1.4,
+ // which ends up loading org/apache/axis/(client|server)/(client|server)-config.wsdd if
+ // (1) filename is (client|server)-config.wsdd;
+ // (2) the runtime type of the engine is AxisClient or AxisServer;
+ // (3) the file is not found on the file system or in the classpath.
+ String type;
+ if (filename.equals(EngineConfigurationFactoryDefault.CLIENT_CONFIG_FILE)) {
+ type = "client";
+ } else if (filename.equals(EngineConfigurationFactoryDefault.SERVER_CONFIG_FILE)) {
+ type = "server";
+ } else {
+ throw new ConfigurationException(
+ Messages.getMessage("noConfigFile"));
+ }
+ DefaultConfiguration defaultConfig = new DefaultConfiguration(type);
+ defaultConfig.configureEngine(engine);
+ deployment = defaultConfig.getDeployment();
+ } else {
+ WSDDDocument doc = new WSDDDocument(XMLUtils.
+ newDocument(getInputStream()));
+ deployment = doc.getDeployment();
+
+ deployment.configureEngine(engine);
}
-
- WSDDDocument doc = new WSDDDocument(XMLUtils.
- newDocument(getInputStream()));
- deployment = doc.getDeployment();
-
- deployment.configureEngine(engine);
engine.refreshGlobalOptions();
setInputStream(null);
diff --git a/axis-rt-core/src/main/java/org/apache/axis/utils/ClassUtils.java b/axis-rt-core/src/main/java/org/apache/axis/utils/ClassUtils.java
index 709a62653..d0ae7c1ad 100644
--- a/axis-rt-core/src/main/java/org/apache/axis/utils/ClassUtils.java
+++ b/axis-rt-core/src/main/java/org/apache/axis/utils/ClassUtils.java
@@ -161,30 +161,33 @@ public Object run() {
* Get an input stream from a named resource.
* Tries
*
- *
the classloader that loaded "clazz" first,
+ *
the thread context class loader
+ *
the given fallback classloader
*
the system classloader
- *
the class "clazz" itself
*
- * @param clazz class to use in the lookups
* @param resource resource string to look for
- * @param checkThreadContextFirst check the thread context first?
+ * @param fallbackClassLoader the class loader to use if the resource could not be loaded from
+ * the thread context class loader
* @return input stream if found, or null
*/
- public static InputStream getResourceAsStream(Class clazz, String resource, boolean checkThreadContextFirst) {
- InputStream myInputStream = null;
+ public static InputStream getResourceAsStream(String resource, ClassLoader fallbackClassLoader) {
+ InputStream is = null;
- if (checkThreadContextFirst &&
- Thread.currentThread().getContextClassLoader() != null) {
+ ClassLoader tccl = Thread.currentThread().getContextClassLoader();
+ if (tccl != null) {
// try the context class loader.
- myInputStream =
- Thread.currentThread().getContextClassLoader()
- .getResourceAsStream(resource);
+ is = tccl.getResourceAsStream(resource);
}
- if (myInputStream == null) {
+ if (is == null) {
// if not found in context class loader fall back to default
- myInputStream = getResourceAsStream(clazz, resource);
+ if (fallbackClassLoader != null) {
+ is = fallbackClassLoader.getResourceAsStream(resource);
+ } else {
+ // Try the system class loader.
+ is = ClassLoader.getSystemClassLoader().getResourceAsStream(resource);
+ }
}
- return myInputStream;
+ return is;
}
/**
diff --git a/axis-rt-transport-http-javanet/src/test/resources/client-config.wsdd b/axis-rt-transport-http-javanet/src/main/resources/META-INF/axis/default-client-config.wsdd
similarity index 70%
rename from axis-rt-transport-http-javanet/src/test/resources/client-config.wsdd
rename to axis-rt-transport-http-javanet/src/main/resources/META-INF/axis/default-client-config.wsdd
index 0b3fceae3..5b83c25bf 100644
--- a/axis-rt-transport-http-javanet/src/test/resources/client-config.wsdd
+++ b/axis-rt-transport-http-javanet/src/main/resources/META-INF/axis/default-client-config.wsdd
@@ -17,14 +17,8 @@
~ specific language governing permissions and limitations
~ under the License.
-->
-
-
-
-
-
-
-
+
-
diff --git a/axis-rt-transport-http-javanet/src/site/apt/index.apt.vm b/axis-rt-transport-http-javanet/src/site/apt/index.apt.vm
index 870f5d241..9bebad553 100644
--- a/axis-rt-transport-http-javanet/src/site/apt/index.apt.vm
+++ b/axis-rt-transport-http-javanet/src/site/apt/index.apt.vm
@@ -36,9 +36,20 @@
<<>>. However, it only works with Java 1.5 or higher because it relies on features of
the <<>> API that were not available in earlier Java versions.
- To use the java.net based HTTP transport, add <<<${project.artifactId}-${project.version}.jar>>> to the class path and set up
- <<>> with the right pivot handler for the <<>> transport, as shown in the following
+ To use the java.net based HTTP transport, add <<<${project.artifactId}-${project.version}.jar>>> to the class path.
+ If you are using the default client configuration, it will be configured automatically. If you provide your own
+ custom client configuration WSDD file, then configure the pivot handler for the <<>> transport as shown in the following
sample:
-%{snippet|id=deployment|file=${project.basedir}/src/test/resources/client-config.wsdd}
+-------------------------------------------------------------------------------------------------
+
+
+
+
+
+
+
+-------------------------------------------------------------------------------------------------
\ No newline at end of file
diff --git a/axis-rt-transport-http-javanet/src/test/java/org/apache/axis/transport/http/javanet/TestDefaultConfiguration.java b/axis-rt-transport-http-javanet/src/test/java/org/apache/axis/transport/http/javanet/TestDefaultConfiguration.java
new file mode 100644
index 000000000..31b27e59e
--- /dev/null
+++ b/axis-rt-transport-http-javanet/src/test/java/org/apache/axis/transport/http/javanet/TestDefaultConfiguration.java
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.transport.http.javanet;
+
+import junit.framework.TestCase;
+
+import org.apache.axis.Handler;
+import org.apache.axis.SimpleTargetedChain;
+import org.apache.axis.client.AxisClient;
+import org.apache.axis.configuration.DefaultConfiguration;
+
+/**
+ * Tests that {@link DefaultConfiguration} (with type client) configures the java.net
+ * transport as default HTTP transport if it is in the classpath.
+ *
+ * @author Andreas Veithen
+ */
+public class TestDefaultConfiguration extends TestCase {
+ public void test() throws Exception {
+ AxisClient client = new AxisClient(new DefaultConfiguration("client"));
+ Handler[] handlers = ((SimpleTargetedChain)client.getTransport("http")).getHandlers();
+ assertTrue(handlers[0] instanceof JavaNetHTTPSender);
+ }
+}
diff --git a/interop/src/test/resources/client-config.wsdd b/interop/src/test/resources/client-config.wsdd
deleted file mode 100644
index acf9d9c55..000000000
--- a/interop/src/test/resources/client-config.wsdd
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
From 788ee103cb45f8287fad4074d99506230b5938c7 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sun, 18 Nov 2012 09:07:40 +0000
Subject: [PATCH 040/197] Fixed a test case that didn't do what it is expected
to do because the Options class nulls out some of the entries of the args
array.
---
.../src/test/java/test/functional/TestStockSample.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/samples/stock-sample/src/test/java/test/functional/TestStockSample.java b/samples/stock-sample/src/test/java/test/functional/TestStockSample.java
index 819feb1c8..6332109ec 100644
--- a/samples/stock-sample/src/test/java/test/functional/TestStockSample.java
+++ b/samples/stock-sample/src/test/java/test/functional/TestStockSample.java
@@ -29,11 +29,14 @@ public void testStockJWS () throws Exception {
"-uuser1", "-wpass1", "XXX", "-saxis/StockQuoteService.jws" };
float val = new GetQuote().getQuote(args);
assertEquals("TestStockSample.doTestStockJWS(): stock price should be 66.25", val, 66.25, 0.01);
-
+ }
+
+ public void testStockJWSInvalidURL() throws Exception {
// This should FAIL
- args[5] = "-sjws/AltStockQuoteService.jws";
+ String[] args = { "-p", System.getProperty("test.functional.ServicePort", "8080"),
+ "-uuser1", "-wpass1", "XXX", "-sjws/StockQuoteService.jws" };
try {
- val = new GetQuote().getQuote(args);
+ new GetQuote().getQuote(args);
} catch (AxisFault e) {
// Don't print stack trace unless there is an error
// e.printStackTrace();
From 23a1c1aa9db764761e357500eb5c13561c6c401c Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sun, 18 Nov 2012 09:10:01 +0000
Subject: [PATCH 041/197] Avoid using hardcoded port numbers in unit tests (to
ensure that the build can be run concurrently with other builds).
---
pom.xml | 5 +++++
samples/mtomstub-sample/pom.xml | 5 +++++
.../src/test/java/samples/mtomstub/TestDownloadFile.java | 5 +++--
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 99a462c83..15f165cb2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -120,6 +120,11 @@
commons-io1.4
+
+ org.apache.ws.commons.axiom
+ axiom-testutils
+ 1.2.13
+
diff --git a/samples/mtomstub-sample/pom.xml b/samples/mtomstub-sample/pom.xml
index 1d11d2a06..7a46eae75 100644
--- a/samples/mtomstub-sample/pom.xml
+++ b/samples/mtomstub-sample/pom.xml
@@ -54,6 +54,11 @@
junittest
+
+ org.apache.ws.commons.axiom
+ axiom-testutils
+ test
+
diff --git a/samples/mtomstub-sample/src/test/java/samples/mtomstub/TestDownloadFile.java b/samples/mtomstub-sample/src/test/java/samples/mtomstub/TestDownloadFile.java
index 8cb3ecd8e..c09c2461f 100644
--- a/samples/mtomstub-sample/src/test/java/samples/mtomstub/TestDownloadFile.java
+++ b/samples/mtomstub-sample/src/test/java/samples/mtomstub/TestDownloadFile.java
@@ -4,6 +4,8 @@
import javax.xml.ws.Endpoint;
+import org.apache.axiom.testutils.PortAllocator;
+
import junit.framework.TestCase;
import samples.mtomstub.service.DownloadFileImpl;
import samples.mtomstub.stub.DownloadFile;
@@ -11,8 +13,7 @@
public class TestDownloadFile extends TestCase {
public void test() throws Exception {
- // TODO: allocate random port here
- String url = "http://localhost:8080/DownloadFile";
+ String url = "http://localhost:" + PortAllocator.allocatePort() + "/DownloadFile";
Endpoint endpoint = Endpoint.publish(url, new DownloadFileImpl());
DownloadFile downloadFile = new DownloadFileServiceLocator().getDownloadFilePort(new URL(url));
downloadFile.getFile().getFile().writeTo(System.out);
From 0d97d7c5045514139b980a33666e9809cb200e49 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sun, 18 Nov 2012 10:43:38 +0000
Subject: [PATCH 042/197] Downgraded animal sniffer to version 1.8 to avoid
issues on Java 5/6.
---
pom.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 15f165cb2..40636ddf1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -275,7 +275,9 @@
org.codehaus.mojoanimal-sniffer-maven-plugin
- 1.9
+
+ 1.8verify
From bbf219692d7f8a1e40d6c2435e891a179799d611 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sun, 18 Nov 2012 11:15:54 +0000
Subject: [PATCH 043/197] Created a new (intermediary) parent Maven module for
the tests and moved the interop tests.
---
pom.xml | 2 +-
{interop => tests/interop-tests}/pom.xml | 23 ++----
.../Soap12AddTestDocBindingImpl.java | 0
.../Soap12AddTestRpcBindingImpl.java | 0
.../WhiteMesaSoap12AddTestSvcTestCase.java | 0
.../assertion/Soap12TestDocBindingImpl.java | 0
.../assertion/Soap12TestRpcBindingImpl.java | 0
.../WhiteMesaSoap12TestSvcTestCase.java | 0
.../test/wsdl/terra/TerraServiceTestCase.java | 0
tests/pom.xml | 78 +++++++++++++++++++
10 files changed, 84 insertions(+), 19 deletions(-)
rename {interop => tests/interop-tests}/pom.xml (91%)
rename {interop => tests/interop-tests}/src/test/java/test/wsdl/soap12/additional/Soap12AddTestDocBindingImpl.java (100%)
rename {interop => tests/interop-tests}/src/test/java/test/wsdl/soap12/additional/Soap12AddTestRpcBindingImpl.java (100%)
rename {interop => tests/interop-tests}/src/test/java/test/wsdl/soap12/additional/WhiteMesaSoap12AddTestSvcTestCase.java (100%)
rename {interop => tests/interop-tests}/src/test/java/test/wsdl/soap12/assertion/Soap12TestDocBindingImpl.java (100%)
rename {interop => tests/interop-tests}/src/test/java/test/wsdl/soap12/assertion/Soap12TestRpcBindingImpl.java (100%)
rename {interop => tests/interop-tests}/src/test/java/test/wsdl/soap12/assertion/WhiteMesaSoap12TestSvcTestCase.java (100%)
rename {interop => tests/interop-tests}/src/test/java/test/wsdl/terra/TerraServiceTestCase.java (100%)
create mode 100644 tests/pom.xml
diff --git a/pom.xml b/pom.xml
index 40636ddf1..f4bc3d76f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -80,13 +80,13 @@
axis-wardistributionintegration
- interopinterop-mockmavensamplessoapmonitor-appletsoapmonitor-clienttcpmon
+ tests
diff --git a/interop/pom.xml b/tests/interop-tests/pom.xml
similarity index 91%
rename from interop/pom.xml
rename to tests/interop-tests/pom.xml
index 279faf982..6fabd394c 100644
--- a/interop/pom.xml
+++ b/tests/interop-tests/pom.xml
@@ -21,11 +21,11 @@
4.0.0org.apache.axis
- axis-project
+ tests1.4.1-SNAPSHOT../pom.xml
- interop
+ interop-testsInteroperability tests
@@ -67,7 +67,7 @@
generate-test-sources
- ../interop-mock/src/main/resources/wsdl/soap12-add-test.wsdl
+ ../../interop-mock/src/main/resources/wsdl/soap12-add-test.wsdlboth
@@ -87,7 +87,7 @@
generate-test-sources
- ../interop-mock/src/main/resources/wsdl/soap12-test.wsdl
+ ../../interop-mock/src/main/resources/wsdl/soap12-test.wsdlboth
@@ -107,7 +107,7 @@
generate-test-sources
- ../interop-mock/src/main/resources/wsdl/TerraService.wsdl
+ ../../interop-mock/src/main/resources/wsdl/TerraService.wsdlclienttrue
@@ -219,19 +219,6 @@
-
- maven-deploy-plugin
-
- true
-
-
-
- maven-site-plugin
-
- true
- true
-
-
diff --git a/interop/src/test/java/test/wsdl/soap12/additional/Soap12AddTestDocBindingImpl.java b/tests/interop-tests/src/test/java/test/wsdl/soap12/additional/Soap12AddTestDocBindingImpl.java
similarity index 100%
rename from interop/src/test/java/test/wsdl/soap12/additional/Soap12AddTestDocBindingImpl.java
rename to tests/interop-tests/src/test/java/test/wsdl/soap12/additional/Soap12AddTestDocBindingImpl.java
diff --git a/interop/src/test/java/test/wsdl/soap12/additional/Soap12AddTestRpcBindingImpl.java b/tests/interop-tests/src/test/java/test/wsdl/soap12/additional/Soap12AddTestRpcBindingImpl.java
similarity index 100%
rename from interop/src/test/java/test/wsdl/soap12/additional/Soap12AddTestRpcBindingImpl.java
rename to tests/interop-tests/src/test/java/test/wsdl/soap12/additional/Soap12AddTestRpcBindingImpl.java
diff --git a/interop/src/test/java/test/wsdl/soap12/additional/WhiteMesaSoap12AddTestSvcTestCase.java b/tests/interop-tests/src/test/java/test/wsdl/soap12/additional/WhiteMesaSoap12AddTestSvcTestCase.java
similarity index 100%
rename from interop/src/test/java/test/wsdl/soap12/additional/WhiteMesaSoap12AddTestSvcTestCase.java
rename to tests/interop-tests/src/test/java/test/wsdl/soap12/additional/WhiteMesaSoap12AddTestSvcTestCase.java
diff --git a/interop/src/test/java/test/wsdl/soap12/assertion/Soap12TestDocBindingImpl.java b/tests/interop-tests/src/test/java/test/wsdl/soap12/assertion/Soap12TestDocBindingImpl.java
similarity index 100%
rename from interop/src/test/java/test/wsdl/soap12/assertion/Soap12TestDocBindingImpl.java
rename to tests/interop-tests/src/test/java/test/wsdl/soap12/assertion/Soap12TestDocBindingImpl.java
diff --git a/interop/src/test/java/test/wsdl/soap12/assertion/Soap12TestRpcBindingImpl.java b/tests/interop-tests/src/test/java/test/wsdl/soap12/assertion/Soap12TestRpcBindingImpl.java
similarity index 100%
rename from interop/src/test/java/test/wsdl/soap12/assertion/Soap12TestRpcBindingImpl.java
rename to tests/interop-tests/src/test/java/test/wsdl/soap12/assertion/Soap12TestRpcBindingImpl.java
diff --git a/interop/src/test/java/test/wsdl/soap12/assertion/WhiteMesaSoap12TestSvcTestCase.java b/tests/interop-tests/src/test/java/test/wsdl/soap12/assertion/WhiteMesaSoap12TestSvcTestCase.java
similarity index 100%
rename from interop/src/test/java/test/wsdl/soap12/assertion/WhiteMesaSoap12TestSvcTestCase.java
rename to tests/interop-tests/src/test/java/test/wsdl/soap12/assertion/WhiteMesaSoap12TestSvcTestCase.java
diff --git a/interop/src/test/java/test/wsdl/terra/TerraServiceTestCase.java b/tests/interop-tests/src/test/java/test/wsdl/terra/TerraServiceTestCase.java
similarity index 100%
rename from interop/src/test/java/test/wsdl/terra/TerraServiceTestCase.java
rename to tests/interop-tests/src/test/java/test/wsdl/terra/TerraServiceTestCase.java
diff --git a/tests/pom.xml b/tests/pom.xml
new file mode 100644
index 000000000..9308a2e03
--- /dev/null
+++ b/tests/pom.xml
@@ -0,0 +1,78 @@
+
+
+
+ 4.0.0
+
+ org.apache.axis
+ axis-project
+ 1.4.1-SNAPSHOT
+ ../pom.xml
+
+ tests
+ Tests
+ pom
+
+ Root POM for the Axis (integration) tests.
+
+
+ interop-tests
+
+
+
+
+ maven-deploy-plugin
+
+ true
+
+
+
+ maven-site-plugin
+
+ true
+ true
+
+
+
+
+
+
+ apache-release
+
+
+
+
+ maven-javadoc-plugin
+
+
+ attach-javadocs
+
+ jar
+
+
+ true
+
+
+
+
+
+
+
+
+
From 2c1d55ba4979349be6c15381e9bbdccbe35647f4 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sun, 18 Nov 2012 12:12:31 +0000
Subject: [PATCH 044/197] Added some rudimentary tests to validate that we stay
compatible with Spring's JAX-RPC remoting support.
---
tests/pom.xml | 1 +
tests/spring-compat-tests/pom.xml | 146 ++++++++++++++++++
.../axis/test/spring/OrderEndpoint.java | 39 +++++
.../apache/axis/test/spring/OrderManager.java | 24 +++
.../axis/test/spring/OrderManagerBean.java | 39 +++++
.../webapp/WEB-INF/applicationContext.xml | 25 +++
.../main/webapp/WEB-INF/server-config.wsdd | 104 +++++++++++++
.../src/main/webapp/WEB-INF/web.xml | 34 ++++
.../src/main/wsdl/OrderService.wsdl | 118 ++++++++++++++
.../axis/test/spring/RemotingITCase.java | 33 ++++
.../src/test/resources/context.properties | 1 +
.../src/test/resources/context.xml | 36 +++++
12 files changed, 600 insertions(+)
create mode 100644 tests/spring-compat-tests/pom.xml
create mode 100644 tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderEndpoint.java
create mode 100644 tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManager.java
create mode 100644 tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManagerBean.java
create mode 100644 tests/spring-compat-tests/src/main/webapp/WEB-INF/applicationContext.xml
create mode 100644 tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd
create mode 100644 tests/spring-compat-tests/src/main/webapp/WEB-INF/web.xml
create mode 100644 tests/spring-compat-tests/src/main/wsdl/OrderService.wsdl
create mode 100644 tests/spring-compat-tests/src/test/java/org/apache/axis/test/spring/RemotingITCase.java
create mode 100644 tests/spring-compat-tests/src/test/resources/context.properties
create mode 100644 tests/spring-compat-tests/src/test/resources/context.xml
diff --git a/tests/pom.xml b/tests/pom.xml
index 9308a2e03..dd6769dbc 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -33,6 +33,7 @@
interop-tests
+ spring-compat-tests
diff --git a/tests/spring-compat-tests/pom.xml b/tests/spring-compat-tests/pom.xml
new file mode 100644
index 000000000..0810a5ab6
--- /dev/null
+++ b/tests/spring-compat-tests/pom.xml
@@ -0,0 +1,146 @@
+
+
+
+ 4.0.0
+
+ org.apache.axis
+ tests
+ 1.4.1-SNAPSHOT
+ ../pom.xml
+
+ spring-compat-tests
+ Spring Compatibility Tests
+
+ Contains a set of tests that check that Axis remains compatible with Spring (remoting).
+
+
+ 1.5
+
+
+
+ ${project.groupId}
+ axis-rt-core
+ ${project.version}
+
+
+ org.springframework
+ spring-remoting
+ 2.0.8
+
+
+ junit
+ junit
+ test
+
+
+
+
+
+ ${project.groupId}
+ maven-wsdl2java-plugin
+ ${project.version}
+
+
+ samples-addr
+
+ generate-sources
+
+
+ src/main/wsdl/OrderService.wsdl
+ both
+ application
+ org.apache.axis.test.spring.OrderEndpoint
+ true
+
+ ${project.build.directory}/wsdd/OrderService.wsdd
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ reserve-network-port
+
+ reserve-network-port
+
+ pre-integration-test
+
+
+ jetty.stopPort
+ test.httpPort
+
+
+
+
+
+
+ org.mortbay.jetty
+ jetty-maven-plugin
+
+ foo
+ ${jetty.stopPort}
+
+
+ ${test.httpPort}
+
+
+
+
+
+ start-jetty
+ pre-integration-test
+
+ run
+
+
+ true
+
+
+
+ stop-jetty
+ post-integration-test
+
+ stop
+
+
+
+
+
+ maven-failsafe-plugin
+
+
+
+ integration-test
+ verify
+
+
+
+ ${test.httpPort}
+
+
+
+
+
+
+
+
diff --git a/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderEndpoint.java b/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderEndpoint.java
new file mode 100644
index 000000000..29d2cfd7c
--- /dev/null
+++ b/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderEndpoint.java
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.test.spring;
+
+import java.rmi.RemoteException;
+
+import org.springframework.remoting.jaxrpc.ServletEndpointSupport;
+
+public class OrderEndpoint extends ServletEndpointSupport implements OrderManagerPortType {
+ private OrderManager orderManager;
+
+ protected void onInit() {
+ orderManager = (OrderManager)getWebApplicationContext().getBean("orderManager");
+ }
+
+ public String submitOrder(Order order) throws RemoteException {
+ return orderManager.submitOrder(order);
+ }
+
+ public Order getOrder(String orderID) throws RemoteException {
+ return orderManager.getOrder(orderID);
+ }
+}
diff --git a/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManager.java b/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManager.java
new file mode 100644
index 000000000..f4350002f
--- /dev/null
+++ b/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManager.java
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.test.spring;
+
+public interface OrderManager {
+ String submitOrder(Order order);
+ Order getOrder(String orderID);
+}
diff --git a/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManagerBean.java b/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManagerBean.java
new file mode 100644
index 000000000..bb161d345
--- /dev/null
+++ b/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManagerBean.java
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.test.spring;
+
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.concurrent.atomic.AtomicInteger;
+
+public class OrderManagerBean implements OrderManager {
+ private final AtomicInteger orderIDSeq = new AtomicInteger(10000);
+ private final Map orders = Collections.synchronizedMap(new HashMap());
+
+ public String submitOrder(Order order) {
+ String orderID = String.valueOf(orderIDSeq.incrementAndGet());
+ orders.put(orderID, order);
+ return orderID;
+ }
+
+ public Order getOrder(String orderID) {
+ return (Order)orders.get(orderID);
+ }
+}
diff --git a/tests/spring-compat-tests/src/main/webapp/WEB-INF/applicationContext.xml b/tests/spring-compat-tests/src/main/webapp/WEB-INF/applicationContext.xml
new file mode 100644
index 000000000..f356d0a1d
--- /dev/null
+++ b/tests/spring-compat-tests/src/main/webapp/WEB-INF/applicationContext.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd b/tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd
new file mode 100644
index 000000000..e1eec5c3b
--- /dev/null
+++ b/tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ http://xml.apache.org/axis/wsdd/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/spring-compat-tests/src/main/webapp/WEB-INF/web.xml b/tests/spring-compat-tests/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 000000000..44d4caea5
--- /dev/null
+++ b/tests/spring-compat-tests/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,34 @@
+
+
+
+
+ org.springframework.web.context.ContextLoaderListener
+
+
+ axis
+ org.apache.axis.transport.http.AxisServlet
+ 1
+
+
+ axis
+ /axis/*
+
+
diff --git a/tests/spring-compat-tests/src/main/wsdl/OrderService.wsdl b/tests/spring-compat-tests/src/main/wsdl/OrderService.wsdl
new file mode 100644
index 000000000..85e2bd536
--- /dev/null
+++ b/tests/spring-compat-tests/src/main/wsdl/OrderService.wsdl
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/spring-compat-tests/src/test/java/org/apache/axis/test/spring/RemotingITCase.java b/tests/spring-compat-tests/src/test/java/org/apache/axis/test/spring/RemotingITCase.java
new file mode 100644
index 000000000..fb3840868
--- /dev/null
+++ b/tests/spring-compat-tests/src/test/java/org/apache/axis/test/spring/RemotingITCase.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.test.spring;
+
+import junit.framework.TestCase;
+
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class RemotingITCase extends TestCase {
+ public void test() {
+ ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("context.xml");
+ OrderManager orderManager = (OrderManager)context.getBean("orderManager");
+ String orderID = orderManager.submitOrder(new Order("1234", new OrderItem[] { new OrderItem("2345", 2) }));
+ System.out.println(orderManager.getOrder(orderID));
+ context.close();
+ }
+}
diff --git a/tests/spring-compat-tests/src/test/resources/context.properties b/tests/spring-compat-tests/src/test/resources/context.properties
new file mode 100644
index 000000000..9be03fdde
--- /dev/null
+++ b/tests/spring-compat-tests/src/test/resources/context.properties
@@ -0,0 +1 @@
+test.httpPort=8080
diff --git a/tests/spring-compat-tests/src/test/resources/context.xml b/tests/spring-compat-tests/src/test/resources/context.xml
new file mode 100644
index 000000000..87d0a0da6
--- /dev/null
+++ b/tests/spring-compat-tests/src/test/resources/context.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From c94e9d8a70c65fef00a1f557c070704d8a594b10 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Mon, 3 Dec 2012 18:08:40 +0000
Subject: [PATCH 045/197] Specify the version of the maven-shade-plugin in the
global pluginManagement.
---
axis/pom.xml | 1 -
pom.xml | 4 ++++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/axis/pom.xml b/axis/pom.xml
index 6c7892ee0..e1ac11092 100644
--- a/axis/pom.xml
+++ b/axis/pom.xml
@@ -76,7 +76,6 @@
maven-shade-plugin
- 2.0package
diff --git a/pom.xml b/pom.xml
index f4bc3d76f..f259a6eae 100644
--- a/pom.xml
+++ b/pom.xml
@@ -217,6 +217,10 @@
gmaven-plugin1.2
+
+ maven-shade-plugin
+ 2.0
+
From 57746fc4f4a98dde94459f5af3af5a74104d5b8d Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Mon, 3 Dec 2012 18:34:15 +0000
Subject: [PATCH 046/197] Duplicate code reduction.
---
.../deployment/wsdd/WSDDArrayMapping.java | 8 +++
.../axis/deployment/wsdd/WSDDDeployment.java | 55 ++---------------
.../axis/deployment/wsdd/WSDDService.java | 60 +++----------------
.../axis/deployment/wsdd/WSDDTypeMapping.java | 50 +++++++++++++++-
4 files changed, 70 insertions(+), 103 deletions(-)
diff --git a/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDArrayMapping.java b/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDArrayMapping.java
index 135de6971..7ce628967 100644
--- a/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDArrayMapping.java
+++ b/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDArrayMapping.java
@@ -21,6 +21,8 @@
import org.w3c.dom.Element;
import org.xml.sax.helpers.AttributesImpl;
import org.apache.axis.encoding.SerializationContext;
+import org.apache.axis.encoding.SerializerFactory;
+import org.apache.axis.encoding.ser.ArraySerializerFactory;
import org.apache.axis.utils.XMLUtils;
@@ -82,6 +84,12 @@ public void writeToContext(SerializationContext context) throws IOException {
context.startElement(QNAME_ARRAYMAPPING, attrs);
context.endElement();
}
+
+ void setupSerializer(SerializerFactory ser) {
+ if (ser instanceof ArraySerializerFactory) {
+ ((ArraySerializerFactory)ser).setComponentType(getInnerType());
+ }
+ }
}
diff --git a/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDDeployment.java b/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDDeployment.java
index 89e4f497d..7dbc97cb4 100644
--- a/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDDeployment.java
+++ b/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDDeployment.java
@@ -21,15 +21,10 @@
import org.apache.axis.Handler;
import org.apache.axis.WSDDEngineConfiguration;
import org.apache.axis.components.logger.LogFactory;
-import org.apache.axis.encoding.DeserializerFactory;
import org.apache.axis.encoding.SerializationContext;
-import org.apache.axis.encoding.SerializerFactory;
import org.apache.axis.encoding.TypeMapping;
import org.apache.axis.encoding.TypeMappingRegistry;
import org.apache.axis.encoding.TypeMappingRegistryImpl;
-import org.apache.axis.encoding.ser.ArraySerializerFactory;
-import org.apache.axis.encoding.ser.BaseDeserializerFactory;
-import org.apache.axis.encoding.ser.BaseSerializerFactory;
import org.apache.axis.handlers.soap.SOAPService;
import org.apache.axis.utils.Messages;
import org.apache.commons.logging.Log;
@@ -264,53 +259,11 @@ public void deployToRegistry(WSDDDeployment target)
private void deployMapping(WSDDTypeMapping mapping)
throws WSDDException {
- try {
- String encodingStyle = mapping.getEncodingStyle();
- if (encodingStyle == null) {
- encodingStyle = Constants.URI_DEFAULT_SOAP_ENC;
- }
- TypeMapping tm = tmr.getOrMakeTypeMapping(encodingStyle);
- SerializerFactory ser = null;
- DeserializerFactory deser = null;
- // Try to construct a serializerFactory by introspecting for the
- // following:
- // public static create(Class javaType, QName xmlType)
- // public (Class javaType, QName xmlType)
- // public ()
- //
- // The BaseSerializerFactory createFactory() method is a utility
- // that does this for us.
- //log.debug("start creating sf and df");
- if (mapping.getSerializerName() != null &&
- !mapping.getSerializerName().equals("")) {
- ser = BaseSerializerFactory.createFactory(mapping.getSerializer(),
- mapping.getLanguageSpecificType(),
- mapping.getQName());
- }
-
- if ((mapping instanceof WSDDArrayMapping) && (ser instanceof ArraySerializerFactory)) {
- WSDDArrayMapping am = (WSDDArrayMapping) mapping;
- ArraySerializerFactory factory = (ArraySerializerFactory) ser;
- factory.setComponentType(am.getInnerType());
- }
-
- //log.debug("set ser factory");
-
- if (mapping.getDeserializerName() != null &&
- !mapping.getDeserializerName().equals("")) {
- deser = BaseDeserializerFactory.createFactory(mapping.getDeserializer(),
- mapping.getLanguageSpecificType(),
- mapping.getQName());
- }
- //log.debug("set dser factory");
- tm.register(mapping.getLanguageSpecificType(), mapping.getQName(), ser, deser);
- //log.debug("registered");
- } catch (ClassNotFoundException e) {
- log.error(Messages.getMessage("unabletoDeployTypemapping00", mapping.getQName().toString()), e);
- throw new WSDDNonFatalException(e);
- } catch (Exception e) {
- throw new WSDDException(e);
+ String encodingStyle = mapping.getEncodingStyle();
+ if (encodingStyle == null) {
+ encodingStyle = Constants.URI_DEFAULT_SOAP_ENC;
}
+ mapping.registerTo(tmr.getOrMakeTypeMapping(encodingStyle));
}
public void writeToContext(SerializationContext context)
diff --git a/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDService.java b/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDService.java
index c770e1a7e..372c50a99 100644
--- a/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDService.java
+++ b/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDService.java
@@ -29,15 +29,10 @@
import org.apache.axis.constants.Use;
import org.apache.axis.description.JavaServiceDesc;
import org.apache.axis.description.ServiceDesc;
-import org.apache.axis.encoding.DeserializerFactory;
import org.apache.axis.encoding.SerializationContext;
-import org.apache.axis.encoding.SerializerFactory;
import org.apache.axis.encoding.TypeMapping;
import org.apache.axis.encoding.TypeMappingRegistry;
import org.apache.axis.encoding.TypeMappingRegistryImpl;
-import org.apache.axis.encoding.ser.ArraySerializerFactory;
-import org.apache.axis.encoding.ser.BaseDeserializerFactory;
-import org.apache.axis.encoding.ser.BaseSerializerFactory;
import org.apache.axis.handlers.HandlerInfoChainFactory;
import org.apache.axis.handlers.soap.SOAPService;
import org.apache.axis.providers.java.JavaProvider;
@@ -515,53 +510,16 @@ public void deployTypeMapping(WSDDTypeMapping mapping)
if (tmr == null) {
createTMR();
}
- try {
- // Get the encoding style from the mapping, if it isn't set
- // use the use of the service to map doc/lit or rpc/enc
- String encodingStyle = mapping.getEncodingStyle();
- if (encodingStyle == null) {
- encodingStyle = use.getEncoding();
- }
- TypeMapping tm = tmr.getOrMakeTypeMapping(encodingStyle);
- desc.setTypeMappingRegistry(tmr);
- desc.setTypeMapping(tm);
-
- SerializerFactory ser = null;
- DeserializerFactory deser = null;
-
- // Try to construct a serializerFactory by introspecting for the
- // following:
- // public static create(Class javaType, QName xmlType)
- // public (Class javaType, QName xmlType)
- // public ()
- //
- // The BaseSerializerFactory createFactory() method is a utility
- // that does this for us.
- if (mapping.getSerializerName() != null &&
- !mapping.getSerializerName().equals("")) {
- ser = BaseSerializerFactory.createFactory(mapping.getSerializer(),
- mapping.getLanguageSpecificType(),
- mapping.getQName());
- }
- if (mapping instanceof WSDDArrayMapping && ser instanceof ArraySerializerFactory) {
- WSDDArrayMapping am = (WSDDArrayMapping) mapping;
- ArraySerializerFactory factory = (ArraySerializerFactory) ser;
- factory.setComponentType(am.getInnerType());
- }
-
- if (mapping.getDeserializerName() != null &&
- !mapping.getDeserializerName().equals("")) {
- deser = BaseDeserializerFactory.createFactory(mapping.getDeserializer(),
- mapping.getLanguageSpecificType(),
- mapping.getQName());
- }
- tm.register( mapping.getLanguageSpecificType(), mapping.getQName(), ser, deser);
- } catch (ClassNotFoundException e) {
- log.error(Messages.getMessage("unabletoDeployTypemapping00", mapping.getQName().toString()), e);
- throw new WSDDNonFatalException(e);
- } catch (Exception e) {
- throw new WSDDException(e);
+ // Get the encoding style from the mapping, if it isn't set
+ // use the use of the service to map doc/lit or rpc/enc
+ String encodingStyle = mapping.getEncodingStyle();
+ if (encodingStyle == null) {
+ encodingStyle = use.getEncoding();
}
+ TypeMapping tm = tmr.getOrMakeTypeMapping(encodingStyle);
+ desc.setTypeMappingRegistry(tmr);
+ desc.setTypeMapping(tm);
+ mapping.registerTo(tm);
}
/**
diff --git a/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDTypeMapping.java b/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDTypeMapping.java
index e2d6af3bd..3afc08774 100644
--- a/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDTypeMapping.java
+++ b/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDTypeMapping.java
@@ -16,11 +16,18 @@
package org.apache.axis.deployment.wsdd;
import org.apache.axis.Constants;
+import org.apache.axis.components.logger.LogFactory;
+import org.apache.axis.encoding.DeserializerFactory;
import org.apache.axis.encoding.SerializationContext;
+import org.apache.axis.encoding.SerializerFactory;
+import org.apache.axis.encoding.TypeMapping;
+import org.apache.axis.encoding.ser.BaseDeserializerFactory;
+import org.apache.axis.encoding.ser.BaseSerializerFactory;
import org.apache.axis.utils.ClassUtils;
import org.apache.axis.utils.JavaUtils;
import org.apache.axis.utils.Messages;
import org.apache.axis.utils.XMLUtils;
+import org.apache.commons.logging.Log;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import org.xml.sax.helpers.AttributesImpl;
@@ -28,13 +35,14 @@
import javax.xml.namespace.QName;
import java.io.IOException;
-
/**
*
*/
public class WSDDTypeMapping
extends WSDDElement
{
+ private static final Log log = LogFactory.getLog(WSDDTypeMapping.class.getName());
+
protected QName qname = null;
protected String serializer = null;
protected String deserializer = null;
@@ -280,6 +288,46 @@ public void setDeserializer(String deser)
{
deserializer = deser;
}
+
+ void registerTo(TypeMapping tm) throws WSDDException {
+ try {
+ SerializerFactory ser = null;
+ DeserializerFactory deser = null;
+
+ // Try to construct a serializerFactory by introspecting for the
+ // following:
+ // public static create(Class javaType, QName xmlType)
+ // public (Class javaType, QName xmlType)
+ // public ()
+ //
+ // The BaseSerializerFactory createFactory() method is a utility
+ // that does this for us.
+ if (getSerializerName() != null &&
+ !getSerializerName().equals("")) {
+ ser = BaseSerializerFactory.createFactory(getSerializer(),
+ getLanguageSpecificType(),
+ getQName());
+ }
+
+ setupSerializer(ser);
+
+ if (getDeserializerName() != null &&
+ !getDeserializerName().equals("")) {
+ deser = BaseDeserializerFactory.createFactory(getDeserializer(),
+ getLanguageSpecificType(),
+ getQName());
+ }
+ tm.register(getLanguageSpecificType(), getQName(), ser, deser);
+ } catch (ClassNotFoundException e) {
+ log.error(Messages.getMessage("unabletoDeployTypemapping00", getQName().toString()), e);
+ throw new WSDDNonFatalException(e);
+ } catch (Exception e) {
+ throw new WSDDException(e);
+ }
+ }
+
+ void setupSerializer(SerializerFactory ser) {
+ }
}
From 6d37381ab7fb444d14b0eb8cf01c9eeb4733f9b8 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Mon, 3 Dec 2012 20:00:01 +0000
Subject: [PATCH 047/197] Removed unused property.
---
.../axis/deployment/wsdd/WSDDTypeMapping.java | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDTypeMapping.java b/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDTypeMapping.java
index 3afc08774..4b314193c 100644
--- a/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDTypeMapping.java
+++ b/axis-rt-core/src/main/java/org/apache/axis/deployment/wsdd/WSDDTypeMapping.java
@@ -47,7 +47,6 @@ public class WSDDTypeMapping
protected String serializer = null;
protected String deserializer = null;
protected QName typeQName = null;
- protected String ref = null;
protected String encodingStyle = null;
/**
@@ -115,24 +114,6 @@ protected QName getElementName() {
return QNAME_TYPEMAPPING;
}
- /**
- *
- * @return XXX
- */
- public String getRef()
- {
- return ref;
- }
-
- /**
- *
- * @param ref XXX
- */
- public void setRef(String ref)
- {
- this.ref = ref;
- }
-
/**
*
* @return XXX
From 463b98276d11ab64c13f1287fdbb8f887c4ddeab Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Tue, 4 Dec 2012 17:16:02 +0000
Subject: [PATCH 048/197] Created a branch to experiment with EMF.
From 3a4f08ef9dbe25baea3dd488adc8a822aac8f49c Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Tue, 4 Dec 2012 18:44:10 +0000
Subject: [PATCH 049/197] Some initial code with an EMF model for WSDD files.
---
axis-model/model/wsdd.ecore | 82 ++
axis-model/model/wsdd.genmodel | 57 +
axis-model/pom.xml | 94 ++
.../apache/axis/model/wsdd/ArrayMapping.java | 53 +
.../apache/axis/model/wsdd/BeanMapping.java | 21 +
.../axis/model/wsdd/DeployableItem.java | 54 +
.../apache/axis/model/wsdd/Deployment.java | 47 +
.../org/apache/axis/model/wsdd/Mapping.java | 109 ++
.../org/apache/axis/model/wsdd/Parameter.java | 81 ++
.../org/apache/axis/model/wsdd/Service.java | 185 +++
.../org/apache/axis/model/wsdd/Style.java | 205 ++++
.../apache/axis/model/wsdd/TypeMapping.java | 80 ++
.../java/org/apache/axis/model/wsdd/Use.java | 151 +++
.../apache/axis/model/wsdd/WSDDFactory.java | 91 ++
.../apache/axis/model/wsdd/WSDDPackage.java | 1026 +++++++++++++++++
.../model/wsdd/impl/ArrayMappingImpl.java | 153 +++
.../axis/model/wsdd/impl/BeanMappingImpl.java | 42 +
.../model/wsdd/impl/DeployableItemImpl.java | 155 +++
.../axis/model/wsdd/impl/DeploymentImpl.java | 149 +++
.../axis/model/wsdd/impl/MappingImpl.java | 257 +++++
.../axis/model/wsdd/impl/ParameterImpl.java | 206 ++++
.../axis/model/wsdd/impl/ServiceImpl.java | 426 +++++++
.../axis/model/wsdd/impl/TypeMappingImpl.java | 204 ++++
.../axis/model/wsdd/impl/WSDDFactoryImpl.java | 225 ++++
.../axis/model/wsdd/impl/WSDDPackageImpl.java | 616 ++++++++++
pom.xml | 1 +
26 files changed, 4770 insertions(+)
create mode 100644 axis-model/model/wsdd.ecore
create mode 100644 axis-model/model/wsdd.genmodel
create mode 100644 axis-model/pom.xml
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/BeanMapping.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Parameter.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/TypeMapping.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/BeanMappingImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ParameterImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/TypeMappingImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
diff --git a/axis-model/model/wsdd.ecore b/axis-model/model/wsdd.ecore
new file mode 100644
index 000000000..30017d774
--- /dev/null
+++ b/axis-model/model/wsdd.ecore
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/axis-model/model/wsdd.genmodel b/axis-model/model/wsdd.genmodel
new file mode 100644
index 000000000..ba5b43d6b
--- /dev/null
+++ b/axis-model/model/wsdd.genmodel
@@ -0,0 +1,57 @@
+
+
+ wsdd.ecore
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/axis-model/pom.xml b/axis-model/pom.xml
new file mode 100644
index 000000000..77767cce7
--- /dev/null
+++ b/axis-model/pom.xml
@@ -0,0 +1,94 @@
+
+
+
+ 4.0.0
+
+ org.apache.axis
+ axis-project
+ 1.4.1-SNAPSHOT
+ ../pom.xml
+
+ axis-model
+ EMF Model for WSDD Files
+
+
+ org.eclipse.emf
+ common
+ 2.2.3
+
+
+ org.eclipse.emf
+ ecore
+ 2.2.3
+
+
+ org.eclipse.emf
+ ecore-xmi
+ 2.2.3
+
+
+
+
+
+
+ maven-shade-plugin
+
+
+ package
+
+ shade
+
+
+
+
+ org.eclipse.*:*
+
+
+
+
+ org.eclipse.*:*
+
+ **/*.class
+
+
+
+ true
+
+
+ org.eclipse.emf
+ org.apache.axis.model
+
+
+ org.eclipse.xsd
+ org.apache.axis.model.xsd
+
+
+ ${project.build.directory}/dependency-reduced-pom.xml
+
+
+
+
+
+
+
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java
new file mode 100644
index 000000000..c3895c6f1
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java
@@ -0,0 +1,53 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+
+/**
+ *
+ * A representation of the model object 'Array Mapping'.
+ *
+ *
+ *
+ *
+ *
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getMapping()
+ * @model abstract="true"
+ * @generated
+ */
+public interface Mapping extends EObject {
+ /**
+ * Returns the value of the 'Qname' attribute.
+ *
+ *
+ * If the meaning of the 'Qname' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Qname' attribute.
+ * @see #setQname(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getMapping_Qname()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getQname();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Mapping#getQname Qname}' attribute.
+ *
+ *
+ * @param value the new value of the 'Qname' attribute.
+ * @see #getQname()
+ * @generated
+ */
+ void setQname(Object value);
+
+ /**
+ * Returns the value of the 'Type' attribute.
+ *
+ *
+ * If the meaning of the 'Type' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Type' attribute.
+ * @see #setType(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getMapping_Type()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getType();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Mapping#getType Type}' attribute.
+ *
+ *
+ * @param value the new value of the 'Type' attribute.
+ * @see #getType()
+ * @generated
+ */
+ void setType(Object value);
+
+ /**
+ * Returns the value of the 'Encoding Style' attribute.
+ * The default value is "".
+ *
+ *
+ * If the meaning of the 'Encoding Style' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Encoding Style' attribute.
+ * @see #setEncodingStyle(String)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getMapping_EncodingStyle()
+ * @model default=""
+ * @generated
+ */
+ String getEncodingStyle();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Mapping#getEncodingStyle Encoding Style}' attribute.
+ *
+ *
+ * @param value the new value of the 'Encoding Style' attribute.
+ * @see #getEncodingStyle()
+ * @generated
+ */
+ void setEncodingStyle(String value);
+
+} // Mapping
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Parameter.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Parameter.java
new file mode 100644
index 000000000..267d80ed8
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Parameter.java
@@ -0,0 +1,81 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * A representation of the model object 'Parameter'.
+ *
+ *
+ *
+ *
+ *
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getParameter()
+ * @model
+ * @generated
+ */
+public interface Parameter extends EObject {
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getParameter_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Parameter#getName Name}' attribute.
+ *
+ *
+ * @param value the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Value' attribute.
+ *
+ *
+ * If the meaning of the 'Value' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Value' attribute.
+ * @see #setValue(String)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getParameter_Value()
+ * @model
+ * @generated
+ */
+ String getValue();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Parameter#getValue Value}' attribute.
+ *
+ *
+ * @param value the new value of the 'Value' attribute.
+ * @see #getValue()
+ * @generated
+ */
+ void setValue(String value);
+
+} // Parameter
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
new file mode 100644
index 000000000..90fc19a10
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
@@ -0,0 +1,185 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ *
+ * A representation of the model object 'Service'.
+ *
+ *
+ *
+ *
+ *
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getService()
+ * @model
+ * @generated
+ */
+public interface Service extends DeployableItem {
+ /**
+ * Returns the value of the 'Provider' attribute.
+ *
+ *
+ * If the meaning of the 'Provider' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Provider' attribute.
+ * @see #setProvider(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getService_Provider()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getProvider();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Service#getProvider Provider}' attribute.
+ *
+ *
+ * @param value the new value of the 'Provider' attribute.
+ * @see #getProvider()
+ * @generated
+ */
+ void setProvider(Object value);
+
+ /**
+ * Returns the value of the 'Use' attribute.
+ * The literals are from the enumeration {@link org.apache.axis.model.wsdd.Use}.
+ *
+ *
+ * If the meaning of the 'Use' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Use' attribute.
+ * @see org.apache.axis.model.wsdd.Use
+ * @see #setUse(Use)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getService_Use()
+ * @model
+ * @generated
+ */
+ Use getUse();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Service#getUse Use}' attribute.
+ *
+ *
+ * @param value the new value of the 'Use' attribute.
+ * @see org.apache.axis.model.wsdd.Use
+ * @see #getUse()
+ * @generated
+ */
+ void setUse(Use value);
+
+ /**
+ * Returns the value of the 'Style' attribute.
+ * The literals are from the enumeration {@link org.apache.axis.model.wsdd.Style}.
+ *
+ *
+ * If the meaning of the 'Style' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Style' attribute.
+ * @see org.apache.axis.model.wsdd.Style
+ * @see #setStyle(Style)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getService_Style()
+ * @model
+ * @generated
+ */
+ Style getStyle();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Service#getStyle Style}' attribute.
+ *
+ *
+ * @param value the new value of the 'Style' attribute.
+ * @see org.apache.axis.model.wsdd.Style
+ * @see #getStyle()
+ * @generated
+ */
+ void setStyle(Style value);
+
+ /**
+ * Returns the value of the 'Parameters' containment reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.Parameter}.
+ *
+ *
+ * If the meaning of the 'Parameters' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Parameters' containment reference list.
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getService_Parameters()
+ * @model type="org.apache.axis.model.wsdd.Parameter" containment="true"
+ * @generated
+ */
+ EList getParameters();
+
+ /**
+ * Returns the value of the 'Type Mappings' containment reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.TypeMapping}.
+ *
+ *
+ * If the meaning of the 'Type Mappings' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Type Mappings' containment reference list.
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getService_TypeMappings()
+ * @model type="org.apache.axis.model.wsdd.TypeMapping" containment="true"
+ * extendedMetaData="kind='element' name='typeMapping' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList getTypeMappings();
+
+ /**
+ * Returns the value of the 'Bean Mappings' containment reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.BeanMapping}.
+ *
+ *
+ * If the meaning of the 'Bean Mappings' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Bean Mappings' containment reference list.
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getService_BeanMappings()
+ * @model type="org.apache.axis.model.wsdd.BeanMapping" containment="true"
+ * extendedMetaData="kind='element' name='beanMapping' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList getBeanMappings();
+
+ /**
+ * Returns the value of the 'Array Mappings' containment reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.ArrayMapping}.
+ *
+ *
+ * If the meaning of the 'Array Mappings' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Array Mappings' containment reference list.
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getService_ArrayMappings()
+ * @model type="org.apache.axis.model.wsdd.ArrayMapping" containment="true"
+ * extendedMetaData="kind='element' name='arrayMapping' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList getArrayMappings();
+
+} // Service
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java
new file mode 100644
index 000000000..6f9593371
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java
@@ -0,0 +1,205 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.AbstractEnumerator;
+
+/**
+ *
+ * A representation of the literals of the enumeration 'Style',
+ * and utility methods for working with them.
+ *
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getStyle()
+ * @model
+ * @generated
+ */
+public final class Style extends AbstractEnumerator {
+ /**
+ * The 'RPC' literal value.
+ *
+ *
+ * If the meaning of 'RPC' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @see #RPC_LITERAL
+ * @model literal="rpc"
+ * @generated
+ * @ordered
+ */
+ public static final int RPC = 0;
+
+ /**
+ * The 'DOCUMENT' literal value.
+ *
+ *
+ * If the meaning of 'DOCUMENT' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @see #DOCUMENT_LITERAL
+ * @model literal="document"
+ * @generated
+ * @ordered
+ */
+ public static final int DOCUMENT = 1;
+
+ /**
+ * The 'WRAPPED' literal value.
+ *
+ *
+ * If the meaning of 'WRAPPED' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @see #WRAPPED_LITERAL
+ * @model literal="wrapped"
+ * @generated
+ * @ordered
+ */
+ public static final int WRAPPED = 2;
+
+ /**
+ * The 'MESSAGE' literal value.
+ *
+ *
+ * If the meaning of 'MESSAGE' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @see #MESSAGE_LITERAL
+ * @model literal="message"
+ * @generated
+ * @ordered
+ */
+ public static final int MESSAGE = 3;
+
+ /**
+ * The 'RPC' literal object.
+ *
+ *
+ * @see #RPC
+ * @generated
+ * @ordered
+ */
+ public static final Style RPC_LITERAL = new Style(RPC, "RPC", "rpc");
+
+ /**
+ * The 'DOCUMENT' literal object.
+ *
+ *
+ * @see #DOCUMENT
+ * @generated
+ * @ordered
+ */
+ public static final Style DOCUMENT_LITERAL = new Style(DOCUMENT, "DOCUMENT", "document");
+
+ /**
+ * The 'WRAPPED' literal object.
+ *
+ *
+ * @see #WRAPPED
+ * @generated
+ * @ordered
+ */
+ public static final Style WRAPPED_LITERAL = new Style(WRAPPED, "WRAPPED", "wrapped");
+
+ /**
+ * The 'MESSAGE' literal object.
+ *
+ *
+ * @see #MESSAGE
+ * @generated
+ * @ordered
+ */
+ public static final Style MESSAGE_LITERAL = new Style(MESSAGE, "MESSAGE", "message");
+
+ /**
+ * An array of all the 'Style' enumerators.
+ *
+ *
+ * @generated
+ */
+ private static final Style[] VALUES_ARRAY =
+ new Style[] {
+ RPC_LITERAL,
+ DOCUMENT_LITERAL,
+ WRAPPED_LITERAL,
+ MESSAGE_LITERAL,
+ };
+
+ /**
+ * A public read-only list of all the 'Style' enumerators.
+ *
+ *
+ * @generated
+ */
+ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the 'Style' literal with the specified literal value.
+ *
+ *
+ * @generated
+ */
+ public static Style get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ Style result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the 'Style' literal with the specified name.
+ *
+ *
+ * @generated
+ */
+ public static Style getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ Style result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the 'Style' literal with the specified integer value.
+ *
+ *
+ * @generated
+ */
+ public static Style get(int value) {
+ switch (value) {
+ case RPC: return RPC_LITERAL;
+ case DOCUMENT: return DOCUMENT_LITERAL;
+ case WRAPPED: return WRAPPED_LITERAL;
+ case MESSAGE: return MESSAGE_LITERAL;
+ }
+ return null;
+ }
+
+ /**
+ * Only this class can construct instances.
+ *
+ *
+ * @generated
+ */
+ private Style(int value, String name, String literal) {
+ super(value, name, literal);
+ }
+
+} //Style
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/TypeMapping.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/TypeMapping.java
new file mode 100644
index 000000000..9df832e05
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/TypeMapping.java
@@ -0,0 +1,80 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+
+/**
+ *
+ * A representation of the model object 'Type Mapping'.
+ *
+ *
+ *
+ *
+ *
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getTypeMapping()
+ * @model
+ * @generated
+ */
+public interface TypeMapping extends Mapping {
+ /**
+ * Returns the value of the 'Serializer' attribute.
+ *
+ *
+ * If the meaning of the 'Serializer' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Serializer' attribute.
+ * @see #setSerializer(String)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getTypeMapping_Serializer()
+ * @model
+ * @generated
+ */
+ String getSerializer();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.TypeMapping#getSerializer Serializer}' attribute.
+ *
+ *
+ * @param value the new value of the 'Serializer' attribute.
+ * @see #getSerializer()
+ * @generated
+ */
+ void setSerializer(String value);
+
+ /**
+ * Returns the value of the 'Deserializer' attribute.
+ *
+ *
+ * If the meaning of the 'Deserializer' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Deserializer' attribute.
+ * @see #setDeserializer(String)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getTypeMapping_Deserializer()
+ * @model
+ * @generated
+ */
+ String getDeserializer();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.TypeMapping#getDeserializer Deserializer}' attribute.
+ *
+ *
+ * @param value the new value of the 'Deserializer' attribute.
+ * @see #getDeserializer()
+ * @generated
+ */
+ void setDeserializer(String value);
+
+} // TypeMapping
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
new file mode 100644
index 000000000..41e1245bd
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
@@ -0,0 +1,151 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.AbstractEnumerator;
+
+/**
+ *
+ * A representation of the literals of the enumeration 'Use',
+ * and utility methods for working with them.
+ *
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getUse()
+ * @model
+ * @generated
+ */
+public final class Use extends AbstractEnumerator {
+ /**
+ * The 'LITERAL' literal value.
+ *
+ *
+ * If the meaning of 'LITERAL' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @see #LITERAL_LITERAL
+ * @model literal="literal"
+ * @generated
+ * @ordered
+ */
+ public static final int LITERAL = 0;
+
+ /**
+ * The 'ENCODED' literal value.
+ *
+ *
+ * If the meaning of 'ENCODED' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @see #ENCODED_LITERAL
+ * @model literal="encoded"
+ * @generated
+ * @ordered
+ */
+ public static final int ENCODED = 1;
+
+ /**
+ * The 'LITERAL' literal object.
+ *
+ *
+ * @see #LITERAL
+ * @generated
+ * @ordered
+ */
+ public static final Use LITERAL_LITERAL = new Use(LITERAL, "LITERAL", "literal");
+
+ /**
+ * The 'ENCODED' literal object.
+ *
+ *
+ * @see #ENCODED
+ * @generated
+ * @ordered
+ */
+ public static final Use ENCODED_LITERAL = new Use(ENCODED, "ENCODED", "encoded");
+
+ /**
+ * An array of all the 'Use' enumerators.
+ *
+ *
+ * @generated
+ */
+ private static final Use[] VALUES_ARRAY =
+ new Use[] {
+ LITERAL_LITERAL,
+ ENCODED_LITERAL,
+ };
+
+ /**
+ * A public read-only list of all the 'Use' enumerators.
+ *
+ *
+ * @generated
+ */
+ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the 'Use' literal with the specified literal value.
+ *
+ *
+ * @generated
+ */
+ public static Use get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ Use result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the 'Use' literal with the specified name.
+ *
+ *
+ * @generated
+ */
+ public static Use getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ Use result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the 'Use' literal with the specified integer value.
+ *
+ *
+ * @generated
+ */
+ public static Use get(int value) {
+ switch (value) {
+ case LITERAL: return LITERAL_LITERAL;
+ case ENCODED: return ENCODED_LITERAL;
+ }
+ return null;
+ }
+
+ /**
+ * Only this class can construct instances.
+ *
+ *
+ * @generated
+ */
+ private Use(int value, String name, String literal) {
+ super(value, name, literal);
+ }
+
+} //Use
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
new file mode 100644
index 000000000..2350e9314
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
@@ -0,0 +1,91 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ *
+ * The Factory for the model.
+ * It provides a create method for each non-abstract class of the model.
+ *
+ * @see org.apache.axis.model.wsdd.WSDDPackage
+ * @generated
+ */
+public interface WSDDFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ *
+ *
+ * @generated
+ */
+ WSDDFactory eINSTANCE = org.apache.axis.model.wsdd.impl.WSDDFactoryImpl.init();
+
+ /**
+ * Returns a new object of class 'Parameter'.
+ *
+ *
+ * @return a new object of class 'Parameter'.
+ * @generated
+ */
+ Parameter createParameter();
+
+ /**
+ * Returns a new object of class 'Type Mapping'.
+ *
+ *
+ * @return a new object of class 'Type Mapping'.
+ * @generated
+ */
+ TypeMapping createTypeMapping();
+
+ /**
+ * Returns a new object of class 'Array Mapping'.
+ *
+ *
+ * @return a new object of class 'Array Mapping'.
+ * @generated
+ */
+ ArrayMapping createArrayMapping();
+
+ /**
+ * Returns a new object of class 'Bean Mapping'.
+ *
+ *
+ * @return a new object of class 'Bean Mapping'.
+ * @generated
+ */
+ BeanMapping createBeanMapping();
+
+ /**
+ * Returns a new object of class 'Service'.
+ *
+ *
+ * @return a new object of class 'Service'.
+ * @generated
+ */
+ Service createService();
+
+ /**
+ * Returns a new object of class 'Deployment'.
+ *
+ *
+ * @return a new object of class 'Deployment'.
+ * @generated
+ */
+ Deployment createDeployment();
+
+ /**
+ * Returns the package supported by this factory.
+ *
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ WSDDPackage getWSDDPackage();
+
+} //WSDDFactory
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java
new file mode 100644
index 000000000..3d9af2805
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java
@@ -0,0 +1,1026 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ *
+ * The Package for the model.
+ * It contains accessors for the meta objects to represent
+ *
+ *
each class,
+ *
each feature of each class,
+ *
each enum,
+ *
and each data type
+ *
+ *
+ * @see org.apache.axis.model.wsdd.WSDDFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface WSDDPackage extends EPackage {
+ /**
+ * The package name.
+ *
+ *
+ * @generated
+ */
+ String eNAME = "wsdd";
+
+ /**
+ * The package namespace URI.
+ *
+ *
+ * @generated
+ */
+ String eNS_URI = "http://xml.apache.org/axis/wsdd/";
+
+ /**
+ * The package namespace name.
+ *
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "wsdd";
+
+ /**
+ * The singleton instance of the package.
+ *
+ *
+ * @generated
+ */
+ WSDDPackage eINSTANCE = org.apache.axis.model.wsdd.impl.WSDDPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.ParameterImpl Parameter}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ParameterImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameter()
+ * @generated
+ */
+ int PARAMETER = 0;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int PARAMETER__NAME = 0;
+
+ /**
+ * The feature id for the 'Value' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int PARAMETER__VALUE = 1;
+
+ /**
+ * The number of structural features of the 'Parameter' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int PARAMETER_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.MappingImpl Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.MappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getMapping()
+ * @generated
+ */
+ int MAPPING = 1;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int MAPPING__QNAME = 0;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int MAPPING__TYPE = 1;
+
+ /**
+ * The feature id for the 'Encoding Style' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int MAPPING__ENCODING_STYLE = 2;
+
+ /**
+ * The number of structural features of the 'Mapping' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int MAPPING_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.TypeMappingImpl Type Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.TypeMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getTypeMapping()
+ * @generated
+ */
+ int TYPE_MAPPING = 2;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int TYPE_MAPPING__QNAME = MAPPING__QNAME;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int TYPE_MAPPING__TYPE = MAPPING__TYPE;
+
+ /**
+ * The feature id for the 'Encoding Style' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int TYPE_MAPPING__ENCODING_STYLE = MAPPING__ENCODING_STYLE;
+
+ /**
+ * The feature id for the 'Serializer' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int TYPE_MAPPING__SERIALIZER = MAPPING_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Deserializer' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int TYPE_MAPPING__DESERIALIZER = MAPPING_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the 'Type Mapping' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int TYPE_MAPPING_FEATURE_COUNT = MAPPING_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.ArrayMappingImpl Array Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ArrayMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getArrayMapping()
+ * @generated
+ */
+ int ARRAY_MAPPING = 3;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int ARRAY_MAPPING__QNAME = MAPPING__QNAME;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int ARRAY_MAPPING__TYPE = MAPPING__TYPE;
+
+ /**
+ * The feature id for the 'Encoding Style' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int ARRAY_MAPPING__ENCODING_STYLE = MAPPING__ENCODING_STYLE;
+
+ /**
+ * The feature id for the 'Inner Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int ARRAY_MAPPING__INNER_TYPE = MAPPING_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the 'Array Mapping' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int ARRAY_MAPPING_FEATURE_COUNT = MAPPING_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.BeanMappingImpl Bean Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.BeanMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getBeanMapping()
+ * @generated
+ */
+ int BEAN_MAPPING = 4;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int BEAN_MAPPING__QNAME = MAPPING__QNAME;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int BEAN_MAPPING__TYPE = MAPPING__TYPE;
+
+ /**
+ * The feature id for the 'Encoding Style' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int BEAN_MAPPING__ENCODING_STYLE = MAPPING__ENCODING_STYLE;
+
+ /**
+ * The number of structural features of the 'Bean Mapping' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int BEAN_MAPPING_FEATURE_COUNT = MAPPING_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.DeployableItemImpl Deployable Item}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.DeployableItemImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployableItem()
+ * @generated
+ */
+ int DEPLOYABLE_ITEM = 5;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPLOYABLE_ITEM__NAME = 0;
+
+ /**
+ * The number of structural features of the 'Deployable Item' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPLOYABLE_ITEM_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.ServiceImpl Service}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ServiceImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getService()
+ * @generated
+ */
+ int SERVICE = 6;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int SERVICE__NAME = DEPLOYABLE_ITEM__NAME;
+
+ /**
+ * The feature id for the 'Provider' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int SERVICE__PROVIDER = DEPLOYABLE_ITEM_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Use' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int SERVICE__USE = DEPLOYABLE_ITEM_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the 'Style' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int SERVICE__STYLE = DEPLOYABLE_ITEM_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the 'Parameters' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int SERVICE__PARAMETERS = DEPLOYABLE_ITEM_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the 'Type Mappings' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int SERVICE__TYPE_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the 'Bean Mappings' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int SERVICE__BEAN_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 5;
+
+ /**
+ * The feature id for the 'Array Mappings' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int SERVICE__ARRAY_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 6;
+
+ /**
+ * The number of structural features of the 'Service' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int SERVICE_FEATURE_COUNT = DEPLOYABLE_ITEM_FEATURE_COUNT + 7;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.DeploymentImpl Deployment}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.DeploymentImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployment()
+ * @generated
+ */
+ int DEPLOYMENT = 7;
+
+ /**
+ * The feature id for the 'Services' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPLOYMENT__SERVICES = 0;
+
+ /**
+ * The number of structural features of the 'Deployment' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int DEPLOYMENT_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.Use Use}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.Use
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
+ * @generated
+ */
+ int USE = 8;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.Style Style}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.Style
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
+ * @generated
+ */
+ int STYLE = 9;
+
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Parameter Parameter}'.
+ *
+ *
+ * @return the meta object for class 'Parameter'.
+ * @see org.apache.axis.model.wsdd.Parameter
+ * @generated
+ */
+ EClass getParameter();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Parameter#getName Name}'.
+ *
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.Parameter#getName()
+ * @see #getParameter()
+ * @generated
+ */
+ EAttribute getParameter_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Parameter#getValue Value}'.
+ *
+ *
+ * @return the meta object for the attribute 'Value'.
+ * @see org.apache.axis.model.wsdd.Parameter#getValue()
+ * @see #getParameter()
+ * @generated
+ */
+ EAttribute getParameter_Value();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Mapping Mapping}'.
+ *
+ *
+ * @return the meta object for class 'Mapping'.
+ * @see org.apache.axis.model.wsdd.Mapping
+ * @generated
+ */
+ EClass getMapping();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getQname Qname}'.
+ *
+ *
+ * @return the meta object for the attribute 'Qname'.
+ * @see org.apache.axis.model.wsdd.Mapping#getQname()
+ * @see #getMapping()
+ * @generated
+ */
+ EAttribute getMapping_Qname();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getType Type}'.
+ *
+ *
+ * @return the meta object for the attribute 'Type'.
+ * @see org.apache.axis.model.wsdd.Mapping#getType()
+ * @see #getMapping()
+ * @generated
+ */
+ EAttribute getMapping_Type();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getEncodingStyle Encoding Style}'.
+ *
+ *
+ * @return the meta object for the attribute 'Encoding Style'.
+ * @see org.apache.axis.model.wsdd.Mapping#getEncodingStyle()
+ * @see #getMapping()
+ * @generated
+ */
+ EAttribute getMapping_EncodingStyle();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.TypeMapping Type Mapping}'.
+ *
+ *
+ * @return the meta object for class 'Type Mapping'.
+ * @see org.apache.axis.model.wsdd.TypeMapping
+ * @generated
+ */
+ EClass getTypeMapping();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.TypeMapping#getSerializer Serializer}'.
+ *
+ *
+ * @return the meta object for the attribute 'Serializer'.
+ * @see org.apache.axis.model.wsdd.TypeMapping#getSerializer()
+ * @see #getTypeMapping()
+ * @generated
+ */
+ EAttribute getTypeMapping_Serializer();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.TypeMapping#getDeserializer Deserializer}'.
+ *
+ *
+ * @return the meta object for the attribute 'Deserializer'.
+ * @see org.apache.axis.model.wsdd.TypeMapping#getDeserializer()
+ * @see #getTypeMapping()
+ * @generated
+ */
+ EAttribute getTypeMapping_Deserializer();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.ArrayMapping Array Mapping}'.
+ *
+ *
+ * @return the meta object for class 'Array Mapping'.
+ * @see org.apache.axis.model.wsdd.ArrayMapping
+ * @generated
+ */
+ EClass getArrayMapping();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.ArrayMapping#getInnerType Inner Type}'.
+ *
+ *
+ * @return the meta object for the attribute 'Inner Type'.
+ * @see org.apache.axis.model.wsdd.ArrayMapping#getInnerType()
+ * @see #getArrayMapping()
+ * @generated
+ */
+ EAttribute getArrayMapping_InnerType();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.BeanMapping Bean Mapping}'.
+ *
+ *
+ * @return the meta object for class 'Bean Mapping'.
+ * @see org.apache.axis.model.wsdd.BeanMapping
+ * @generated
+ */
+ EClass getBeanMapping();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.DeployableItem Deployable Item}'.
+ *
+ *
+ * @return the meta object for class 'Deployable Item'.
+ * @see org.apache.axis.model.wsdd.DeployableItem
+ * @generated
+ */
+ EClass getDeployableItem();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.DeployableItem#getName Name}'.
+ *
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.DeployableItem#getName()
+ * @see #getDeployableItem()
+ * @generated
+ */
+ EAttribute getDeployableItem_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Service Service}'.
+ *
+ *
+ * @return the meta object for class 'Service'.
+ * @see org.apache.axis.model.wsdd.Service
+ * @generated
+ */
+ EClass getService();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Service#getProvider Provider}'.
+ *
+ *
+ * @return the meta object for the attribute 'Provider'.
+ * @see org.apache.axis.model.wsdd.Service#getProvider()
+ * @see #getService()
+ * @generated
+ */
+ EAttribute getService_Provider();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Service#getUse Use}'.
+ *
+ *
+ * @return the meta object for the attribute 'Use'.
+ * @see org.apache.axis.model.wsdd.Service#getUse()
+ * @see #getService()
+ * @generated
+ */
+ EAttribute getService_Use();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Service#getStyle Style}'.
+ *
+ *
+ * @return the meta object for the attribute 'Style'.
+ * @see org.apache.axis.model.wsdd.Service#getStyle()
+ * @see #getService()
+ * @generated
+ */
+ EAttribute getService_Style();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getParameters Parameters}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Parameters'.
+ * @see org.apache.axis.model.wsdd.Service#getParameters()
+ * @see #getService()
+ * @generated
+ */
+ EReference getService_Parameters();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getTypeMappings Type Mappings}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Type Mappings'.
+ * @see org.apache.axis.model.wsdd.Service#getTypeMappings()
+ * @see #getService()
+ * @generated
+ */
+ EReference getService_TypeMappings();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getBeanMappings Bean Mappings}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Bean Mappings'.
+ * @see org.apache.axis.model.wsdd.Service#getBeanMappings()
+ * @see #getService()
+ * @generated
+ */
+ EReference getService_BeanMappings();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getArrayMappings Array Mappings}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Array Mappings'.
+ * @see org.apache.axis.model.wsdd.Service#getArrayMappings()
+ * @see #getService()
+ * @generated
+ */
+ EReference getService_ArrayMappings();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Deployment Deployment}'.
+ *
+ *
+ * @return the meta object for class 'Deployment'.
+ * @see org.apache.axis.model.wsdd.Deployment
+ * @generated
+ */
+ EClass getDeployment();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Deployment#getServices Services}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Services'.
+ * @see org.apache.axis.model.wsdd.Deployment#getServices()
+ * @see #getDeployment()
+ * @generated
+ */
+ EReference getDeployment_Services();
+
+ /**
+ * Returns the meta object for enum '{@link org.apache.axis.model.wsdd.Use Use}'.
+ *
+ *
+ * @return the meta object for enum 'Use'.
+ * @see org.apache.axis.model.wsdd.Use
+ * @generated
+ */
+ EEnum getUse();
+
+ /**
+ * Returns the meta object for enum '{@link org.apache.axis.model.wsdd.Style Style}'.
+ *
+ *
+ * @return the meta object for enum 'Style'.
+ * @see org.apache.axis.model.wsdd.Style
+ * @generated
+ */
+ EEnum getStyle();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ *
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ WSDDFactory getWSDDFactory();
+
+ /**
+ *
+ * Defines literals for the meta objects that represent
+ *
+ *
each class,
+ *
each feature of each class,
+ *
each enum,
+ *
and each data type
+ *
+ *
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.ParameterImpl Parameter}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ParameterImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameter()
+ * @generated
+ */
+ EClass PARAMETER = eINSTANCE.getParameter();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute PARAMETER__NAME = eINSTANCE.getParameter_Name();
+
+ /**
+ * The meta object literal for the 'Value' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute PARAMETER__VALUE = eINSTANCE.getParameter_Value();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.MappingImpl Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.MappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getMapping()
+ * @generated
+ */
+ EClass MAPPING = eINSTANCE.getMapping();
+
+ /**
+ * The meta object literal for the 'Qname' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute MAPPING__QNAME = eINSTANCE.getMapping_Qname();
+
+ /**
+ * The meta object literal for the 'Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute MAPPING__TYPE = eINSTANCE.getMapping_Type();
+
+ /**
+ * The meta object literal for the 'Encoding Style' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute MAPPING__ENCODING_STYLE = eINSTANCE.getMapping_EncodingStyle();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.TypeMappingImpl Type Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.TypeMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getTypeMapping()
+ * @generated
+ */
+ EClass TYPE_MAPPING = eINSTANCE.getTypeMapping();
+
+ /**
+ * The meta object literal for the 'Serializer' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute TYPE_MAPPING__SERIALIZER = eINSTANCE.getTypeMapping_Serializer();
+
+ /**
+ * The meta object literal for the 'Deserializer' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute TYPE_MAPPING__DESERIALIZER = eINSTANCE.getTypeMapping_Deserializer();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.ArrayMappingImpl Array Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ArrayMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getArrayMapping()
+ * @generated
+ */
+ EClass ARRAY_MAPPING = eINSTANCE.getArrayMapping();
+
+ /**
+ * The meta object literal for the 'Inner Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute ARRAY_MAPPING__INNER_TYPE = eINSTANCE.getArrayMapping_InnerType();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.BeanMappingImpl Bean Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.BeanMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getBeanMapping()
+ * @generated
+ */
+ EClass BEAN_MAPPING = eINSTANCE.getBeanMapping();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.DeployableItemImpl Deployable Item}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.DeployableItemImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployableItem()
+ * @generated
+ */
+ EClass DEPLOYABLE_ITEM = eINSTANCE.getDeployableItem();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute DEPLOYABLE_ITEM__NAME = eINSTANCE.getDeployableItem_Name();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.ServiceImpl Service}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ServiceImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getService()
+ * @generated
+ */
+ EClass SERVICE = eINSTANCE.getService();
+
+ /**
+ * The meta object literal for the 'Provider' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute SERVICE__PROVIDER = eINSTANCE.getService_Provider();
+
+ /**
+ * The meta object literal for the 'Use' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute SERVICE__USE = eINSTANCE.getService_Use();
+
+ /**
+ * The meta object literal for the 'Style' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute SERVICE__STYLE = eINSTANCE.getService_Style();
+
+ /**
+ * The meta object literal for the 'Parameters' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ EReference SERVICE__PARAMETERS = eINSTANCE.getService_Parameters();
+
+ /**
+ * The meta object literal for the 'Type Mappings' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ EReference SERVICE__TYPE_MAPPINGS = eINSTANCE.getService_TypeMappings();
+
+ /**
+ * The meta object literal for the 'Bean Mappings' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ EReference SERVICE__BEAN_MAPPINGS = eINSTANCE.getService_BeanMappings();
+
+ /**
+ * The meta object literal for the 'Array Mappings' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ EReference SERVICE__ARRAY_MAPPINGS = eINSTANCE.getService_ArrayMappings();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.DeploymentImpl Deployment}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.DeploymentImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployment()
+ * @generated
+ */
+ EClass DEPLOYMENT = eINSTANCE.getDeployment();
+
+ /**
+ * The meta object literal for the 'Services' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ EReference DEPLOYMENT__SERVICES = eINSTANCE.getDeployment_Services();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.Use Use}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.Use
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
+ * @generated
+ */
+ EEnum USE = eINSTANCE.getUse();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.Style Style}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.Style
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
+ * @generated
+ */
+ EEnum STYLE = eINSTANCE.getStyle();
+
+ }
+
+} //WSDDPackage
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java
new file mode 100644
index 000000000..3bd8b9b6b
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java
@@ -0,0 +1,153 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd.impl;
+
+import org.apache.axis.model.wsdd.ArrayMapping;
+import org.apache.axis.model.wsdd.WSDDPackage;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ *
+ * An implementation of the model object 'Array Mapping'.
+ *
+ *
Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ *
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.apache.axis.model.wsdd.WSDDPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private WSDDPackageImpl() {
+ super(eNS_URI, WSDDFactory.eINSTANCE);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
+ *
+ *
+ *
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getFault()
+ * @model
+ * @generated
+ */
+public interface Fault extends EObject {
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getFault_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Fault#getName Name}' attribute.
+ *
+ *
+ * @param value the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Qname' attribute.
+ *
+ *
+ * If the meaning of the 'Qname' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Qname' attribute.
+ * @see #setQname(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getFault_Qname()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getQname();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Fault#getQname Qname}' attribute.
+ *
+ *
+ * @param value the new value of the 'Qname' attribute.
+ * @see #getQname()
+ * @generated
+ */
+ void setQname(Object value);
+
+ /**
+ * Returns the value of the 'Class' attribute.
+ *
+ *
+ * If the meaning of the 'Class' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Class' attribute.
+ * @see #setClass(String)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getFault_Class()
+ * @model
+ * @generated
+ */
+ String getClass_();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Fault#getClass_ Class}' attribute.
+ *
+ *
+ * @param value the new value of the 'Class' attribute.
+ * @see #getClass_()
+ * @generated
+ */
+ void setClass(String value);
+
+ /**
+ * Returns the value of the 'Type' attribute.
+ *
+ *
+ * If the meaning of the 'Type' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Type' attribute.
+ * @see #setType(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getFault_Type()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getType();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Fault#getType Type}' attribute.
+ *
+ *
+ * @param value the new value of the 'Type' attribute.
+ * @see #getType()
+ * @generated
+ */
+ void setType(Object value);
+
+} // Fault
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Operation.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Operation.java
new file mode 100644
index 000000000..d4d42642d
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Operation.java
@@ -0,0 +1,308 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * A representation of the model object 'Operation'.
+ *
+ *
+ *
+ *
+ *
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation()
+ * @model
+ * @generated
+ */
+public interface Operation extends EObject {
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getName Name}' attribute.
+ *
+ *
+ * @param value the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Qname' attribute.
+ *
+ *
+ * If the meaning of the 'Qname' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Qname' attribute.
+ * @see #setQname(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_Qname()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getQname();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getQname Qname}' attribute.
+ *
+ *
+ * @param value the new value of the 'Qname' attribute.
+ * @see #getQname()
+ * @generated
+ */
+ void setQname(Object value);
+
+ /**
+ * Returns the value of the 'Return QName' attribute.
+ *
+ *
+ * If the meaning of the 'Return QName' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Return QName' attribute.
+ * @see #setReturnQName(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_ReturnQName()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getReturnQName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getReturnQName Return QName}' attribute.
+ *
+ *
+ * @param value the new value of the 'Return QName' attribute.
+ * @see #getReturnQName()
+ * @generated
+ */
+ void setReturnQName(Object value);
+
+ /**
+ * Returns the value of the 'Return Type' attribute.
+ *
+ *
+ * If the meaning of the 'Return Type' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Return Type' attribute.
+ * @see #setReturnType(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_ReturnType()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getReturnType();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getReturnType Return Type}' attribute.
+ *
+ *
+ * @param value the new value of the 'Return Type' attribute.
+ * @see #getReturnType()
+ * @generated
+ */
+ void setReturnType(Object value);
+
+ /**
+ * Returns the value of the 'Return Item QName' attribute.
+ *
+ *
+ * If the meaning of the 'Return Item QName' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Return Item QName' attribute.
+ * @see #setReturnItemQName(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_ReturnItemQName()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getReturnItemQName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getReturnItemQName Return Item QName}' attribute.
+ *
+ *
+ * @param value the new value of the 'Return Item QName' attribute.
+ * @see #getReturnItemQName()
+ * @generated
+ */
+ void setReturnItemQName(Object value);
+
+ /**
+ * Returns the value of the 'Return Item Type' attribute.
+ *
+ *
+ * If the meaning of the 'Return Item Type' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Return Item Type' attribute.
+ * @see #setReturnItemType(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_ReturnItemType()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getReturnItemType();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getReturnItemType Return Item Type}' attribute.
+ *
+ *
+ * @param value the new value of the 'Return Item Type' attribute.
+ * @see #getReturnItemType()
+ * @generated
+ */
+ void setReturnItemType(Object value);
+
+ /**
+ * Returns the value of the 'Soap Action' attribute.
+ *
+ *
+ * If the meaning of the 'Soap Action' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Soap Action' attribute.
+ * @see #setSoapAction(String)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_SoapAction()
+ * @model
+ * @generated
+ */
+ String getSoapAction();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getSoapAction Soap Action}' attribute.
+ *
+ *
+ * @param value the new value of the 'Soap Action' attribute.
+ * @see #getSoapAction()
+ * @generated
+ */
+ void setSoapAction(String value);
+
+ /**
+ * Returns the value of the 'Mep' attribute.
+ *
+ *
+ * If the meaning of the 'Mep' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Mep' attribute.
+ * @see #setMep(String)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_Mep()
+ * @model
+ * @generated
+ */
+ String getMep();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getMep Mep}' attribute.
+ *
+ *
+ * @param value the new value of the 'Mep' attribute.
+ * @see #getMep()
+ * @generated
+ */
+ void setMep(String value);
+
+ /**
+ * Returns the value of the 'Return Header' attribute.
+ *
+ *
+ * If the meaning of the 'Return Header' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Return Header' attribute.
+ * @see #setReturnHeader(Boolean)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_ReturnHeader()
+ * @model
+ * @generated
+ */
+ Boolean getReturnHeader();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getReturnHeader Return Header}' attribute.
+ *
+ *
+ * @param value the new value of the 'Return Header' attribute.
+ * @see #getReturnHeader()
+ * @generated
+ */
+ void setReturnHeader(Boolean value);
+
+ /**
+ * Returns the value of the 'Parameters' containment reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.OperationParameter}.
+ *
+ *
+ * If the meaning of the 'Parameters' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Parameters' containment reference list.
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_Parameters()
+ * @model type="org.apache.axis.model.wsdd.OperationParameter" containment="true"
+ * extendedMetaData="kind='element' name='parameter' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList getParameters();
+
+ /**
+ * Returns the value of the 'Faults' containment reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.Fault}.
+ *
+ *
+ * If the meaning of the 'Faults' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Faults' containment reference list.
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_Faults()
+ * @model type="org.apache.axis.model.wsdd.Fault" containment="true"
+ * extendedMetaData="kind='element' name='fault' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList getFaults();
+
+} // Operation
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/OperationParameter.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/OperationParameter.java
new file mode 100644
index 000000000..14bcacd4d
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/OperationParameter.java
@@ -0,0 +1,219 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * A representation of the model object 'Operation Parameter'.
+ *
+ *
+ *
+ *
+ *
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter()
+ * @model
+ * @generated
+ */
+public interface OperationParameter extends EObject {
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.OperationParameter#getName Name}' attribute.
+ *
+ *
+ * @param value the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Qname' attribute.
+ *
+ *
+ * If the meaning of the 'Qname' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Qname' attribute.
+ * @see #setQname(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_Qname()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getQname();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.OperationParameter#getQname Qname}' attribute.
+ *
+ *
+ * @param value the new value of the 'Qname' attribute.
+ * @see #getQname()
+ * @generated
+ */
+ void setQname(Object value);
+
+ /**
+ * Returns the value of the 'Type' attribute.
+ *
+ *
+ * If the meaning of the 'Type' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Type' attribute.
+ * @see #setType(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_Type()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getType();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.OperationParameter#getType Type}' attribute.
+ *
+ *
+ * @param value the new value of the 'Type' attribute.
+ * @see #getType()
+ * @generated
+ */
+ void setType(Object value);
+
+ /**
+ * Returns the value of the 'Mode' attribute.
+ * The literals are from the enumeration {@link org.apache.axis.model.wsdd.ParameterMode}.
+ *
+ *
+ * If the meaning of the 'Mode' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Mode' attribute.
+ * @see org.apache.axis.model.wsdd.ParameterMode
+ * @see #setMode(ParameterMode)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_Mode()
+ * @model
+ * @generated
+ */
+ ParameterMode getMode();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.OperationParameter#getMode Mode}' attribute.
+ *
+ *
+ * @param value the new value of the 'Mode' attribute.
+ * @see org.apache.axis.model.wsdd.ParameterMode
+ * @see #getMode()
+ * @generated
+ */
+ void setMode(ParameterMode value);
+
+ /**
+ * Returns the value of the 'In Header' attribute.
+ *
+ *
+ * If the meaning of the 'In Header' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'In Header' attribute.
+ * @see #setInHeader(Boolean)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_InHeader()
+ * @model
+ * @generated
+ */
+ Boolean getInHeader();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.OperationParameter#getInHeader In Header}' attribute.
+ *
+ *
+ * @param value the new value of the 'In Header' attribute.
+ * @see #getInHeader()
+ * @generated
+ */
+ void setInHeader(Boolean value);
+
+ /**
+ * Returns the value of the 'Out Header' attribute.
+ *
+ *
+ * If the meaning of the 'Out Header' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Out Header' attribute.
+ * @see #setOutHeader(Boolean)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_OutHeader()
+ * @model
+ * @generated
+ */
+ Boolean getOutHeader();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.OperationParameter#getOutHeader Out Header}' attribute.
+ *
+ *
+ * @param value the new value of the 'Out Header' attribute.
+ * @see #getOutHeader()
+ * @generated
+ */
+ void setOutHeader(Boolean value);
+
+ /**
+ * Returns the value of the 'Item QName' attribute.
+ *
+ *
+ * If the meaning of the 'Item QName' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Item QName' attribute.
+ * @see #setItemQName(Object)
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_ItemQName()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getItemQName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.OperationParameter#getItemQName Item QName}' attribute.
+ *
+ *
+ * @param value the new value of the 'Item QName' attribute.
+ * @see #getItemQName()
+ * @generated
+ */
+ void setItemQName(Object value);
+
+} // OperationParameter
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/ParameterMode.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/ParameterMode.java
new file mode 100644
index 000000000..1f1aa1d65
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/ParameterMode.java
@@ -0,0 +1,178 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.AbstractEnumerator;
+
+/**
+ *
+ * A representation of the literals of the enumeration 'Parameter Mode',
+ * and utility methods for working with them.
+ *
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getParameterMode()
+ * @model
+ * @generated
+ */
+public final class ParameterMode extends AbstractEnumerator {
+ /**
+ * The 'IN' literal value.
+ *
+ *
+ * If the meaning of 'IN' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @see #IN_LITERAL
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int IN = 1;
+
+ /**
+ * The 'OUT' literal value.
+ *
+ *
+ * If the meaning of 'OUT' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @see #OUT_LITERAL
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int OUT = 2;
+
+ /**
+ * The 'INOUT' literal value.
+ *
+ *
+ * If the meaning of 'INOUT' literal object isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @see #INOUT_LITERAL
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int INOUT = 3;
+
+ /**
+ * The 'IN' literal object.
+ *
+ *
+ * @see #IN
+ * @generated
+ * @ordered
+ */
+ public static final ParameterMode IN_LITERAL = new ParameterMode(IN, "IN", "IN");
+
+ /**
+ * The 'OUT' literal object.
+ *
+ *
+ * @see #OUT
+ * @generated
+ * @ordered
+ */
+ public static final ParameterMode OUT_LITERAL = new ParameterMode(OUT, "OUT", "OUT");
+
+ /**
+ * The 'INOUT' literal object.
+ *
+ *
+ * @see #INOUT
+ * @generated
+ * @ordered
+ */
+ public static final ParameterMode INOUT_LITERAL = new ParameterMode(INOUT, "INOUT", "INOUT");
+
+ /**
+ * An array of all the 'Parameter Mode' enumerators.
+ *
+ *
+ * @generated
+ */
+ private static final ParameterMode[] VALUES_ARRAY =
+ new ParameterMode[] {
+ IN_LITERAL,
+ OUT_LITERAL,
+ INOUT_LITERAL,
+ };
+
+ /**
+ * A public read-only list of all the 'Parameter Mode' enumerators.
+ *
+ *
+ * @generated
+ */
+ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the 'Parameter Mode' literal with the specified literal value.
+ *
+ *
+ * @generated
+ */
+ public static ParameterMode get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ ParameterMode result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the 'Parameter Mode' literal with the specified name.
+ *
+ *
+ * @generated
+ */
+ public static ParameterMode getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ ParameterMode result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the 'Parameter Mode' literal with the specified integer value.
+ *
+ *
+ * @generated
+ */
+ public static ParameterMode get(int value) {
+ switch (value) {
+ case IN: return IN_LITERAL;
+ case OUT: return OUT_LITERAL;
+ case INOUT: return INOUT_LITERAL;
+ }
+ return null;
+ }
+
+ /**
+ * Only this class can construct instances.
+ *
+ *
+ * @generated
+ */
+ private ParameterMode(int value, String name, String literal) {
+ super(value, name, literal);
+ }
+
+} //ParameterMode
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
index 90fc19a10..69600c35a 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
@@ -20,6 +20,7 @@
*
@@ -127,10 +128,28 @@ public interface Service extends DeployableItem {
* @return the value of the 'Parameters' containment reference list.
* @see org.apache.axis.model.wsdd.WSDDPackage#getService_Parameters()
* @model type="org.apache.axis.model.wsdd.Parameter" containment="true"
+ * extendedMetaData="kind='element' name='parameter' namespace='##targetNamespace'"
* @generated
*/
EList getParameters();
+ /**
+ * Returns the value of the 'Operations' containment reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.Operation}.
+ *
+ *
+ * If the meaning of the 'Operations' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Operations' containment reference list.
+ * @see org.apache.axis.model.wsdd.WSDDPackage#getService_Operations()
+ * @model type="org.apache.axis.model.wsdd.Operation" containment="true"
+ * extendedMetaData="kind='element' name='operation' namespace='##targetNamespace'"
+ * @generated
+ */
+ EList getOperations();
+
/**
* Returns the value of the 'Type Mappings' containment reference list.
* The list contents are of type {@link org.apache.axis.model.wsdd.TypeMapping}.
@@ -182,4 +201,12 @@ public interface Service extends DeployableItem {
*/
EList getArrayMappings();
+ /**
+ *
+ *
+ * @model nameRequired="true" valueRequired="true"
+ * @generated
+ */
+ void setParameter(String name, String value);
+
} // Service
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
index 2350e9314..909c0bca8 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
@@ -61,6 +61,33 @@ public interface WSDDFactory extends EFactory {
*/
BeanMapping createBeanMapping();
+ /**
+ * Returns a new object of class 'Operation Parameter'.
+ *
+ *
+ * @return a new object of class 'Operation Parameter'.
+ * @generated
+ */
+ OperationParameter createOperationParameter();
+
+ /**
+ * Returns a new object of class 'Fault'.
+ *
+ *
+ * @return a new object of class 'Fault'.
+ * @generated
+ */
+ Fault createFault();
+
+ /**
+ * Returns a new object of class 'Operation'.
+ *
+ *
+ * @return a new object of class 'Operation'.
+ * @generated
+ */
+ Operation createOperation();
+
/**
* Returns a new object of class 'Service'.
*
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java
index 3d9af2805..50cd4ab80 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java
@@ -308,6 +308,261 @@ public interface WSDDPackage extends EPackage {
*/
int BEAN_MAPPING_FEATURE_COUNT = MAPPING_FEATURE_COUNT + 0;
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.OperationParameterImpl Operation Parameter}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.OperationParameterImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperationParameter()
+ * @generated
+ */
+ int OPERATION_PARAMETER = 5;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION_PARAMETER__NAME = 0;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION_PARAMETER__QNAME = 1;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION_PARAMETER__TYPE = 2;
+
+ /**
+ * The feature id for the 'Mode' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION_PARAMETER__MODE = 3;
+
+ /**
+ * The feature id for the 'In Header' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION_PARAMETER__IN_HEADER = 4;
+
+ /**
+ * The feature id for the 'Out Header' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION_PARAMETER__OUT_HEADER = 5;
+
+ /**
+ * The feature id for the 'Item QName' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION_PARAMETER__ITEM_QNAME = 6;
+
+ /**
+ * The number of structural features of the 'Operation Parameter' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION_PARAMETER_FEATURE_COUNT = 7;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.FaultImpl Fault}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.FaultImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getFault()
+ * @generated
+ */
+ int FAULT = 6;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int FAULT__NAME = 0;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int FAULT__QNAME = 1;
+
+ /**
+ * The feature id for the 'Class' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int FAULT__CLASS = 2;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int FAULT__TYPE = 3;
+
+ /**
+ * The number of structural features of the 'Fault' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int FAULT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.OperationImpl Operation}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.OperationImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperation()
+ * @generated
+ */
+ int OPERATION = 7;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION__NAME = 0;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION__QNAME = 1;
+
+ /**
+ * The feature id for the 'Return QName' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION__RETURN_QNAME = 2;
+
+ /**
+ * The feature id for the 'Return Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION__RETURN_TYPE = 3;
+
+ /**
+ * The feature id for the 'Return Item QName' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION__RETURN_ITEM_QNAME = 4;
+
+ /**
+ * The feature id for the 'Return Item Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION__RETURN_ITEM_TYPE = 5;
+
+ /**
+ * The feature id for the 'Soap Action' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION__SOAP_ACTION = 6;
+
+ /**
+ * The feature id for the 'Mep' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION__MEP = 7;
+
+ /**
+ * The feature id for the 'Return Header' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION__RETURN_HEADER = 8;
+
+ /**
+ * The feature id for the 'Parameters' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION__PARAMETERS = 9;
+
+ /**
+ * The feature id for the 'Faults' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION__FAULTS = 10;
+
+ /**
+ * The number of structural features of the 'Operation' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int OPERATION_FEATURE_COUNT = 11;
+
/**
* The meta object id for the '{@link org.apache.axis.model.wsdd.impl.DeployableItemImpl Deployable Item}' class.
*
@@ -316,7 +571,7 @@ public interface WSDDPackage extends EPackage {
* @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployableItem()
* @generated
*/
- int DEPLOYABLE_ITEM = 5;
+ int DEPLOYABLE_ITEM = 8;
/**
* The feature id for the 'Name' attribute.
@@ -344,7 +599,7 @@ public interface WSDDPackage extends EPackage {
* @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getService()
* @generated
*/
- int SERVICE = 6;
+ int SERVICE = 9;
/**
* The feature id for the 'Name' attribute.
@@ -391,6 +646,15 @@ public interface WSDDPackage extends EPackage {
*/
int SERVICE__PARAMETERS = DEPLOYABLE_ITEM_FEATURE_COUNT + 3;
+ /**
+ * The feature id for the 'Operations' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int SERVICE__OPERATIONS = DEPLOYABLE_ITEM_FEATURE_COUNT + 4;
+
/**
* The feature id for the 'Type Mappings' containment reference list.
*
@@ -398,7 +662,7 @@ public interface WSDDPackage extends EPackage {
* @generated
* @ordered
*/
- int SERVICE__TYPE_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 4;
+ int SERVICE__TYPE_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 5;
/**
* The feature id for the 'Bean Mappings' containment reference list.
@@ -407,7 +671,7 @@ public interface WSDDPackage extends EPackage {
* @generated
* @ordered
*/
- int SERVICE__BEAN_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 5;
+ int SERVICE__BEAN_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 6;
/**
* The feature id for the 'Array Mappings' containment reference list.
@@ -416,7 +680,7 @@ public interface WSDDPackage extends EPackage {
* @generated
* @ordered
*/
- int SERVICE__ARRAY_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 6;
+ int SERVICE__ARRAY_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 7;
/**
* The number of structural features of the 'Service' class.
@@ -425,7 +689,7 @@ public interface WSDDPackage extends EPackage {
* @generated
* @ordered
*/
- int SERVICE_FEATURE_COUNT = DEPLOYABLE_ITEM_FEATURE_COUNT + 7;
+ int SERVICE_FEATURE_COUNT = DEPLOYABLE_ITEM_FEATURE_COUNT + 8;
/**
* The meta object id for the '{@link org.apache.axis.model.wsdd.impl.DeploymentImpl Deployment}' class.
@@ -435,7 +699,7 @@ public interface WSDDPackage extends EPackage {
* @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployment()
* @generated
*/
- int DEPLOYMENT = 7;
+ int DEPLOYMENT = 10;
/**
* The feature id for the 'Services' containment reference list.
@@ -456,163 +720,446 @@ public interface WSDDPackage extends EPackage {
int DEPLOYMENT_FEATURE_COUNT = 1;
/**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.Use Use}' enum.
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.Use Use}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.Use
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
+ * @generated
+ */
+ int USE = 11;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.Style Style}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.Style
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
+ * @generated
+ */
+ int STYLE = 12;
+
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.ParameterMode
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameterMode()
+ * @generated
+ */
+ int PARAMETER_MODE = 13;
+
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Parameter Parameter}'.
+ *
+ *
+ * @return the meta object for class 'Parameter'.
+ * @see org.apache.axis.model.wsdd.Parameter
+ * @generated
+ */
+ EClass getParameter();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Parameter#getName Name}'.
+ *
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.Parameter#getName()
+ * @see #getParameter()
+ * @generated
+ */
+ EAttribute getParameter_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Parameter#getValue Value}'.
+ *
+ *
+ * @return the meta object for the attribute 'Value'.
+ * @see org.apache.axis.model.wsdd.Parameter#getValue()
+ * @see #getParameter()
+ * @generated
+ */
+ EAttribute getParameter_Value();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Mapping Mapping}'.
+ *
+ *
+ * @return the meta object for class 'Mapping'.
+ * @see org.apache.axis.model.wsdd.Mapping
+ * @generated
+ */
+ EClass getMapping();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getQname Qname}'.
+ *
+ *
+ * @return the meta object for the attribute 'Qname'.
+ * @see org.apache.axis.model.wsdd.Mapping#getQname()
+ * @see #getMapping()
+ * @generated
+ */
+ EAttribute getMapping_Qname();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getType Type}'.
+ *
+ *
+ * @return the meta object for the attribute 'Type'.
+ * @see org.apache.axis.model.wsdd.Mapping#getType()
+ * @see #getMapping()
+ * @generated
+ */
+ EAttribute getMapping_Type();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getEncodingStyle Encoding Style}'.
+ *
+ *
+ * @return the meta object for the attribute 'Encoding Style'.
+ * @see org.apache.axis.model.wsdd.Mapping#getEncodingStyle()
+ * @see #getMapping()
+ * @generated
+ */
+ EAttribute getMapping_EncodingStyle();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.TypeMapping Type Mapping}'.
+ *
+ *
+ * @return the meta object for class 'Type Mapping'.
+ * @see org.apache.axis.model.wsdd.TypeMapping
+ * @generated
+ */
+ EClass getTypeMapping();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.TypeMapping#getSerializer Serializer}'.
+ *
+ *
+ * @return the meta object for the attribute 'Serializer'.
+ * @see org.apache.axis.model.wsdd.TypeMapping#getSerializer()
+ * @see #getTypeMapping()
+ * @generated
+ */
+ EAttribute getTypeMapping_Serializer();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.TypeMapping#getDeserializer Deserializer}'.
+ *
+ *
+ * @return the meta object for the attribute 'Deserializer'.
+ * @see org.apache.axis.model.wsdd.TypeMapping#getDeserializer()
+ * @see #getTypeMapping()
+ * @generated
+ */
+ EAttribute getTypeMapping_Deserializer();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.ArrayMapping Array Mapping}'.
+ *
+ *
+ * @return the meta object for class 'Array Mapping'.
+ * @see org.apache.axis.model.wsdd.ArrayMapping
+ * @generated
+ */
+ EClass getArrayMapping();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.ArrayMapping#getInnerType Inner Type}'.
+ *
+ *
+ * @return the meta object for the attribute 'Inner Type'.
+ * @see org.apache.axis.model.wsdd.ArrayMapping#getInnerType()
+ * @see #getArrayMapping()
+ * @generated
+ */
+ EAttribute getArrayMapping_InnerType();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.BeanMapping Bean Mapping}'.
+ *
+ *
+ * @return the meta object for class 'Bean Mapping'.
+ * @see org.apache.axis.model.wsdd.BeanMapping
+ * @generated
+ */
+ EClass getBeanMapping();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.OperationParameter Operation Parameter}'.
+ *
+ *
+ * @return the meta object for class 'Operation Parameter'.
+ * @see org.apache.axis.model.wsdd.OperationParameter
+ * @generated
+ */
+ EClass getOperationParameter();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getName Name}'.
+ *
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getName()
+ * @see #getOperationParameter()
+ * @generated
+ */
+ EAttribute getOperationParameter_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getQname Qname}'.
+ *
+ *
+ * @return the meta object for the attribute 'Qname'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getQname()
+ * @see #getOperationParameter()
+ * @generated
+ */
+ EAttribute getOperationParameter_Qname();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getType Type}'.
+ *
+ *
+ * @return the meta object for the attribute 'Type'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getType()
+ * @see #getOperationParameter()
+ * @generated
+ */
+ EAttribute getOperationParameter_Type();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getMode Mode}'.
+ *
+ *
+ * @return the meta object for the attribute 'Mode'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getMode()
+ * @see #getOperationParameter()
+ * @generated
+ */
+ EAttribute getOperationParameter_Mode();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getInHeader In Header}'.
+ *
+ *
+ * @return the meta object for the attribute 'In Header'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getInHeader()
+ * @see #getOperationParameter()
+ * @generated
+ */
+ EAttribute getOperationParameter_InHeader();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getOutHeader Out Header}'.
+ *
+ *
+ * @return the meta object for the attribute 'Out Header'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getOutHeader()
+ * @see #getOperationParameter()
+ * @generated
+ */
+ EAttribute getOperationParameter_OutHeader();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getItemQName Item QName}'.
+ *
+ *
+ * @return the meta object for the attribute 'Item QName'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getItemQName()
+ * @see #getOperationParameter()
+ * @generated
+ */
+ EAttribute getOperationParameter_ItemQName();
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Fault Fault}'.
+ *
+ *
+ * @return the meta object for class 'Fault'.
+ * @see org.apache.axis.model.wsdd.Fault
+ * @generated
+ */
+ EClass getFault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getName Name}'.
+ *
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.Fault#getName()
+ * @see #getFault()
+ * @generated
+ */
+ EAttribute getFault_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getQname Qname}'.
*
*
- * @see org.apache.axis.model.wsdd.Use
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
+ * @return the meta object for the attribute 'Qname'.
+ * @see org.apache.axis.model.wsdd.Fault#getQname()
+ * @see #getFault()
* @generated
*/
- int USE = 8;
+ EAttribute getFault_Qname();
/**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.Style Style}' enum.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getClass_ Class}'.
*
*
- * @see org.apache.axis.model.wsdd.Style
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
+ * @return the meta object for the attribute 'Class'.
+ * @see org.apache.axis.model.wsdd.Fault#getClass_()
+ * @see #getFault()
* @generated
*/
- int STYLE = 9;
-
+ EAttribute getFault_Class();
/**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Parameter Parameter}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getType Type}'.
*
*
- * @return the meta object for class 'Parameter'.
- * @see org.apache.axis.model.wsdd.Parameter
+ * @return the meta object for the attribute 'Type'.
+ * @see org.apache.axis.model.wsdd.Fault#getType()
+ * @see #getFault()
* @generated
*/
- EClass getParameter();
+ EAttribute getFault_Type();
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Parameter#getName Name}'.
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Operation Operation}'.
*
*
- * @return the meta object for the attribute 'Name'.
- * @see org.apache.axis.model.wsdd.Parameter#getName()
- * @see #getParameter()
+ * @return the meta object for class 'Operation'.
+ * @see org.apache.axis.model.wsdd.Operation
* @generated
*/
- EAttribute getParameter_Name();
+ EClass getOperation();
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Parameter#getValue Value}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getName Name}'.
*
*
- * @return the meta object for the attribute 'Value'.
- * @see org.apache.axis.model.wsdd.Parameter#getValue()
- * @see #getParameter()
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.Operation#getName()
+ * @see #getOperation()
* @generated
*/
- EAttribute getParameter_Value();
+ EAttribute getOperation_Name();
/**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Mapping Mapping}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getQname Qname}'.
*
*
- * @return the meta object for class 'Mapping'.
- * @see org.apache.axis.model.wsdd.Mapping
+ * @return the meta object for the attribute 'Qname'.
+ * @see org.apache.axis.model.wsdd.Operation#getQname()
+ * @see #getOperation()
* @generated
*/
- EClass getMapping();
+ EAttribute getOperation_Qname();
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getQname Qname}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnQName Return QName}'.
*
*
- * @return the meta object for the attribute 'Qname'.
- * @see org.apache.axis.model.wsdd.Mapping#getQname()
- * @see #getMapping()
+ * @return the meta object for the attribute 'Return QName'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnQName()
+ * @see #getOperation()
* @generated
*/
- EAttribute getMapping_Qname();
+ EAttribute getOperation_ReturnQName();
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getType Type}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnType Return Type}'.
*
*
- * @return the meta object for the attribute 'Type'.
- * @see org.apache.axis.model.wsdd.Mapping#getType()
- * @see #getMapping()
+ * @return the meta object for the attribute 'Return Type'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnType()
+ * @see #getOperation()
* @generated
*/
- EAttribute getMapping_Type();
+ EAttribute getOperation_ReturnType();
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getEncodingStyle Encoding Style}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnItemQName Return Item QName}'.
*
*
- * @return the meta object for the attribute 'Encoding Style'.
- * @see org.apache.axis.model.wsdd.Mapping#getEncodingStyle()
- * @see #getMapping()
+ * @return the meta object for the attribute 'Return Item QName'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnItemQName()
+ * @see #getOperation()
* @generated
*/
- EAttribute getMapping_EncodingStyle();
+ EAttribute getOperation_ReturnItemQName();
/**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.TypeMapping Type Mapping}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnItemType Return Item Type}'.
*
*
- * @return the meta object for class 'Type Mapping'.
- * @see org.apache.axis.model.wsdd.TypeMapping
+ * @return the meta object for the attribute 'Return Item Type'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnItemType()
+ * @see #getOperation()
* @generated
*/
- EClass getTypeMapping();
+ EAttribute getOperation_ReturnItemType();
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.TypeMapping#getSerializer Serializer}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getSoapAction Soap Action}'.
*
*
- * @return the meta object for the attribute 'Serializer'.
- * @see org.apache.axis.model.wsdd.TypeMapping#getSerializer()
- * @see #getTypeMapping()
+ * @return the meta object for the attribute 'Soap Action'.
+ * @see org.apache.axis.model.wsdd.Operation#getSoapAction()
+ * @see #getOperation()
* @generated
*/
- EAttribute getTypeMapping_Serializer();
+ EAttribute getOperation_SoapAction();
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.TypeMapping#getDeserializer Deserializer}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getMep Mep}'.
*
*
- * @return the meta object for the attribute 'Deserializer'.
- * @see org.apache.axis.model.wsdd.TypeMapping#getDeserializer()
- * @see #getTypeMapping()
+ * @return the meta object for the attribute 'Mep'.
+ * @see org.apache.axis.model.wsdd.Operation#getMep()
+ * @see #getOperation()
* @generated
*/
- EAttribute getTypeMapping_Deserializer();
+ EAttribute getOperation_Mep();
/**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.ArrayMapping Array Mapping}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnHeader Return Header}'.
*
*
- * @return the meta object for class 'Array Mapping'.
- * @see org.apache.axis.model.wsdd.ArrayMapping
+ * @return the meta object for the attribute 'Return Header'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnHeader()
+ * @see #getOperation()
* @generated
*/
- EClass getArrayMapping();
+ EAttribute getOperation_ReturnHeader();
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.ArrayMapping#getInnerType Inner Type}'.
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Operation#getParameters Parameters}'.
*
*
- * @return the meta object for the attribute 'Inner Type'.
- * @see org.apache.axis.model.wsdd.ArrayMapping#getInnerType()
- * @see #getArrayMapping()
+ * @return the meta object for the containment reference list 'Parameters'.
+ * @see org.apache.axis.model.wsdd.Operation#getParameters()
+ * @see #getOperation()
* @generated
*/
- EAttribute getArrayMapping_InnerType();
+ EReference getOperation_Parameters();
/**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.BeanMapping Bean Mapping}'.
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Operation#getFaults Faults}'.
*
*
- * @return the meta object for class 'Bean Mapping'.
- * @see org.apache.axis.model.wsdd.BeanMapping
+ * @return the meta object for the containment reference list 'Faults'.
+ * @see org.apache.axis.model.wsdd.Operation#getFaults()
+ * @see #getOperation()
* @generated
*/
- EClass getBeanMapping();
+ EReference getOperation_Faults();
/**
* Returns the meta object for class '{@link org.apache.axis.model.wsdd.DeployableItem Deployable Item}'.
@@ -689,6 +1236,17 @@ public interface WSDDPackage extends EPackage {
*/
EReference getService_Parameters();
+ /**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getOperations Operations}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Operations'.
+ * @see org.apache.axis.model.wsdd.Service#getOperations()
+ * @see #getService()
+ * @generated
+ */
+ EReference getService_Operations();
+
/**
* Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getTypeMappings Type Mappings}'.
*
@@ -763,6 +1321,16 @@ public interface WSDDPackage extends EPackage {
*/
EEnum getStyle();
+ /**
+ * Returns the meta object for enum '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}'.
+ *
+ *
+ * @return the meta object for enum 'Parameter Mode'.
+ * @see org.apache.axis.model.wsdd.ParameterMode
+ * @generated
+ */
+ EEnum getParameterMode();
+
/**
* Returns the factory that creates the instances of the model.
*
@@ -899,6 +1467,212 @@ interface Literals {
*/
EClass BEAN_MAPPING = eINSTANCE.getBeanMapping();
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.OperationParameterImpl Operation Parameter}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.OperationParameterImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperationParameter()
+ * @generated
+ */
+ EClass OPERATION_PARAMETER = eINSTANCE.getOperationParameter();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION_PARAMETER__NAME = eINSTANCE.getOperationParameter_Name();
+
+ /**
+ * The meta object literal for the 'Qname' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION_PARAMETER__QNAME = eINSTANCE.getOperationParameter_Qname();
+
+ /**
+ * The meta object literal for the 'Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION_PARAMETER__TYPE = eINSTANCE.getOperationParameter_Type();
+
+ /**
+ * The meta object literal for the 'Mode' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION_PARAMETER__MODE = eINSTANCE.getOperationParameter_Mode();
+
+ /**
+ * The meta object literal for the 'In Header' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION_PARAMETER__IN_HEADER = eINSTANCE.getOperationParameter_InHeader();
+
+ /**
+ * The meta object literal for the 'Out Header' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION_PARAMETER__OUT_HEADER = eINSTANCE.getOperationParameter_OutHeader();
+
+ /**
+ * The meta object literal for the 'Item QName' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION_PARAMETER__ITEM_QNAME = eINSTANCE.getOperationParameter_ItemQName();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.FaultImpl Fault}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.FaultImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getFault()
+ * @generated
+ */
+ EClass FAULT = eINSTANCE.getFault();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute FAULT__NAME = eINSTANCE.getFault_Name();
+
+ /**
+ * The meta object literal for the 'Qname' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute FAULT__QNAME = eINSTANCE.getFault_Qname();
+
+ /**
+ * The meta object literal for the 'Class' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute FAULT__CLASS = eINSTANCE.getFault_Class();
+
+ /**
+ * The meta object literal for the 'Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute FAULT__TYPE = eINSTANCE.getFault_Type();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.OperationImpl Operation}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.OperationImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperation()
+ * @generated
+ */
+ EClass OPERATION = eINSTANCE.getOperation();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION__NAME = eINSTANCE.getOperation_Name();
+
+ /**
+ * The meta object literal for the 'Qname' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION__QNAME = eINSTANCE.getOperation_Qname();
+
+ /**
+ * The meta object literal for the 'Return QName' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION__RETURN_QNAME = eINSTANCE.getOperation_ReturnQName();
+
+ /**
+ * The meta object literal for the 'Return Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION__RETURN_TYPE = eINSTANCE.getOperation_ReturnType();
+
+ /**
+ * The meta object literal for the 'Return Item QName' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION__RETURN_ITEM_QNAME = eINSTANCE.getOperation_ReturnItemQName();
+
+ /**
+ * The meta object literal for the 'Return Item Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION__RETURN_ITEM_TYPE = eINSTANCE.getOperation_ReturnItemType();
+
+ /**
+ * The meta object literal for the 'Soap Action' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION__SOAP_ACTION = eINSTANCE.getOperation_SoapAction();
+
+ /**
+ * The meta object literal for the 'Mep' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION__MEP = eINSTANCE.getOperation_Mep();
+
+ /**
+ * The meta object literal for the 'Return Header' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute OPERATION__RETURN_HEADER = eINSTANCE.getOperation_ReturnHeader();
+
+ /**
+ * The meta object literal for the 'Parameters' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ EReference OPERATION__PARAMETERS = eINSTANCE.getOperation_Parameters();
+
+ /**
+ * The meta object literal for the 'Faults' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ EReference OPERATION__FAULTS = eINSTANCE.getOperation_Faults();
+
/**
* The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.DeployableItemImpl Deployable Item}' class.
*
@@ -959,6 +1733,14 @@ interface Literals {
*/
EReference SERVICE__PARAMETERS = eINSTANCE.getService_Parameters();
+ /**
+ * The meta object literal for the 'Operations' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ EReference SERVICE__OPERATIONS = eINSTANCE.getService_Operations();
+
/**
* The meta object literal for the 'Type Mappings' containment reference list feature.
*
@@ -1021,6 +1803,16 @@ interface Literals {
*/
EEnum STYLE = eINSTANCE.getStyle();
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.ParameterMode
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameterMode()
+ * @generated
+ */
+ EEnum PARAMETER_MODE = eINSTANCE.getParameterMode();
+
}
} //WSDDPackage
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
new file mode 100644
index 000000000..c5e5eb790
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.model.wsdd;
+
+import java.io.IOException;
+import java.io.Writer;
+
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
+
+public final class WSDDUtil {
+ private WSDDUtil() {}
+
+ public static void write(Deployment deployment, Writer writer) throws IOException {
+ XMLResourceImpl resource = new XMLResourceImpl();
+ XMLProcessor processor = new XMLProcessor();
+ resource.getContents().add(deployment);
+ processor.save(writer, resource, null);
+ }
+}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FaultImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FaultImpl.java
new file mode 100644
index 000000000..5f81ff7c9
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FaultImpl.java
@@ -0,0 +1,308 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd.impl;
+
+import org.apache.axis.model.wsdd.Fault;
+import org.apache.axis.model.wsdd.WSDDPackage;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ *
+ * An implementation of the model object 'Fault'.
+ *
+ *
@@ -117,6 +121,16 @@ public class ServiceImpl extends DeployableItemImpl implements Service {
*/
protected EList parameters;
+ /**
+ * The cached value of the '{@link #getOperations() Operations}' containment reference list.
+ *
+ *
+ * @see #getOperations()
+ * @generated
+ * @ordered
+ */
+ protected EList operations;
+
/**
* The cached value of the '{@link #getTypeMappings() Type Mappings}' containment reference list.
*
@@ -231,6 +245,18 @@ public EList getParameters() {
return parameters;
}
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getOperations() {
+ if (operations == null) {
+ operations = new BasicInternalEList(Operation.class);
+ }
+ return operations;
+ }
+
/**
*
*
@@ -267,6 +293,20 @@ public EList getArrayMappings() {
return arrayMappings;
}
+ public void setParameter(String name, String value) {
+ for (Iterator it = getParameters().iterator(); it.hasNext(); ) {
+ Parameter param = (Parameter)it.next();
+ if (name.equals(param.getName())) {
+ param.setValue(value);
+ return;
+ }
+ }
+ Parameter param = WSDDFactory.eINSTANCE.createParameter();
+ param.setName(name);
+ param.setValue(value);
+ getParameters().add(param);
+ }
+
/**
*
*
@@ -276,6 +316,8 @@ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
switch (featureID) {
case WSDDPackage.SERVICE__PARAMETERS:
return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs);
+ case WSDDPackage.SERVICE__OPERATIONS:
+ return ((InternalEList)getOperations()).basicRemove(otherEnd, msgs);
case WSDDPackage.SERVICE__TYPE_MAPPINGS:
return ((InternalEList)getTypeMappings()).basicRemove(otherEnd, msgs);
case WSDDPackage.SERVICE__BEAN_MAPPINGS:
@@ -301,6 +343,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
return getStyle();
case WSDDPackage.SERVICE__PARAMETERS:
return getParameters();
+ case WSDDPackage.SERVICE__OPERATIONS:
+ return getOperations();
case WSDDPackage.SERVICE__TYPE_MAPPINGS:
return getTypeMappings();
case WSDDPackage.SERVICE__BEAN_MAPPINGS:
@@ -331,6 +375,10 @@ public void eSet(int featureID, Object newValue) {
getParameters().clear();
getParameters().addAll((Collection)newValue);
return;
+ case WSDDPackage.SERVICE__OPERATIONS:
+ getOperations().clear();
+ getOperations().addAll((Collection)newValue);
+ return;
case WSDDPackage.SERVICE__TYPE_MAPPINGS:
getTypeMappings().clear();
getTypeMappings().addAll((Collection)newValue);
@@ -366,6 +414,9 @@ public void eUnset(int featureID) {
case WSDDPackage.SERVICE__PARAMETERS:
getParameters().clear();
return;
+ case WSDDPackage.SERVICE__OPERATIONS:
+ getOperations().clear();
+ return;
case WSDDPackage.SERVICE__TYPE_MAPPINGS:
getTypeMappings().clear();
return;
@@ -394,6 +445,8 @@ public boolean eIsSet(int featureID) {
return style != STYLE_EDEFAULT;
case WSDDPackage.SERVICE__PARAMETERS:
return parameters != null && !parameters.isEmpty();
+ case WSDDPackage.SERVICE__OPERATIONS:
+ return operations != null && !operations.isEmpty();
case WSDDPackage.SERVICE__TYPE_MAPPINGS:
return typeMappings != null && !typeMappings.isEmpty();
case WSDDPackage.SERVICE__BEAN_MAPPINGS:
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
index 832a36ad3..84264d35b 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
@@ -64,6 +64,9 @@ public EObject create(EClass eClass) {
case WSDDPackage.TYPE_MAPPING: return createTypeMapping();
case WSDDPackage.ARRAY_MAPPING: return createArrayMapping();
case WSDDPackage.BEAN_MAPPING: return createBeanMapping();
+ case WSDDPackage.OPERATION_PARAMETER: return createOperationParameter();
+ case WSDDPackage.FAULT: return createFault();
+ case WSDDPackage.OPERATION: return createOperation();
case WSDDPackage.SERVICE: return createService();
case WSDDPackage.DEPLOYMENT: return createDeployment();
default:
@@ -82,6 +85,8 @@ public Object createFromString(EDataType eDataType, String initialValue) {
return createUseFromString(eDataType, initialValue);
case WSDDPackage.STYLE:
return createStyleFromString(eDataType, initialValue);
+ case WSDDPackage.PARAMETER_MODE:
+ return createParameterModeFromString(eDataType, initialValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
@@ -98,6 +103,8 @@ public String convertToString(EDataType eDataType, Object instanceValue) {
return convertUseToString(eDataType, instanceValue);
case WSDDPackage.STYLE:
return convertStyleToString(eDataType, instanceValue);
+ case WSDDPackage.PARAMETER_MODE:
+ return convertParameterModeToString(eDataType, instanceValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
@@ -143,6 +150,36 @@ public BeanMapping createBeanMapping() {
return beanMapping;
}
+ /**
+ *
+ *
+ * @generated
+ */
+ public OperationParameter createOperationParameter() {
+ OperationParameterImpl operationParameter = new OperationParameterImpl();
+ return operationParameter;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Fault createFault() {
+ FaultImpl fault = new FaultImpl();
+ return fault;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Operation createOperation() {
+ OperationImpl operation = new OperationImpl();
+ return operation;
+ }
+
/**
*
*
@@ -203,6 +240,26 @@ public String convertStyleToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
+ /**
+ *
+ *
+ * @generated
+ */
+ public ParameterMode createParameterModeFromString(EDataType eDataType, String initialValue) {
+ ParameterMode result = ParameterMode.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertParameterModeToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
/**
*
*
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
index d99976b28..fbc9227bf 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
@@ -10,8 +10,12 @@
import org.apache.axis.model.wsdd.BeanMapping;
import org.apache.axis.model.wsdd.DeployableItem;
import org.apache.axis.model.wsdd.Deployment;
+import org.apache.axis.model.wsdd.Fault;
import org.apache.axis.model.wsdd.Mapping;
+import org.apache.axis.model.wsdd.Operation;
+import org.apache.axis.model.wsdd.OperationParameter;
import org.apache.axis.model.wsdd.Parameter;
+import org.apache.axis.model.wsdd.ParameterMode;
import org.apache.axis.model.wsdd.Service;
import org.apache.axis.model.wsdd.Style;
import org.apache.axis.model.wsdd.TypeMapping;
@@ -22,6 +26,7 @@
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
@@ -71,6 +76,27 @@ public class WSDDPackageImpl extends EPackageImpl implements WSDDPackage {
*/
private EClass beanMappingEClass = null;
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass operationParameterEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass faultEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass operationEClass = null;
+
/**
*
*
@@ -106,6 +132,13 @@ public class WSDDPackageImpl extends EPackageImpl implements WSDDPackage {
*/
private EEnum styleEEnum = null;
+ /**
+ *
+ *
+ * @generated
+ */
+ private EEnum parameterModeEEnum = null;
+
/**
* Creates an instance of the model Package, registered with
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
@@ -287,6 +320,231 @@ public EClass getBeanMapping() {
return beanMappingEClass;
}
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getOperationParameter() {
+ return operationParameterEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperationParameter_Name() {
+ return (EAttribute)operationParameterEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperationParameter_Qname() {
+ return (EAttribute)operationParameterEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperationParameter_Type() {
+ return (EAttribute)operationParameterEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperationParameter_Mode() {
+ return (EAttribute)operationParameterEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperationParameter_InHeader() {
+ return (EAttribute)operationParameterEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperationParameter_OutHeader() {
+ return (EAttribute)operationParameterEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperationParameter_ItemQName() {
+ return (EAttribute)operationParameterEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getFault() {
+ return faultEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getFault_Name() {
+ return (EAttribute)faultEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getFault_Qname() {
+ return (EAttribute)faultEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getFault_Class() {
+ return (EAttribute)faultEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getFault_Type() {
+ return (EAttribute)faultEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getOperation() {
+ return operationEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperation_Name() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperation_Qname() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperation_ReturnQName() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperation_ReturnType() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperation_ReturnItemQName() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperation_ReturnItemType() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperation_SoapAction() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperation_Mep() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getOperation_ReturnHeader() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getOperation_Parameters() {
+ return (EReference)operationEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getOperation_Faults() {
+ return (EReference)operationEClass.getEStructuralFeatures().get(10);
+ }
+
/**
*
*
@@ -355,7 +613,7 @@ public EReference getService_Parameters() {
*
* @generated
*/
- public EReference getService_TypeMappings() {
+ public EReference getService_Operations() {
return (EReference)serviceEClass.getEStructuralFeatures().get(4);
}
@@ -364,7 +622,7 @@ public EReference getService_TypeMappings() {
*
* @generated
*/
- public EReference getService_BeanMappings() {
+ public EReference getService_TypeMappings() {
return (EReference)serviceEClass.getEStructuralFeatures().get(5);
}
@@ -373,10 +631,19 @@ public EReference getService_BeanMappings() {
*
* @generated
*/
- public EReference getService_ArrayMappings() {
+ public EReference getService_BeanMappings() {
return (EReference)serviceEClass.getEStructuralFeatures().get(6);
}
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getService_ArrayMappings() {
+ return (EReference)serviceEClass.getEStructuralFeatures().get(7);
+ }
+
/**
*
*
@@ -413,6 +680,15 @@ public EEnum getStyle() {
return styleEEnum;
}
+ /**
+ *
+ *
+ * @generated
+ */
+ public EEnum getParameterMode() {
+ return parameterModeEEnum;
+ }
+
/**
*
*
@@ -459,6 +735,34 @@ public void createPackageContents() {
beanMappingEClass = createEClass(BEAN_MAPPING);
+ operationParameterEClass = createEClass(OPERATION_PARAMETER);
+ createEAttribute(operationParameterEClass, OPERATION_PARAMETER__NAME);
+ createEAttribute(operationParameterEClass, OPERATION_PARAMETER__QNAME);
+ createEAttribute(operationParameterEClass, OPERATION_PARAMETER__TYPE);
+ createEAttribute(operationParameterEClass, OPERATION_PARAMETER__MODE);
+ createEAttribute(operationParameterEClass, OPERATION_PARAMETER__IN_HEADER);
+ createEAttribute(operationParameterEClass, OPERATION_PARAMETER__OUT_HEADER);
+ createEAttribute(operationParameterEClass, OPERATION_PARAMETER__ITEM_QNAME);
+
+ faultEClass = createEClass(FAULT);
+ createEAttribute(faultEClass, FAULT__NAME);
+ createEAttribute(faultEClass, FAULT__QNAME);
+ createEAttribute(faultEClass, FAULT__CLASS);
+ createEAttribute(faultEClass, FAULT__TYPE);
+
+ operationEClass = createEClass(OPERATION);
+ createEAttribute(operationEClass, OPERATION__NAME);
+ createEAttribute(operationEClass, OPERATION__QNAME);
+ createEAttribute(operationEClass, OPERATION__RETURN_QNAME);
+ createEAttribute(operationEClass, OPERATION__RETURN_TYPE);
+ createEAttribute(operationEClass, OPERATION__RETURN_ITEM_QNAME);
+ createEAttribute(operationEClass, OPERATION__RETURN_ITEM_TYPE);
+ createEAttribute(operationEClass, OPERATION__SOAP_ACTION);
+ createEAttribute(operationEClass, OPERATION__MEP);
+ createEAttribute(operationEClass, OPERATION__RETURN_HEADER);
+ createEReference(operationEClass, OPERATION__PARAMETERS);
+ createEReference(operationEClass, OPERATION__FAULTS);
+
deployableItemEClass = createEClass(DEPLOYABLE_ITEM);
createEAttribute(deployableItemEClass, DEPLOYABLE_ITEM__NAME);
@@ -467,6 +771,7 @@ public void createPackageContents() {
createEAttribute(serviceEClass, SERVICE__USE);
createEAttribute(serviceEClass, SERVICE__STYLE);
createEReference(serviceEClass, SERVICE__PARAMETERS);
+ createEReference(serviceEClass, SERVICE__OPERATIONS);
createEReference(serviceEClass, SERVICE__TYPE_MAPPINGS);
createEReference(serviceEClass, SERVICE__BEAN_MAPPINGS);
createEReference(serviceEClass, SERVICE__ARRAY_MAPPINGS);
@@ -477,6 +782,7 @@ public void createPackageContents() {
// Create enums
useEEnum = createEEnum(USE);
styleEEnum = createEEnum(STYLE);
+ parameterModeEEnum = createEEnum(PARAMETER_MODE);
}
/**
@@ -530,6 +836,34 @@ public void initializePackageContents() {
initEClass(beanMappingEClass, BeanMapping.class, "BeanMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEClass(operationParameterEClass, OperationParameter.class, "OperationParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getOperationParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperationParameter_Qname(), theXMLTypePackage.getQName(), "qname", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperationParameter_Type(), theXMLTypePackage.getQName(), "type", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperationParameter_Mode(), this.getParameterMode(), "mode", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperationParameter_InHeader(), ecorePackage.getEBooleanObject(), "inHeader", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperationParameter_OutHeader(), ecorePackage.getEBooleanObject(), "outHeader", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperationParameter_ItemQName(), theXMLTypePackage.getQName(), "itemQName", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(faultEClass, Fault.class, "Fault", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getFault_Name(), ecorePackage.getEString(), "name", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getFault_Qname(), theXMLTypePackage.getQName(), "qname", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getFault_Class(), ecorePackage.getEString(), "class", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getFault_Type(), theXMLTypePackage.getQName(), "type", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(operationEClass, Operation.class, "Operation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getOperation_Name(), ecorePackage.getEString(), "name", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_Qname(), theXMLTypePackage.getQName(), "qname", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_ReturnQName(), theXMLTypePackage.getQName(), "returnQName", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_ReturnType(), theXMLTypePackage.getQName(), "returnType", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_ReturnItemQName(), theXMLTypePackage.getQName(), "returnItemQName", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_ReturnItemType(), theXMLTypePackage.getQName(), "returnItemType", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_SoapAction(), ecorePackage.getEString(), "soapAction", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_Mep(), ecorePackage.getEString(), "mep", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_ReturnHeader(), ecorePackage.getEBooleanObject(), "returnHeader", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOperation_Parameters(), this.getOperationParameter(), null, "parameters", null, 0, -1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOperation_Faults(), this.getFault(), null, "faults", null, 0, -1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
initEClass(deployableItemEClass, DeployableItem.class, "DeployableItem", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getDeployableItem_Name(), ecorePackage.getEString(), "name", null, 0, 1, DeployableItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -538,10 +872,15 @@ public void initializePackageContents() {
initEAttribute(getService_Use(), this.getUse(), "use", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getService_Style(), this.getStyle(), "style", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getService_Parameters(), this.getParameter(), null, "parameters", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getService_Operations(), this.getOperation(), null, "operations", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getService_TypeMappings(), this.getTypeMapping(), null, "typeMappings", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getService_BeanMappings(), this.getBeanMapping(), null, "beanMappings", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getService_ArrayMappings(), this.getArrayMapping(), null, "arrayMappings", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ EOperation op = addEOperation(serviceEClass, null, "setParameter");
+ addEParameter(op, ecorePackage.getEString(), "name", 1, 1);
+ addEParameter(op, ecorePackage.getEString(), "value", 1, 1);
+
initEClass(deploymentEClass, Deployment.class, "Deployment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getDeployment_Services(), this.getService(), null, "services", null, 0, -1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -556,6 +895,11 @@ public void initializePackageContents() {
addEEnumLiteral(styleEEnum, Style.WRAPPED_LITERAL);
addEEnumLiteral(styleEEnum, Style.MESSAGE_LITERAL);
+ initEEnum(parameterModeEEnum, ParameterMode.class, "ParameterMode");
+ addEEnumLiteral(parameterModeEEnum, ParameterMode.IN_LITERAL);
+ addEEnumLiteral(parameterModeEEnum, ParameterMode.OUT_LITERAL);
+ addEEnumLiteral(parameterModeEEnum, ParameterMode.INOUT_LITERAL);
+
// Create resource
createResource(eNS_URI);
@@ -572,6 +916,38 @@ public void initializePackageContents() {
*/
protected void createExtendedMetaDataAnnotations() {
String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
+ addAnnotation
+ (getOperation_Parameters(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "parameter",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getOperation_Faults(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "fault",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getService_Parameters(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "parameter",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getService_Operations(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "operation",
+ "namespace", "##targetNamespace"
+ });
addAnnotation
(getService_TypeMappings(),
source,
diff --git a/axis-rt-core/src/main/java/org/apache/axis/wsdl/symbolTable/Utils.java b/axis-rt-core/src/main/java/org/apache/axis/wsdl/symbolTable/Utils.java
index d82ca4c6f..05fe4cf46 100644
--- a/axis-rt-core/src/main/java/org/apache/axis/wsdl/symbolTable/Utils.java
+++ b/axis-rt-core/src/main/java/org/apache/axis/wsdl/symbolTable/Utils.java
@@ -745,41 +745,6 @@ private static void getNestedTypes(TypeEntry type, HashSet types,
*/
} // getNestedTypes
- /**
- * Generate an XML prefixed attribute value with a corresponding xmlns
- * declaration for the prefix. If there is no namespace,
- * don't prefix the name or emit the xmlns attribute.
- *
- * Caller should provide the enclosing quotes.
- *
- * Usage: println("name=\"" + genXMLQNameString(qname, "foo") + "\""
- *
- * @param qname
- * @param prefix
- * @return
- */
- public static String genQNameAttributeString(QName qname, String prefix) {
-
- if ((qname.getNamespaceURI() == null)
- || qname.getNamespaceURI().equals("")) {
- return qname.getLocalPart();
- }
-
- return prefix + ":" + qname.getLocalPart() + "\" xmlns:" + prefix
- + "=\"" + qname.getNamespaceURI();
- }
-
- public static String genQNameAttributeStringWithLastLocalPart(QName qname, String prefix) {
- String lastLocalPart = getLastLocalPart(qname.getLocalPart());
- if ((qname.getNamespaceURI() == null)
- || qname.getNamespaceURI().equals("")) {
- return lastLocalPart;
- }
-
- return prefix + ":" + lastLocalPart + "\" xmlns:" + prefix
- + "=\"" + qname.getNamespaceURI();
- }
-
public static String getLastLocalPart(String localPart) {
int anonymousDelimitorIndex = localPart.lastIndexOf('>');
if (anonymousDelimitorIndex > -1 && anonymousDelimitorIndex < localPart.length()-1) {
diff --git a/pom.xml b/pom.xml
index 68d8ce481..c410f0c84 100644
--- a/pom.xml
+++ b/pom.xml
@@ -126,6 +126,11 @@
axiom-testutils1.2.13
+
+ commons-lang
+ commons-lang
+ 2.6
+
From 3cf64657be4b1026fecd60b6150a6f7ff3a57176 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Wed, 5 Dec 2012 12:20:00 +0000
Subject: [PATCH 051/197] Added support for javax.xml.namespace.QName to EMF.
---
.../axis/wsdl/toJava/JavaDeployWriter.java | 37 +++++------
axis-model/pom.xml | 6 ++
.../apache/axis/model/util/AxisXMLHelper.java | 65 +++++++++++++++++++
.../axis/model/util/AxisXMLResource.java | 33 ++++++++++
.../org/apache/axis/model/wsdd/WSDDUtil.java | 4 +-
5 files changed, 124 insertions(+), 21 deletions(-)
create mode 100644 axis-model/src/main/java/org/apache/axis/model/util/AxisXMLHelper.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/util/AxisXMLResource.java
diff --git a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
index 34d9a8084..456f287b0 100644
--- a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
+++ b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
@@ -207,8 +207,8 @@ protected void writeDeployTypes(
QName bQName = binding.getQName();
TypeMapping typeMapping = WSDDFactory.eINSTANCE.createTypeMapping();
- typeMapping.setQname(new org.apache.axis.model.ecore.xml.type.internal.QName(bQName.getNamespaceURI(), "DataHandler", "ns"));
- typeMapping.setType(new org.apache.axis.model.ecore.xml.type.internal.QName(WSDDConstants.URI_WSDD_JAVA, "javax.activation.DataHandler", WSDDConstants.NS_PREFIX_WSDD_JAVA));
+ typeMapping.setQname(new QName(bQName.getNamespaceURI(), "DataHandler"));
+ typeMapping.setType(new QName(WSDDConstants.URI_WSDD_JAVA, "javax.activation.DataHandler", WSDDConstants.NS_PREFIX_WSDD_JAVA));
typeMapping.setSerializer("org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory");
typeMapping.setDeserializer("org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory");
typeMapping.setEncodingStyle(use.getEncoding());
@@ -281,8 +281,8 @@ protected void writeDeployTypes(
if (innerType == null) {
// no arrays
TypeMapping typeMapping = WSDDFactory.eINSTANCE.createTypeMapping();
- typeMapping.setQname(new org.apache.axis.model.ecore.xml.type.internal.QName(namespaceURI, localPart, "ns"));
- typeMapping.setType(new org.apache.axis.model.ecore.xml.type.internal.QName(WSDDConstants.URI_WSDD_JAVA, javaType, WSDDConstants.NS_PREFIX_WSDD_JAVA));
+ typeMapping.setQname(new QName(namespaceURI, localPart));
+ typeMapping.setType(new QName(WSDDConstants.URI_WSDD_JAVA, javaType));
typeMapping.setSerializer(serializerFactory);
typeMapping.setDeserializer(deserializerFactory);
typeMapping.setEncodingStyle(encodingStyle);
@@ -290,10 +290,10 @@ protected void writeDeployTypes(
} else {
// arrays
ArrayMapping arrayMapping = WSDDFactory.eINSTANCE.createArrayMapping();
- arrayMapping.setQname(new org.apache.axis.model.ecore.xml.type.internal.QName(namespaceURI, localPart, "ns"));
- arrayMapping.setType(new org.apache.axis.model.ecore.xml.type.internal.QName(WSDDConstants.URI_WSDD_JAVA, javaType, WSDDConstants.NS_PREFIX_WSDD_JAVA));
+ arrayMapping.setQname(new QName(namespaceURI, localPart));
+ arrayMapping.setType(new QName(WSDDConstants.URI_WSDD_JAVA, javaType));
arrayMapping.setEncodingStyle(encodingStyle);
- arrayMapping.setInnerType(new org.apache.axis.model.ecore.xml.type.internal.QName(innerType.getNamespaceURI(), innerType.getLocalPart(), "cmp-ns"));
+ arrayMapping.setInnerType(innerType);
service.getArrayMappings().add(arrayMapping);
}
}
@@ -341,7 +341,7 @@ protected void writeDeployPort(
org.apache.axis.model.wsdd.Service wsddService = WSDDFactory.eINSTANCE.createService();
wsddService.setName(serviceName);
- wsddService.setProvider(new org.apache.axis.model.ecore.xml.type.internal.QName(WSDDConstants.URI_WSDD_JAVA, "RPC", WSDDConstants.NS_PREFIX_WSDD_JAVA));
+ wsddService.setProvider(new QName(WSDDConstants.URI_WSDD_JAVA, "RPC"));
wsddService.setStyle(org.apache.axis.model.wsdd.Style.getByName(style.getName()));
wsddService.setUse(org.apache.axis.model.wsdd.Use.getByName(use.getName()));
wsddService.setParameter("wsdlTargetNamespace", service.getQName().getNamespaceURI());
@@ -520,15 +520,15 @@ protected void writeOperation(org.apache.axis.model.wsdd.Service service, String
operation.setName(javaOperName);
if (elementQName != null) {
- operation.setQname(new org.apache.axis.model.ecore.xml.type.internal.QName(elementQName.getNamespaceURI(), elementQName.getLocalPart(), "operNS"));
+ operation.setQname(elementQName);
}
if (returnQName != null) {
- operation.setReturnQName(new org.apache.axis.model.ecore.xml.type.internal.QName(returnQName.getNamespaceURI(), Utils.getLastLocalPart(returnQName.getLocalPart()), "retNS"));
+ operation.setReturnQName(new QName(returnQName.getNamespaceURI(), Utils.getLastLocalPart(returnQName.getLocalPart())));
}
if (returnType != null) {
- operation.setReturnQName(new org.apache.axis.model.ecore.xml.type.internal.QName(returnType.getNamespaceURI(), returnType.getLocalPart(), "rtns"));
+ operation.setReturnQName(returnType);
}
Parameter retParam = params.returnParam;
@@ -536,11 +536,11 @@ protected void writeOperation(org.apache.axis.model.wsdd.Service service, String
TypeEntry type = retParam.getType();
QName returnItemQName = Utils.getItemQName(type);
if (returnItemQName != null) {
- operation.setReturnItemQName(new org.apache.axis.model.ecore.xml.type.internal.QName(returnItemQName.getNamespaceURI(), returnItemQName.getLocalPart(), "tns"));
+ operation.setReturnItemQName(returnItemQName);
}
QName returnItemType = Utils.getItemType(type);
if (returnItemType != null && use == Use.ENCODED) {
- operation.setReturnItemType(new org.apache.axis.model.ecore.xml.type.internal.QName(returnItemType.getNamespaceURI(), returnItemType.getLocalPart(), "tns2"));
+ operation.setReturnItemType(returnItemType);
}
}
@@ -573,10 +573,10 @@ protected void writeOperation(org.apache.axis.model.wsdd.Service service, String
if (paramQName == null) {
parameter.setName(param.getName());
} else {
- parameter.setQname(new org.apache.axis.model.ecore.xml.type.internal.QName(paramQName.getNamespaceURI(), Utils.getLastLocalPart(paramQName.getLocalPart()), "pns"));
+ parameter.setQname(new QName(paramQName.getNamespaceURI(), Utils.getLastLocalPart(paramQName.getLocalPart())));
}
- parameter.setType(new org.apache.axis.model.ecore.xml.type.internal.QName(paramType.getNamespaceURI(), paramType.getLocalPart(), "tns"));
+ parameter.setType(paramType);
// Get the parameter mode
if (param.getMode() != Parameter.IN) {
@@ -594,7 +594,7 @@ protected void writeOperation(org.apache.axis.model.wsdd.Service service, String
QName itemQName = Utils.getItemQName(param.getType());
if (itemQName != null) {
- parameter.setItemQName(new org.apache.axis.model.ecore.xml.type.internal.QName(itemQName.getNamespaceURI(), itemQName.getLocalPart(), "itns"));
+ parameter.setItemQName(itemQName);
}
operation.getParameters().add(parameter);
@@ -612,10 +612,9 @@ protected void writeOperation(org.apache.axis.model.wsdd.Service service, String
Fault fault = WSDDFactory.eINSTANCE.createFault();
fault.setName(faultInfo.getName());
- fault.setQname(new org.apache.axis.model.ecore.xml.type.internal.QName(faultQName.getNamespaceURI(), faultQName.getLocalPart(), "fns"));
+ fault.setQname(faultQName);
fault.setClass(className);
- QName type = faultInfo.getXMLType();
- fault.setType(new org.apache.axis.model.ecore.xml.type.internal.QName(type.getNamespaceURI(), type.getLocalPart(), "tns"));
+ fault.setType(faultInfo.getXMLType());
operation.getFaults().add(fault);
}
}
diff --git a/axis-model/pom.xml b/axis-model/pom.xml
index 2ad5457ab..aa0965ad1 100644
--- a/axis-model/pom.xml
+++ b/axis-model/pom.xml
@@ -28,6 +28,12 @@
axis-modelEMF Model for WSDD Files
+
+
+ ${project.groupId}
+ axis-jaxrpc
+ ${project.version}
+ org.eclipse.emfcommon
diff --git a/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLHelper.java b/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLHelper.java
new file mode 100644
index 000000000..d81be19f7
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLHelper.java
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.model.util;
+
+import javax.xml.namespace.QName;
+
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.xmi.XMLHelper;
+import org.eclipse.emf.ecore.xmi.XMLResource;
+import org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl;
+
+/**
+ * Custom {@link XMLHelper} that adds support for {@link QName}. This is necessary because we use an
+ * EMF version compatible with Java 1.4 and that version doesn't support {@link QName} (because it's
+ * not included in the JRE). Instead it uses its own class to represent QNames. Since Axis depends
+ * on {@link QName} anyway, we add support for it here.
+ *
+ * @author Andreas Veithen
+ */
+// TODO: this is actually not entirely correct; Axis may generate QNames that are not strictly valid (such as "ns:>fault") and they should be represented using a specific class
+public class AxisXMLHelper extends XMLHelperImpl {
+ public AxisXMLHelper(XMLResource resource) {
+ super(resource);
+ }
+
+ protected String updateQNamePrefix(EFactory factory, EDataType dataType, Object value, boolean list) {
+ if (!list && value instanceof QName) {
+ QName qname = (QName)value;
+ String namespace = qname.getNamespaceURI();
+ if (namespace.length() == 0) {
+ return qname.getLocalPart();
+ } else {
+ EPackage ePackage = extendedMetaData.getPackage(namespace);
+ if (ePackage == null) {
+ ePackage = extendedMetaData.demandPackage(namespace);
+ }
+ String prefix = getPrefix(ePackage, true);
+ if (!packages.containsKey(ePackage)) {
+ packages.put(ePackage, prefix);
+ }
+ return prefix + ":" + qname.getLocalPart();
+ }
+ } else {
+ return super.updateQNamePrefix(factory, dataType, value, list);
+ }
+ }
+}
diff --git a/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLResource.java b/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLResource.java
new file mode 100644
index 000000000..a8fb67420
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLResource.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.model.util;
+
+import org.eclipse.emf.ecore.xmi.XMLHelper;
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+
+/**
+ * {@link XMLHelper} implementation that uses {@link AxisXMLHelper}.
+ *
+ * @author Andreas Veithen
+ */
+public class AxisXMLResource extends XMLResourceImpl {
+ protected XMLHelper createXMLHelper() {
+ return new AxisXMLHelper(this);
+ }
+}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
index c5e5eb790..d9cd5dd79 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
@@ -21,14 +21,14 @@
import java.io.IOException;
import java.io.Writer;
-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+import org.apache.axis.model.util.AxisXMLResource;
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
public final class WSDDUtil {
private WSDDUtil() {}
public static void write(Deployment deployment, Writer writer) throws IOException {
- XMLResourceImpl resource = new XMLResourceImpl();
+ AxisXMLResource resource = new AxisXMLResource();
XMLProcessor processor = new XMLProcessor();
resource.getContents().add(deployment);
processor.save(writer, resource, null);
From 6c140cbb89582100a9d801c864bae790bae7e978 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Wed, 5 Dec 2012 12:31:12 +0000
Subject: [PATCH 052/197] Don't write XML declaration when serializing to a
Writer.
---
.../src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
index d9cd5dd79..859150572 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
@@ -20,8 +20,11 @@
import java.io.IOException;
import java.io.Writer;
+import java.util.HashMap;
+import java.util.Map;
import org.apache.axis.model.util.AxisXMLResource;
+import org.eclipse.emf.ecore.xmi.XMLResource;
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
public final class WSDDUtil {
@@ -31,6 +34,8 @@ public static void write(Deployment deployment, Writer writer) throws IOExceptio
AxisXMLResource resource = new AxisXMLResource();
XMLProcessor processor = new XMLProcessor();
resource.getContents().add(deployment);
- processor.save(writer, resource, null);
+ Map options = new HashMap();
+ options.put(XMLResource.OPTION_DECLARE_XML, Boolean.FALSE);
+ processor.save(writer, resource, options);
}
}
From 58e0a81d47d4c14b99fb8c6a500ced222d8569d9 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Wed, 5 Dec 2012 18:22:25 +0000
Subject: [PATCH 053/197] Some code simplifications.
---
.../axis/wsdl/toJava/JavaDeployWriter.java | 38 +++++--------------
1 file changed, 10 insertions(+), 28 deletions(-)
diff --git a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
index 456f287b0..b1754318c 100644
--- a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
+++ b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
@@ -230,8 +230,6 @@ protected void writeDeployTypes(
}
if (process) {
- String namespaceURI = type.getQName().getNamespaceURI();
- String localPart = type.getQName().getLocalPart();
String javaType = type.getName();
String serializerFactory;
String deserializerFactory;
@@ -281,7 +279,7 @@ protected void writeDeployTypes(
if (innerType == null) {
// no arrays
TypeMapping typeMapping = WSDDFactory.eINSTANCE.createTypeMapping();
- typeMapping.setQname(new QName(namespaceURI, localPart));
+ typeMapping.setQname(type.getQName());
typeMapping.setType(new QName(WSDDConstants.URI_WSDD_JAVA, javaType));
typeMapping.setSerializer(serializerFactory);
typeMapping.setDeserializer(deserializerFactory);
@@ -290,7 +288,7 @@ protected void writeDeployTypes(
} else {
// arrays
ArrayMapping arrayMapping = WSDDFactory.eINSTANCE.createArrayMapping();
- arrayMapping.setQname(new QName(namespaceURI, localPart));
+ arrayMapping.setQname(type.getQName());
arrayMapping.setType(new QName(WSDDConstants.URI_WSDD_JAVA, javaType));
arrayMapping.setEncodingStyle(encodingStyle);
arrayMapping.setInnerType(innerType);
@@ -519,40 +517,27 @@ protected void writeOperation(org.apache.axis.model.wsdd.Service service, String
operation.setName(javaOperName);
- if (elementQName != null) {
- operation.setQname(elementQName);
- }
+ operation.setQname(elementQName);
if (returnQName != null) {
operation.setReturnQName(new QName(returnQName.getNamespaceURI(), Utils.getLastLocalPart(returnQName.getLocalPart())));
}
- if (returnType != null) {
- operation.setReturnQName(returnType);
- }
+ operation.setReturnQName(returnType);
Parameter retParam = params.returnParam;
if (retParam != null) {
TypeEntry type = retParam.getType();
- QName returnItemQName = Utils.getItemQName(type);
- if (returnItemQName != null) {
- operation.setReturnItemQName(returnItemQName);
- }
- QName returnItemType = Utils.getItemType(type);
- if (returnItemType != null && use == Use.ENCODED) {
- operation.setReturnItemType(returnItemType);
+ operation.setReturnItemQName(Utils.getItemQName(type));
+ if (use == Use.ENCODED) {
+ operation.setReturnItemType(Utils.getItemType(type));
}
}
- if (SOAPAction != null) {
- operation.setSoapAction(SOAPAction);
- }
+ operation.setSoapAction(SOAPAction);
if (!OperationType.REQUEST_RESPONSE.equals(params.mep)) {
- String mepString = getMepString(params.mep);
- if (mepString != null) {
- operation.setMep(mepString);
- }
+ operation.setMep(getMepString(params.mep));
}
if ((params.returnParam != null) && params.returnParam.isOutHeader()) {
@@ -592,10 +577,7 @@ protected void writeOperation(org.apache.axis.model.wsdd.Service service, String
parameter.setOutHeader(Boolean.TRUE);
}
- QName itemQName = Utils.getItemQName(param.getType());
- if (itemQName != null) {
- parameter.setItemQName(itemQName);
- }
+ parameter.setItemQName(Utils.getItemQName(param.getType()));
operation.getParameters().add(parameter);
}
From 5140fc0b00cbd88fe5c56f26fc243975cd725e39 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Wed, 5 Dec 2012 20:47:30 +0000
Subject: [PATCH 054/197] Fixed some issues to make the build succeed again.
---
.../axis/wsdl/toJava/JavaDeployWriter.java | 6 ++--
axis-model/model/wsdd.ecore | 9 +++--
.../org/apache/axis/model/wsdd/Mapping.java | 3 +-
.../java/org/apache/axis/model/wsdd/Use.java | 36 +++++++++----------
.../axis/model/wsdd/impl/MappingImpl.java | 2 +-
.../axis/model/wsdd/impl/ServiceImpl.java | 2 +-
.../axis/model/wsdd/impl/WSDDPackageImpl.java | 4 +--
7 files changed, 30 insertions(+), 32 deletions(-)
diff --git a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
index b1754318c..80a4f6deb 100644
--- a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
+++ b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
@@ -340,8 +340,8 @@ protected void writeDeployPort(
org.apache.axis.model.wsdd.Service wsddService = WSDDFactory.eINSTANCE.createService();
wsddService.setName(serviceName);
wsddService.setProvider(new QName(WSDDConstants.URI_WSDD_JAVA, "RPC"));
- wsddService.setStyle(org.apache.axis.model.wsdd.Style.getByName(style.getName()));
- wsddService.setUse(org.apache.axis.model.wsdd.Use.getByName(use.getName()));
+ wsddService.setStyle(org.apache.axis.model.wsdd.Style.get(style.getValue()));
+ wsddService.setUse(org.apache.axis.model.wsdd.Use.get(use.getValue()));
wsddService.setParameter("wsdlTargetNamespace", service.getQName().getNamespaceURI());
wsddService.setParameter("wsdlServiceElement", service.getQName().getLocalPart());
// MIME attachments don't work with multiref, so turn it off.
@@ -523,7 +523,7 @@ protected void writeOperation(org.apache.axis.model.wsdd.Service service, String
operation.setReturnQName(new QName(returnQName.getNamespaceURI(), Utils.getLastLocalPart(returnQName.getLocalPart())));
}
- operation.setReturnQName(returnType);
+ operation.setReturnType(returnType);
Parameter retParam = params.returnParam;
if (retParam != null) {
diff --git a/axis-model/model/wsdd.ecore b/axis-model/model/wsdd.ecore
index 1ff916fdd..e647b416d 100644
--- a/axis-model/model/wsdd.ecore
+++ b/axis-model/model/wsdd.ecore
@@ -4,8 +4,8 @@
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="wsdd"
nsURI="http://xml.apache.org/axis/wsdd/" nsPrefix="wsdd">
-
-
+
+
@@ -14,7 +14,7 @@
-
+
@@ -25,8 +25,7 @@
-
+
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java
index b79cb90ed..1b2048cdc 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java
@@ -81,7 +81,6 @@ public interface Mapping extends EObject {
/**
* Returns the value of the 'Encoding Style' attribute.
- * The default value is "".
*
*
* If the meaning of the 'Encoding Style' attribute isn't clear,
@@ -91,7 +90,7 @@ public interface Mapping extends EObject {
* @return the value of the 'Encoding Style' attribute.
* @see #setEncodingStyle(String)
* @see org.apache.axis.model.wsdd.WSDDPackage#getMapping_EncodingStyle()
- * @model default=""
+ * @model
* @generated
*/
String getEncodingStyle();
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
index 41e1245bd..355935714 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
@@ -23,54 +23,54 @@
*/
public final class Use extends AbstractEnumerator {
/**
- * The 'LITERAL' literal value.
+ * The 'ENCODED' literal value.
*
*
- * If the meaning of 'LITERAL' literal object isn't clear,
+ * If the meaning of 'ENCODED' literal object isn't clear,
* there really should be more of a description here...
*
*
- * @see #LITERAL_LITERAL
- * @model literal="literal"
+ * @see #ENCODED_LITERAL
+ * @model literal="encoded"
* @generated
* @ordered
*/
- public static final int LITERAL = 0;
+ public static final int ENCODED = 0;
/**
- * The 'ENCODED' literal value.
+ * The 'LITERAL' literal value.
*
*
- * If the meaning of 'ENCODED' literal object isn't clear,
+ * If the meaning of 'LITERAL' literal object isn't clear,
* there really should be more of a description here...
*
*
- * @see #ENCODED_LITERAL
- * @model literal="encoded"
+ * @see #LITERAL_LITERAL
+ * @model literal="literal"
* @generated
* @ordered
*/
- public static final int ENCODED = 1;
+ public static final int LITERAL = 1;
/**
- * The 'LITERAL' literal object.
+ * The 'ENCODED' literal object.
*
*
- * @see #LITERAL
+ * @see #ENCODED
* @generated
* @ordered
*/
- public static final Use LITERAL_LITERAL = new Use(LITERAL, "LITERAL", "literal");
+ public static final Use ENCODED_LITERAL = new Use(ENCODED, "ENCODED", "encoded");
/**
- * The 'ENCODED' literal object.
+ * The 'LITERAL' literal object.
*
*
- * @see #ENCODED
+ * @see #LITERAL
* @generated
* @ordered
*/
- public static final Use ENCODED_LITERAL = new Use(ENCODED, "ENCODED", "encoded");
+ public static final Use LITERAL_LITERAL = new Use(LITERAL, "LITERAL", "literal");
/**
* An array of all the 'Use' enumerators.
@@ -80,8 +80,8 @@ public final class Use extends AbstractEnumerator {
*/
private static final Use[] VALUES_ARRAY =
new Use[] {
- LITERAL_LITERAL,
ENCODED_LITERAL,
+ LITERAL_LITERAL,
};
/**
@@ -132,8 +132,8 @@ public static Use getByName(String name) {
*/
public static Use get(int value) {
switch (value) {
- case LITERAL: return LITERAL_LITERAL;
case ENCODED: return ENCODED_LITERAL;
+ case LITERAL: return LITERAL_LITERAL;
}
return null;
}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java
index 5fb36558b..d21385c1a 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java
@@ -77,7 +77,7 @@ public abstract class MappingImpl extends EObjectImpl implements Mapping {
* @generated
* @ordered
*/
- protected static final String ENCODING_STYLE_EDEFAULT = "";
+ protected static final String ENCODING_STYLE_EDEFAULT = null;
/**
* The cached value of the '{@link #getEncodingStyle() Encoding Style}' attribute.
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
index ec3350eb8..af0d76d87 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
@@ -79,7 +79,7 @@ public class ServiceImpl extends DeployableItemImpl implements Service {
* @generated
* @ordered
*/
- protected static final Use USE_EDEFAULT = Use.LITERAL_LITERAL;
+ protected static final Use USE_EDEFAULT = Use.ENCODED_LITERAL;
/**
* The cached value of the '{@link #getUse() Use}' attribute.
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
index fbc9227bf..09c5dfc10 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
@@ -825,7 +825,7 @@ public void initializePackageContents() {
initEClass(mappingEClass, Mapping.class, "Mapping", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getMapping_Qname(), theXMLTypePackage.getQName(), "qname", null, 0, 1, Mapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getMapping_Type(), theXMLTypePackage.getQName(), "type", null, 0, 1, Mapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMapping_EncodingStyle(), ecorePackage.getEString(), "encodingStyle", "", 0, 1, Mapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMapping_EncodingStyle(), ecorePackage.getEString(), "encodingStyle", null, 0, 1, Mapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(typeMappingEClass, TypeMapping.class, "TypeMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getTypeMapping_Serializer(), ecorePackage.getEString(), "serializer", null, 0, 1, TypeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -886,8 +886,8 @@ public void initializePackageContents() {
// Initialize enums and add enum literals
initEEnum(useEEnum, Use.class, "Use");
- addEEnumLiteral(useEEnum, Use.LITERAL_LITERAL);
addEEnumLiteral(useEEnum, Use.ENCODED_LITERAL);
+ addEEnumLiteral(useEEnum, Use.LITERAL_LITERAL);
initEEnum(styleEEnum, Style.class, "Style");
addEEnumLiteral(styleEEnum, Style.RPC_LITERAL);
From 71bd4581d95931b520c0f572eccf69a3fddd9649 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Wed, 5 Dec 2012 22:06:57 +0000
Subject: [PATCH 055/197] Removed references to EMF classes and interfaces.
---
.../axis/wsdl/toJava/JavaDeployWriter.java | 16 +-
axis-model/model/wsdd.genmodel | 51 +-
.../apache/axis/model/wsdd/ArrayMapping.java | 2 -
.../apache/axis/model/wsdd/BeanMapping.java | 1 -
.../axis/model/wsdd/DeployableItem.java | 6 +-
.../apache/axis/model/wsdd/Deployment.java | 10 +-
.../org/apache/axis/model/wsdd/Fault.java | 9 +-
.../org/apache/axis/model/wsdd/Mapping.java | 8 +-
.../org/apache/axis/model/wsdd/Operation.java | 22 +-
.../axis/model/wsdd/OperationParameter.java | 12 +-
.../org/apache/axis/model/wsdd/Parameter.java | 7 +-
.../apache/axis/model/wsdd/ParameterMode.java | 24 +-
.../org/apache/axis/model/wsdd/Service.java | 21 +-
.../org/apache/axis/model/wsdd/Style.java | 24 +-
.../apache/axis/model/wsdd/TypeMapping.java | 3 -
.../java/org/apache/axis/model/wsdd/Use.java | 24 +-
.../apache/axis/model/wsdd/WSDDFactory.java | 17 +-
.../apache/axis/model/wsdd/WSDDPackage.java | 1818 -----------------
.../model/wsdd/impl/ArrayMappingImpl.java | 11 +-
.../axis/model/wsdd/impl/BeanMappingImpl.java | 3 +-
.../model/wsdd/impl/DeployableItemImpl.java | 11 +-
.../axis/model/wsdd/impl/DeploymentImpl.java | 16 +-
.../axis/model/wsdd/impl/FaultImpl.java | 35 +-
.../axis/model/wsdd/impl/MappingImpl.java | 27 +-
.../axis/model/wsdd/impl/OperationImpl.java | 100 +-
.../wsdd/impl/OperationParameterImpl.java | 59 +-
.../axis/model/wsdd/impl/ParameterImpl.java | 19 +-
.../axis/model/wsdd/impl/ServiceImpl.java | 90 +-
.../axis/model/wsdd/impl/TypeMappingImpl.java | 19 +-
.../axis/model/wsdd/impl/WSDDFactoryImpl.java | 50 +-
.../axis/model/wsdd/impl/WSDDPackageImpl.java | 1418 ++++++++++++-
31 files changed, 1763 insertions(+), 2170 deletions(-)
delete mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java
diff --git a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
index 80a4f6deb..46a1c17ad 100644
--- a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
+++ b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
@@ -153,7 +153,7 @@ protected void writeFileHeader(PrintWriter pw) throws IOException {
* @throws IOException
*/
protected void writeFileBody(PrintWriter pw) throws IOException {
- Deployment deployment = WSDDFactory.eINSTANCE.createDeployment();
+ Deployment deployment = WSDDFactory.INSTANCE.createDeployment();
writeDeployServices(deployment);
WSDDUtil.write(deployment, pw);
} // writeFileBody
@@ -206,7 +206,7 @@ protected void writeDeployTypes(
if (hasMIME) {
QName bQName = binding.getQName();
- TypeMapping typeMapping = WSDDFactory.eINSTANCE.createTypeMapping();
+ TypeMapping typeMapping = WSDDFactory.INSTANCE.createTypeMapping();
typeMapping.setQname(new QName(bQName.getNamespaceURI(), "DataHandler"));
typeMapping.setType(new QName(WSDDConstants.URI_WSDD_JAVA, "javax.activation.DataHandler", WSDDConstants.NS_PREFIX_WSDD_JAVA));
typeMapping.setSerializer("org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory");
@@ -278,7 +278,7 @@ protected void writeDeployTypes(
if (innerType == null) {
// no arrays
- TypeMapping typeMapping = WSDDFactory.eINSTANCE.createTypeMapping();
+ TypeMapping typeMapping = WSDDFactory.INSTANCE.createTypeMapping();
typeMapping.setQname(type.getQName());
typeMapping.setType(new QName(WSDDConstants.URI_WSDD_JAVA, javaType));
typeMapping.setSerializer(serializerFactory);
@@ -287,7 +287,7 @@ protected void writeDeployTypes(
service.getTypeMappings().add(typeMapping);
} else {
// arrays
- ArrayMapping arrayMapping = WSDDFactory.eINSTANCE.createArrayMapping();
+ ArrayMapping arrayMapping = WSDDFactory.INSTANCE.createArrayMapping();
arrayMapping.setQname(type.getQName());
arrayMapping.setType(new QName(WSDDConstants.URI_WSDD_JAVA, javaType));
arrayMapping.setEncodingStyle(encodingStyle);
@@ -337,7 +337,7 @@ protected void writeDeployPort(
}
}
- org.apache.axis.model.wsdd.Service wsddService = WSDDFactory.eINSTANCE.createService();
+ org.apache.axis.model.wsdd.Service wsddService = WSDDFactory.INSTANCE.createService();
wsddService.setName(serviceName);
wsddService.setProvider(new QName(WSDDConstants.URI_WSDD_JAVA, "RPC"));
wsddService.setStyle(org.apache.axis.model.wsdd.Style.get(style.getValue()));
@@ -513,7 +513,7 @@ protected void writeOperation(org.apache.axis.model.wsdd.Service service, String
QName bindingQName, ArrayList faults,
String SOAPAction) {
- org.apache.axis.model.wsdd.Operation operation = WSDDFactory.eINSTANCE.createOperation();
+ org.apache.axis.model.wsdd.Operation operation = WSDDFactory.INSTANCE.createOperation();
operation.setName(javaOperName);
@@ -553,7 +553,7 @@ protected void writeOperation(org.apache.axis.model.wsdd.Service service, String
QName paramQName = param.getQName();
QName paramType = Utils.getXSIType(param);
- OperationParameter parameter = WSDDFactory.eINSTANCE.createOperationParameter();
+ OperationParameter parameter = WSDDFactory.INSTANCE.createOperationParameter();
if (paramQName == null) {
parameter.setName(param.getName());
@@ -592,7 +592,7 @@ protected void writeOperation(org.apache.axis.model.wsdd.Service service, String
Utils.getFullExceptionName(faultInfo.getMessage(),
symbolTable);
- Fault fault = WSDDFactory.eINSTANCE.createFault();
+ Fault fault = WSDDFactory.INSTANCE.createFault();
fault.setName(faultInfo.getName());
fault.setQname(faultQName);
fault.setClass(className);
diff --git a/axis-model/model/wsdd.genmodel b/axis-model/model/wsdd.genmodel
index ba5b43d6b..d5e4d29d5 100644
--- a/axis-model/model/wsdd.genmodel
+++ b/axis-model/model/wsdd.genmodel
@@ -3,17 +3,18 @@
xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/axis-model/src/main/java"
editDirectory="" editorDirectory="" modelPluginID="" redirection="" modelName="Wsdd"
- editPluginClass="" editorPluginClass="" updateClasspath="false" testsDirectory=""
- testSuiteClass="" importerID="org.eclipse.emf.importer.ecore" bundleManifest="false"
- suppressNotification="true" suppressGenModelAnnotations="false" copyrightFields="false"
- binaryCompatibleReflectiveMethods="true" editPluginID="" editorPluginID="" runtimeVersion="2.2"
- language="" interfaceNamePattern="" classNamePattern="">
+ editPluginClass="" editorPluginClass="" updateClasspath="false" rootExtendsInterface=""
+ suppressEMFTypes="true" suppressEMFMetaData="true" testsDirectory="" testSuiteClass=""
+ importerID="org.eclipse.emf.importer.ecore" bundleManifest="false" suppressNotification="true"
+ suppressGenModelAnnotations="false" copyrightFields="false" binaryCompatibleReflectiveMethods="true"
+ editPluginID="" editorPluginID="" runtimeVersion="2.2" language="" interfaceNamePattern=""
+ classNamePattern="">
wsdd.ecore
-
+
@@ -21,6 +22,11 @@
+
+
+
+
+
@@ -38,6 +44,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -46,9 +80,14 @@
+
+
+
+
+
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java
index c3895c6f1..feede138c 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java
@@ -19,7 +19,6 @@
*
*
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getArrayMapping()
* @model
* @generated
*/
@@ -34,7 +33,6 @@ public interface ArrayMapping extends Mapping {
*
* @return the value of the 'Inner Type' attribute.
* @see #setInnerType(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getArrayMapping_InnerType()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/BeanMapping.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/BeanMapping.java
index 955f0a0ca..651df1a13 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/BeanMapping.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/BeanMapping.java
@@ -13,7 +13,6 @@
*
*
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getBeanMapping()
* @model
* @generated
*/
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
index 6053d4078..79e3cbe0d 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
@@ -6,8 +6,6 @@
*/
package org.apache.axis.model.wsdd;
-import org.eclipse.emf.ecore.EObject;
-
/**
*
* A representation of the model object 'Deployable Item'.
@@ -20,11 +18,10 @@
*
*
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getDeployableItem()
* @model abstract="true"
* @generated
*/
-public interface DeployableItem extends EObject {
+public interface DeployableItem {
/**
* Returns the value of the 'Name' attribute.
*
@@ -35,7 +32,6 @@ public interface DeployableItem extends EObject {
*
* @return the value of the 'Name' attribute.
* @see #setName(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getDeployableItem_Name()
* @model
* @generated
*/
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
index 9edb66154..77dc4b022 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
@@ -6,9 +6,7 @@
*/
package org.apache.axis.model.wsdd;
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
+import java.util.List;
/**
*
@@ -22,11 +20,10 @@
*
*
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getDeployment()
* @model extendedMetaData="name='deployment' kind='element'"
* @generated
*/
-public interface Deployment extends EObject {
+public interface Deployment {
/**
* Returns the value of the 'Services' containment reference list.
* The list contents are of type {@link org.apache.axis.model.wsdd.Service}.
@@ -37,11 +34,10 @@ public interface Deployment extends EObject {
*
*
* @return the value of the 'Services' containment reference list.
- * @see org.apache.axis.model.wsdd.WSDDPackage#getDeployment_Services()
* @model type="org.apache.axis.model.wsdd.Service" containment="true"
* extendedMetaData="name='service' kind='element' namespace='##targetNamespace'"
* @generated
*/
- EList getServices();
+ List getServices();
} // Deployment
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Fault.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Fault.java
index faa1a1415..4b30151c3 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Fault.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Fault.java
@@ -6,8 +6,6 @@
*/
package org.apache.axis.model.wsdd;
-import org.eclipse.emf.ecore.EObject;
-
/**
*
* A representation of the model object 'Fault'.
@@ -23,11 +21,10 @@
*
*
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getFault()
* @model
* @generated
*/
-public interface Fault extends EObject {
+public interface Fault {
/**
* Returns the value of the 'Name' attribute.
*
@@ -38,7 +35,6 @@ public interface Fault extends EObject {
*
* @return the value of the 'Name' attribute.
* @see #setName(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getFault_Name()
* @model
* @generated
*/
@@ -64,7 +60,6 @@ public interface Fault extends EObject {
*
* @return the value of the 'Qname' attribute.
* @see #setQname(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getFault_Qname()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
@@ -90,7 +85,6 @@ public interface Fault extends EObject {
*
* @return the value of the 'Class' attribute.
* @see #setClass(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getFault_Class()
* @model
* @generated
*/
@@ -116,7 +110,6 @@ public interface Fault extends EObject {
*
* @return the value of the 'Type' attribute.
* @see #setType(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getFault_Type()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java
index 1b2048cdc..37892ed3f 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java
@@ -6,8 +6,6 @@
*/
package org.apache.axis.model.wsdd;
-import org.eclipse.emf.ecore.EObject;
-
/**
*
* A representation of the model object 'Mapping'.
@@ -22,11 +20,10 @@
*
*
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getMapping()
* @model abstract="true"
* @generated
*/
-public interface Mapping extends EObject {
+public interface Mapping {
/**
* Returns the value of the 'Qname' attribute.
*
@@ -37,7 +34,6 @@ public interface Mapping extends EObject {
*
* @return the value of the 'Qname' attribute.
* @see #setQname(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getMapping_Qname()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
@@ -63,7 +59,6 @@ public interface Mapping extends EObject {
*
* @return the value of the 'Type' attribute.
* @see #setType(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getMapping_Type()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
@@ -89,7 +84,6 @@ public interface Mapping extends EObject {
*
* @return the value of the 'Encoding Style' attribute.
* @see #setEncodingStyle(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getMapping_EncodingStyle()
* @model
* @generated
*/
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Operation.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Operation.java
index d4d42642d..ddbe32fca 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Operation.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Operation.java
@@ -6,9 +6,7 @@
*/
package org.apache.axis.model.wsdd;
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
+import java.util.List;
/**
*
@@ -32,11 +30,10 @@
*
*
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation()
* @model
* @generated
*/
-public interface Operation extends EObject {
+public interface Operation {
/**
* Returns the value of the 'Name' attribute.
*
@@ -47,7 +44,6 @@ public interface Operation extends EObject {
*
* @return the value of the 'Name' attribute.
* @see #setName(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_Name()
* @model
* @generated
*/
@@ -73,7 +69,6 @@ public interface Operation extends EObject {
*
* @return the value of the 'Qname' attribute.
* @see #setQname(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_Qname()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
@@ -99,7 +94,6 @@ public interface Operation extends EObject {
*
* @return the value of the 'Return QName' attribute.
* @see #setReturnQName(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_ReturnQName()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
@@ -125,7 +119,6 @@ public interface Operation extends EObject {
*
* @return the value of the 'Return Type' attribute.
* @see #setReturnType(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_ReturnType()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
@@ -151,7 +144,6 @@ public interface Operation extends EObject {
*
* @return the value of the 'Return Item QName' attribute.
* @see #setReturnItemQName(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_ReturnItemQName()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
@@ -177,7 +169,6 @@ public interface Operation extends EObject {
*
* @return the value of the 'Return Item Type' attribute.
* @see #setReturnItemType(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_ReturnItemType()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
@@ -203,7 +194,6 @@ public interface Operation extends EObject {
*
* @return the value of the 'Soap Action' attribute.
* @see #setSoapAction(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_SoapAction()
* @model
* @generated
*/
@@ -229,7 +219,6 @@ public interface Operation extends EObject {
*
* @return the value of the 'Mep' attribute.
* @see #setMep(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_Mep()
* @model
* @generated
*/
@@ -255,7 +244,6 @@ public interface Operation extends EObject {
*
* @return the value of the 'Return Header' attribute.
* @see #setReturnHeader(Boolean)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_ReturnHeader()
* @model
* @generated
*/
@@ -281,12 +269,11 @@ public interface Operation extends EObject {
*
*
* @return the value of the 'Parameters' containment reference list.
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_Parameters()
* @model type="org.apache.axis.model.wsdd.OperationParameter" containment="true"
* extendedMetaData="kind='element' name='parameter' namespace='##targetNamespace'"
* @generated
*/
- EList getParameters();
+ List getParameters();
/**
* Returns the value of the 'Faults' containment reference list.
@@ -298,11 +285,10 @@ public interface Operation extends EObject {
*
*
* @return the value of the 'Faults' containment reference list.
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperation_Faults()
* @model type="org.apache.axis.model.wsdd.Fault" containment="true"
* extendedMetaData="kind='element' name='fault' namespace='##targetNamespace'"
* @generated
*/
- EList getFaults();
+ List getFaults();
} // Operation
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/OperationParameter.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/OperationParameter.java
index 14bcacd4d..0fdc89761 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/OperationParameter.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/OperationParameter.java
@@ -6,8 +6,6 @@
*/
package org.apache.axis.model.wsdd;
-import org.eclipse.emf.ecore.EObject;
-
/**
*
* A representation of the model object 'Operation Parameter'.
@@ -26,11 +24,10 @@
*
*
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter()
* @model
* @generated
*/
-public interface OperationParameter extends EObject {
+public interface OperationParameter {
/**
* Returns the value of the 'Name' attribute.
*
@@ -41,7 +38,6 @@ public interface OperationParameter extends EObject {
*
* @return the value of the 'Name' attribute.
* @see #setName(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_Name()
* @model
* @generated
*/
@@ -67,7 +63,6 @@ public interface OperationParameter extends EObject {
*
* @return the value of the 'Qname' attribute.
* @see #setQname(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_Qname()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
@@ -93,7 +88,6 @@ public interface OperationParameter extends EObject {
*
* @return the value of the 'Type' attribute.
* @see #setType(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_Type()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
@@ -121,7 +115,6 @@ public interface OperationParameter extends EObject {
* @return the value of the 'Mode' attribute.
* @see org.apache.axis.model.wsdd.ParameterMode
* @see #setMode(ParameterMode)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_Mode()
* @model
* @generated
*/
@@ -148,7 +141,6 @@ public interface OperationParameter extends EObject {
*
* @return the value of the 'In Header' attribute.
* @see #setInHeader(Boolean)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_InHeader()
* @model
* @generated
*/
@@ -174,7 +166,6 @@ public interface OperationParameter extends EObject {
*
* @return the value of the 'Out Header' attribute.
* @see #setOutHeader(Boolean)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_OutHeader()
* @model
* @generated
*/
@@ -200,7 +191,6 @@ public interface OperationParameter extends EObject {
*
* @return the value of the 'Item QName' attribute.
* @see #setItemQName(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getOperationParameter_ItemQName()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Parameter.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Parameter.java
index 267d80ed8..475e4e368 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Parameter.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Parameter.java
@@ -6,8 +6,6 @@
*/
package org.apache.axis.model.wsdd;
-import org.eclipse.emf.ecore.EObject;
-
/**
*
* A representation of the model object 'Parameter'.
@@ -21,11 +19,10 @@
*
*
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getParameter()
* @model
* @generated
*/
-public interface Parameter extends EObject {
+public interface Parameter {
/**
* Returns the value of the 'Name' attribute.
*
@@ -36,7 +33,6 @@ public interface Parameter extends EObject {
*
* @return the value of the 'Name' attribute.
* @see #setName(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getParameter_Name()
* @model
* @generated
*/
@@ -62,7 +58,6 @@ public interface Parameter extends EObject {
*
* @return the value of the 'Value' attribute.
* @see #setValue(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getParameter_Value()
* @model
* @generated
*/
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/ParameterMode.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/ParameterMode.java
index 1f1aa1d65..129488839 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/ParameterMode.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/ParameterMode.java
@@ -10,18 +10,16 @@
import java.util.Collections;
import java.util.List;
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
/**
*
* A representation of the literals of the enumeration 'Parameter Mode',
* and utility methods for working with them.
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getParameterMode()
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameterMode()
* @model
* @generated
*/
-public final class ParameterMode extends AbstractEnumerator {
+public final class ParameterMode extends InternalParameterMode {
/**
* The 'IN' literal value.
*
@@ -176,3 +174,21 @@ private ParameterMode(int value, String name, String literal) {
}
} //ParameterMode
+
+/**
+ * A private implementation class to construct the instances.
+ *
+ *
+ * @generated
+ */
+class InternalParameterMode extends org.eclipse.emf.common.util.AbstractEnumerator {
+ /**
+ * Only this class can construct instances.
+ *
+ *
+ * @generated
+ */
+ protected InternalParameterMode(int value, String name, String literal) {
+ super(value, name, literal);
+ }
+}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
index 69600c35a..afc331595 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
@@ -6,7 +6,7 @@
*/
package org.apache.axis.model.wsdd;
-import org.eclipse.emf.common.util.EList;
+import java.util.List;
/**
*
@@ -27,7 +27,6 @@
*
*
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getService()
* @model
* @generated
*/
@@ -42,7 +41,6 @@ public interface Service extends DeployableItem {
*
* @return the value of the 'Provider' attribute.
* @see #setProvider(Object)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getService_Provider()
* @model dataType="org.eclipse.emf.ecore.xml.type.QName"
* @generated
*/
@@ -70,7 +68,6 @@ public interface Service extends DeployableItem {
* @return the value of the 'Use' attribute.
* @see org.apache.axis.model.wsdd.Use
* @see #setUse(Use)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getService_Use()
* @model
* @generated
*/
@@ -99,7 +96,6 @@ public interface Service extends DeployableItem {
* @return the value of the 'Style' attribute.
* @see org.apache.axis.model.wsdd.Style
* @see #setStyle(Style)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getService_Style()
* @model
* @generated
*/
@@ -126,12 +122,11 @@ public interface Service extends DeployableItem {
*
*
* @return the value of the 'Parameters' containment reference list.
- * @see org.apache.axis.model.wsdd.WSDDPackage#getService_Parameters()
* @model type="org.apache.axis.model.wsdd.Parameter" containment="true"
* extendedMetaData="kind='element' name='parameter' namespace='##targetNamespace'"
* @generated
*/
- EList getParameters();
+ List getParameters();
/**
* Returns the value of the 'Operations' containment reference list.
@@ -143,12 +138,11 @@ public interface Service extends DeployableItem {
*
*
* @return the value of the 'Operations' containment reference list.
- * @see org.apache.axis.model.wsdd.WSDDPackage#getService_Operations()
* @model type="org.apache.axis.model.wsdd.Operation" containment="true"
* extendedMetaData="kind='element' name='operation' namespace='##targetNamespace'"
* @generated
*/
- EList getOperations();
+ List getOperations();
/**
* Returns the value of the 'Type Mappings' containment reference list.
@@ -160,12 +154,11 @@ public interface Service extends DeployableItem {
*
*
* @return the value of the 'Type Mappings' containment reference list.
- * @see org.apache.axis.model.wsdd.WSDDPackage#getService_TypeMappings()
* @model type="org.apache.axis.model.wsdd.TypeMapping" containment="true"
* extendedMetaData="kind='element' name='typeMapping' namespace='##targetNamespace'"
* @generated
*/
- EList getTypeMappings();
+ List getTypeMappings();
/**
* Returns the value of the 'Bean Mappings' containment reference list.
@@ -177,12 +170,11 @@ public interface Service extends DeployableItem {
*
*
* @return the value of the 'Bean Mappings' containment reference list.
- * @see org.apache.axis.model.wsdd.WSDDPackage#getService_BeanMappings()
* @model type="org.apache.axis.model.wsdd.BeanMapping" containment="true"
* extendedMetaData="kind='element' name='beanMapping' namespace='##targetNamespace'"
* @generated
*/
- EList getBeanMappings();
+ List getBeanMappings();
/**
* Returns the value of the 'Array Mappings' containment reference list.
@@ -194,12 +186,11 @@ public interface Service extends DeployableItem {
*
*
* @return the value of the 'Array Mappings' containment reference list.
- * @see org.apache.axis.model.wsdd.WSDDPackage#getService_ArrayMappings()
* @model type="org.apache.axis.model.wsdd.ArrayMapping" containment="true"
* extendedMetaData="kind='element' name='arrayMapping' namespace='##targetNamespace'"
* @generated
*/
- EList getArrayMappings();
+ List getArrayMappings();
/**
*
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java
index 6f9593371..18e51fa4b 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java
@@ -10,18 +10,16 @@
import java.util.Collections;
import java.util.List;
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
/**
*
* A representation of the literals of the enumeration 'Style',
* and utility methods for working with them.
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getStyle()
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
* @model
* @generated
*/
-public final class Style extends AbstractEnumerator {
+public final class Style extends InternalStyle {
/**
* The 'RPC' literal value.
*
@@ -203,3 +201,21 @@ private Style(int value, String name, String literal) {
}
} //Style
+
+/**
+ * A private implementation class to construct the instances.
+ *
+ *
+ * @generated
+ */
+class InternalStyle extends org.eclipse.emf.common.util.AbstractEnumerator {
+ /**
+ * Only this class can construct instances.
+ *
+ *
+ * @generated
+ */
+ protected InternalStyle(int value, String name, String literal) {
+ super(value, name, literal);
+ }
+}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/TypeMapping.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/TypeMapping.java
index 9df832e05..a89f3ca9d 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/TypeMapping.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/TypeMapping.java
@@ -20,7 +20,6 @@
*
*
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getTypeMapping()
* @model
* @generated
*/
@@ -35,7 +34,6 @@ public interface TypeMapping extends Mapping {
*
* @return the value of the 'Serializer' attribute.
* @see #setSerializer(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getTypeMapping_Serializer()
* @model
* @generated
*/
@@ -61,7 +59,6 @@ public interface TypeMapping extends Mapping {
*
* @return the value of the 'Deserializer' attribute.
* @see #setDeserializer(String)
- * @see org.apache.axis.model.wsdd.WSDDPackage#getTypeMapping_Deserializer()
* @model
* @generated
*/
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
index 355935714..d1fe709bd 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
@@ -10,18 +10,16 @@
import java.util.Collections;
import java.util.List;
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
/**
*
* A representation of the literals of the enumeration 'Use',
* and utility methods for working with them.
*
- * @see org.apache.axis.model.wsdd.WSDDPackage#getUse()
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
* @model
* @generated
*/
-public final class Use extends AbstractEnumerator {
+public final class Use extends InternalUse {
/**
* The 'ENCODED' literal value.
*
@@ -149,3 +147,21 @@ private Use(int value, String name, String literal) {
}
} //Use
+
+/**
+ * A private implementation class to construct the instances.
+ *
+ *
+ * @generated
+ */
+class InternalUse extends org.eclipse.emf.common.util.AbstractEnumerator {
+ /**
+ * Only this class can construct instances.
+ *
+ *
+ * @generated
+ */
+ protected InternalUse(int value, String name, String literal) {
+ super(value, name, literal);
+ }
+}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
index 909c0bca8..bb9072659 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
@@ -6,25 +6,21 @@
*/
package org.apache.axis.model.wsdd;
-import org.eclipse.emf.ecore.EFactory;
-
/**
*
* The Factory for the model.
* It provides a create method for each non-abstract class of the model.
*
- * @see org.apache.axis.model.wsdd.WSDDPackage
* @generated
*/
-public interface WSDDFactory extends EFactory {
+public interface WSDDFactory {
/**
* The singleton instance of the factory.
*
*
* @generated
*/
- WSDDFactory eINSTANCE = org.apache.axis.model.wsdd.impl.WSDDFactoryImpl.init();
-
+ WSDDFactory INSTANCE = org.apache.axis.model.wsdd.impl.WSDDFactoryImpl.eINSTANCE;
/**
* Returns a new object of class 'Parameter'.
*
@@ -106,13 +102,4 @@ public interface WSDDFactory extends EFactory {
*/
Deployment createDeployment();
- /**
- * Returns the package supported by this factory.
- *
- *
- * @return the package supported by this factory.
- * @generated
- */
- WSDDPackage getWSDDPackage();
-
} //WSDDFactory
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java
deleted file mode 100644
index 50cd4ab80..000000000
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDPackage.java
+++ /dev/null
@@ -1,1818 +0,0 @@
-/**
- *
- *
- *
- * $Id$
- */
-package org.apache.axis.model.wsdd;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- *
- * The Package for the model.
- * It contains accessors for the meta objects to represent
- *
- *
each class,
- *
each feature of each class,
- *
each enum,
- *
and each data type
- *
- *
- * @see org.apache.axis.model.wsdd.WSDDFactory
- * @model kind="package"
- * @generated
- */
-public interface WSDDPackage extends EPackage {
- /**
- * The package name.
- *
- *
- * @generated
- */
- String eNAME = "wsdd";
-
- /**
- * The package namespace URI.
- *
- *
- * @generated
- */
- String eNS_URI = "http://xml.apache.org/axis/wsdd/";
-
- /**
- * The package namespace name.
- *
- *
- * @generated
- */
- String eNS_PREFIX = "wsdd";
-
- /**
- * The singleton instance of the package.
- *
- *
- * @generated
- */
- WSDDPackage eINSTANCE = org.apache.axis.model.wsdd.impl.WSDDPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.ParameterImpl Parameter}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.ParameterImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameter()
- * @generated
- */
- int PARAMETER = 0;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int PARAMETER__NAME = 0;
-
- /**
- * The feature id for the 'Value' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int PARAMETER__VALUE = 1;
-
- /**
- * The number of structural features of the 'Parameter' class.
- *
- *
- * @generated
- * @ordered
- */
- int PARAMETER_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.MappingImpl Mapping}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.MappingImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getMapping()
- * @generated
- */
- int MAPPING = 1;
-
- /**
- * The feature id for the 'Qname' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int MAPPING__QNAME = 0;
-
- /**
- * The feature id for the 'Type' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int MAPPING__TYPE = 1;
-
- /**
- * The feature id for the 'Encoding Style' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int MAPPING__ENCODING_STYLE = 2;
-
- /**
- * The number of structural features of the 'Mapping' class.
- *
- *
- * @generated
- * @ordered
- */
- int MAPPING_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.TypeMappingImpl Type Mapping}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.TypeMappingImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getTypeMapping()
- * @generated
- */
- int TYPE_MAPPING = 2;
-
- /**
- * The feature id for the 'Qname' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int TYPE_MAPPING__QNAME = MAPPING__QNAME;
-
- /**
- * The feature id for the 'Type' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int TYPE_MAPPING__TYPE = MAPPING__TYPE;
-
- /**
- * The feature id for the 'Encoding Style' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int TYPE_MAPPING__ENCODING_STYLE = MAPPING__ENCODING_STYLE;
-
- /**
- * The feature id for the 'Serializer' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int TYPE_MAPPING__SERIALIZER = MAPPING_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the 'Deserializer' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int TYPE_MAPPING__DESERIALIZER = MAPPING_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the 'Type Mapping' class.
- *
- *
- * @generated
- * @ordered
- */
- int TYPE_MAPPING_FEATURE_COUNT = MAPPING_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.ArrayMappingImpl Array Mapping}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.ArrayMappingImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getArrayMapping()
- * @generated
- */
- int ARRAY_MAPPING = 3;
-
- /**
- * The feature id for the 'Qname' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int ARRAY_MAPPING__QNAME = MAPPING__QNAME;
-
- /**
- * The feature id for the 'Type' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int ARRAY_MAPPING__TYPE = MAPPING__TYPE;
-
- /**
- * The feature id for the 'Encoding Style' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int ARRAY_MAPPING__ENCODING_STYLE = MAPPING__ENCODING_STYLE;
-
- /**
- * The feature id for the 'Inner Type' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int ARRAY_MAPPING__INNER_TYPE = MAPPING_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the 'Array Mapping' class.
- *
- *
- * @generated
- * @ordered
- */
- int ARRAY_MAPPING_FEATURE_COUNT = MAPPING_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.BeanMappingImpl Bean Mapping}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.BeanMappingImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getBeanMapping()
- * @generated
- */
- int BEAN_MAPPING = 4;
-
- /**
- * The feature id for the 'Qname' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int BEAN_MAPPING__QNAME = MAPPING__QNAME;
-
- /**
- * The feature id for the 'Type' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int BEAN_MAPPING__TYPE = MAPPING__TYPE;
-
- /**
- * The feature id for the 'Encoding Style' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int BEAN_MAPPING__ENCODING_STYLE = MAPPING__ENCODING_STYLE;
-
- /**
- * The number of structural features of the 'Bean Mapping' class.
- *
- *
- * @generated
- * @ordered
- */
- int BEAN_MAPPING_FEATURE_COUNT = MAPPING_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.OperationParameterImpl Operation Parameter}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.OperationParameterImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperationParameter()
- * @generated
- */
- int OPERATION_PARAMETER = 5;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION_PARAMETER__NAME = 0;
-
- /**
- * The feature id for the 'Qname' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION_PARAMETER__QNAME = 1;
-
- /**
- * The feature id for the 'Type' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION_PARAMETER__TYPE = 2;
-
- /**
- * The feature id for the 'Mode' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION_PARAMETER__MODE = 3;
-
- /**
- * The feature id for the 'In Header' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION_PARAMETER__IN_HEADER = 4;
-
- /**
- * The feature id for the 'Out Header' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION_PARAMETER__OUT_HEADER = 5;
-
- /**
- * The feature id for the 'Item QName' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION_PARAMETER__ITEM_QNAME = 6;
-
- /**
- * The number of structural features of the 'Operation Parameter' class.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION_PARAMETER_FEATURE_COUNT = 7;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.FaultImpl Fault}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.FaultImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getFault()
- * @generated
- */
- int FAULT = 6;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int FAULT__NAME = 0;
-
- /**
- * The feature id for the 'Qname' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int FAULT__QNAME = 1;
-
- /**
- * The feature id for the 'Class' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int FAULT__CLASS = 2;
-
- /**
- * The feature id for the 'Type' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int FAULT__TYPE = 3;
-
- /**
- * The number of structural features of the 'Fault' class.
- *
- *
- * @generated
- * @ordered
- */
- int FAULT_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.OperationImpl Operation}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.OperationImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperation()
- * @generated
- */
- int OPERATION = 7;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION__NAME = 0;
-
- /**
- * The feature id for the 'Qname' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION__QNAME = 1;
-
- /**
- * The feature id for the 'Return QName' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION__RETURN_QNAME = 2;
-
- /**
- * The feature id for the 'Return Type' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION__RETURN_TYPE = 3;
-
- /**
- * The feature id for the 'Return Item QName' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION__RETURN_ITEM_QNAME = 4;
-
- /**
- * The feature id for the 'Return Item Type' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION__RETURN_ITEM_TYPE = 5;
-
- /**
- * The feature id for the 'Soap Action' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION__SOAP_ACTION = 6;
-
- /**
- * The feature id for the 'Mep' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION__MEP = 7;
-
- /**
- * The feature id for the 'Return Header' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION__RETURN_HEADER = 8;
-
- /**
- * The feature id for the 'Parameters' containment reference list.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION__PARAMETERS = 9;
-
- /**
- * The feature id for the 'Faults' containment reference list.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION__FAULTS = 10;
-
- /**
- * The number of structural features of the 'Operation' class.
- *
- *
- * @generated
- * @ordered
- */
- int OPERATION_FEATURE_COUNT = 11;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.DeployableItemImpl Deployable Item}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.DeployableItemImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployableItem()
- * @generated
- */
- int DEPLOYABLE_ITEM = 8;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int DEPLOYABLE_ITEM__NAME = 0;
-
- /**
- * The number of structural features of the 'Deployable Item' class.
- *
- *
- * @generated
- * @ordered
- */
- int DEPLOYABLE_ITEM_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.ServiceImpl Service}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.ServiceImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getService()
- * @generated
- */
- int SERVICE = 9;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int SERVICE__NAME = DEPLOYABLE_ITEM__NAME;
-
- /**
- * The feature id for the 'Provider' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int SERVICE__PROVIDER = DEPLOYABLE_ITEM_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the 'Use' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int SERVICE__USE = DEPLOYABLE_ITEM_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the 'Style' attribute.
- *
- *
- * @generated
- * @ordered
- */
- int SERVICE__STYLE = DEPLOYABLE_ITEM_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the 'Parameters' containment reference list.
- *
- *
- * @generated
- * @ordered
- */
- int SERVICE__PARAMETERS = DEPLOYABLE_ITEM_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the 'Operations' containment reference list.
- *
- *
- * @generated
- * @ordered
- */
- int SERVICE__OPERATIONS = DEPLOYABLE_ITEM_FEATURE_COUNT + 4;
-
- /**
- * The feature id for the 'Type Mappings' containment reference list.
- *
- *
- * @generated
- * @ordered
- */
- int SERVICE__TYPE_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 5;
-
- /**
- * The feature id for the 'Bean Mappings' containment reference list.
- *
- *
- * @generated
- * @ordered
- */
- int SERVICE__BEAN_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 6;
-
- /**
- * The feature id for the 'Array Mappings' containment reference list.
- *
- *
- * @generated
- * @ordered
- */
- int SERVICE__ARRAY_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 7;
-
- /**
- * The number of structural features of the 'Service' class.
- *
- *
- * @generated
- * @ordered
- */
- int SERVICE_FEATURE_COUNT = DEPLOYABLE_ITEM_FEATURE_COUNT + 8;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.DeploymentImpl Deployment}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.DeploymentImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployment()
- * @generated
- */
- int DEPLOYMENT = 10;
-
- /**
- * The feature id for the 'Services' containment reference list.
- *
- *
- * @generated
- * @ordered
- */
- int DEPLOYMENT__SERVICES = 0;
-
- /**
- * The number of structural features of the 'Deployment' class.
- *
- *
- * @generated
- * @ordered
- */
- int DEPLOYMENT_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.Use Use}' enum.
- *
- *
- * @see org.apache.axis.model.wsdd.Use
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
- * @generated
- */
- int USE = 11;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.Style Style}' enum.
- *
- *
- * @see org.apache.axis.model.wsdd.Style
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
- * @generated
- */
- int STYLE = 12;
-
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}' enum.
- *
- *
- * @see org.apache.axis.model.wsdd.ParameterMode
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameterMode()
- * @generated
- */
- int PARAMETER_MODE = 13;
-
-
- /**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Parameter Parameter}'.
- *
- *
- * @return the meta object for class 'Parameter'.
- * @see org.apache.axis.model.wsdd.Parameter
- * @generated
- */
- EClass getParameter();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Parameter#getName Name}'.
- *
- *
- * @return the meta object for the attribute 'Name'.
- * @see org.apache.axis.model.wsdd.Parameter#getName()
- * @see #getParameter()
- * @generated
- */
- EAttribute getParameter_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Parameter#getValue Value}'.
- *
- *
- * @return the meta object for the attribute 'Value'.
- * @see org.apache.axis.model.wsdd.Parameter#getValue()
- * @see #getParameter()
- * @generated
- */
- EAttribute getParameter_Value();
-
- /**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Mapping Mapping}'.
- *
- *
- * @return the meta object for class 'Mapping'.
- * @see org.apache.axis.model.wsdd.Mapping
- * @generated
- */
- EClass getMapping();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getQname Qname}'.
- *
- *
- * @return the meta object for the attribute 'Qname'.
- * @see org.apache.axis.model.wsdd.Mapping#getQname()
- * @see #getMapping()
- * @generated
- */
- EAttribute getMapping_Qname();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getType Type}'.
- *
- *
- * @return the meta object for the attribute 'Type'.
- * @see org.apache.axis.model.wsdd.Mapping#getType()
- * @see #getMapping()
- * @generated
- */
- EAttribute getMapping_Type();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getEncodingStyle Encoding Style}'.
- *
- *
- * @return the meta object for the attribute 'Encoding Style'.
- * @see org.apache.axis.model.wsdd.Mapping#getEncodingStyle()
- * @see #getMapping()
- * @generated
- */
- EAttribute getMapping_EncodingStyle();
-
- /**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.TypeMapping Type Mapping}'.
- *
- *
- * @return the meta object for class 'Type Mapping'.
- * @see org.apache.axis.model.wsdd.TypeMapping
- * @generated
- */
- EClass getTypeMapping();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.TypeMapping#getSerializer Serializer}'.
- *
- *
- * @return the meta object for the attribute 'Serializer'.
- * @see org.apache.axis.model.wsdd.TypeMapping#getSerializer()
- * @see #getTypeMapping()
- * @generated
- */
- EAttribute getTypeMapping_Serializer();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.TypeMapping#getDeserializer Deserializer}'.
- *
- *
- * @return the meta object for the attribute 'Deserializer'.
- * @see org.apache.axis.model.wsdd.TypeMapping#getDeserializer()
- * @see #getTypeMapping()
- * @generated
- */
- EAttribute getTypeMapping_Deserializer();
-
- /**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.ArrayMapping Array Mapping}'.
- *
- *
- * @return the meta object for class 'Array Mapping'.
- * @see org.apache.axis.model.wsdd.ArrayMapping
- * @generated
- */
- EClass getArrayMapping();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.ArrayMapping#getInnerType Inner Type}'.
- *
- *
- * @return the meta object for the attribute 'Inner Type'.
- * @see org.apache.axis.model.wsdd.ArrayMapping#getInnerType()
- * @see #getArrayMapping()
- * @generated
- */
- EAttribute getArrayMapping_InnerType();
-
- /**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.BeanMapping Bean Mapping}'.
- *
- *
- * @return the meta object for class 'Bean Mapping'.
- * @see org.apache.axis.model.wsdd.BeanMapping
- * @generated
- */
- EClass getBeanMapping();
-
- /**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.OperationParameter Operation Parameter}'.
- *
- *
- * @return the meta object for class 'Operation Parameter'.
- * @see org.apache.axis.model.wsdd.OperationParameter
- * @generated
- */
- EClass getOperationParameter();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getName Name}'.
- *
- *
- * @return the meta object for the attribute 'Name'.
- * @see org.apache.axis.model.wsdd.OperationParameter#getName()
- * @see #getOperationParameter()
- * @generated
- */
- EAttribute getOperationParameter_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getQname Qname}'.
- *
- *
- * @return the meta object for the attribute 'Qname'.
- * @see org.apache.axis.model.wsdd.OperationParameter#getQname()
- * @see #getOperationParameter()
- * @generated
- */
- EAttribute getOperationParameter_Qname();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getType Type}'.
- *
- *
- * @return the meta object for the attribute 'Type'.
- * @see org.apache.axis.model.wsdd.OperationParameter#getType()
- * @see #getOperationParameter()
- * @generated
- */
- EAttribute getOperationParameter_Type();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getMode Mode}'.
- *
- *
- * @return the meta object for the attribute 'Mode'.
- * @see org.apache.axis.model.wsdd.OperationParameter#getMode()
- * @see #getOperationParameter()
- * @generated
- */
- EAttribute getOperationParameter_Mode();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getInHeader In Header}'.
- *
- *
- * @return the meta object for the attribute 'In Header'.
- * @see org.apache.axis.model.wsdd.OperationParameter#getInHeader()
- * @see #getOperationParameter()
- * @generated
- */
- EAttribute getOperationParameter_InHeader();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getOutHeader Out Header}'.
- *
- *
- * @return the meta object for the attribute 'Out Header'.
- * @see org.apache.axis.model.wsdd.OperationParameter#getOutHeader()
- * @see #getOperationParameter()
- * @generated
- */
- EAttribute getOperationParameter_OutHeader();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getItemQName Item QName}'.
- *
- *
- * @return the meta object for the attribute 'Item QName'.
- * @see org.apache.axis.model.wsdd.OperationParameter#getItemQName()
- * @see #getOperationParameter()
- * @generated
- */
- EAttribute getOperationParameter_ItemQName();
-
- /**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Fault Fault}'.
- *
- *
- * @return the meta object for class 'Fault'.
- * @see org.apache.axis.model.wsdd.Fault
- * @generated
- */
- EClass getFault();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getName Name}'.
- *
- *
- * @return the meta object for the attribute 'Name'.
- * @see org.apache.axis.model.wsdd.Fault#getName()
- * @see #getFault()
- * @generated
- */
- EAttribute getFault_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getQname Qname}'.
- *
- *
- * @return the meta object for the attribute 'Qname'.
- * @see org.apache.axis.model.wsdd.Fault#getQname()
- * @see #getFault()
- * @generated
- */
- EAttribute getFault_Qname();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getClass_ Class}'.
- *
- *
- * @return the meta object for the attribute 'Class'.
- * @see org.apache.axis.model.wsdd.Fault#getClass_()
- * @see #getFault()
- * @generated
- */
- EAttribute getFault_Class();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getType Type}'.
- *
- *
- * @return the meta object for the attribute 'Type'.
- * @see org.apache.axis.model.wsdd.Fault#getType()
- * @see #getFault()
- * @generated
- */
- EAttribute getFault_Type();
-
- /**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Operation Operation}'.
- *
- *
- * @return the meta object for class 'Operation'.
- * @see org.apache.axis.model.wsdd.Operation
- * @generated
- */
- EClass getOperation();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getName Name}'.
- *
- *
- * @return the meta object for the attribute 'Name'.
- * @see org.apache.axis.model.wsdd.Operation#getName()
- * @see #getOperation()
- * @generated
- */
- EAttribute getOperation_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getQname Qname}'.
- *
- *
- * @return the meta object for the attribute 'Qname'.
- * @see org.apache.axis.model.wsdd.Operation#getQname()
- * @see #getOperation()
- * @generated
- */
- EAttribute getOperation_Qname();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnQName Return QName}'.
- *
- *
- * @return the meta object for the attribute 'Return QName'.
- * @see org.apache.axis.model.wsdd.Operation#getReturnQName()
- * @see #getOperation()
- * @generated
- */
- EAttribute getOperation_ReturnQName();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnType Return Type}'.
- *
- *
- * @return the meta object for the attribute 'Return Type'.
- * @see org.apache.axis.model.wsdd.Operation#getReturnType()
- * @see #getOperation()
- * @generated
- */
- EAttribute getOperation_ReturnType();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnItemQName Return Item QName}'.
- *
- *
- * @return the meta object for the attribute 'Return Item QName'.
- * @see org.apache.axis.model.wsdd.Operation#getReturnItemQName()
- * @see #getOperation()
- * @generated
- */
- EAttribute getOperation_ReturnItemQName();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnItemType Return Item Type}'.
- *
- *
- * @return the meta object for the attribute 'Return Item Type'.
- * @see org.apache.axis.model.wsdd.Operation#getReturnItemType()
- * @see #getOperation()
- * @generated
- */
- EAttribute getOperation_ReturnItemType();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getSoapAction Soap Action}'.
- *
- *
- * @return the meta object for the attribute 'Soap Action'.
- * @see org.apache.axis.model.wsdd.Operation#getSoapAction()
- * @see #getOperation()
- * @generated
- */
- EAttribute getOperation_SoapAction();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getMep Mep}'.
- *
- *
- * @return the meta object for the attribute 'Mep'.
- * @see org.apache.axis.model.wsdd.Operation#getMep()
- * @see #getOperation()
- * @generated
- */
- EAttribute getOperation_Mep();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnHeader Return Header}'.
- *
- *
- * @return the meta object for the attribute 'Return Header'.
- * @see org.apache.axis.model.wsdd.Operation#getReturnHeader()
- * @see #getOperation()
- * @generated
- */
- EAttribute getOperation_ReturnHeader();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Operation#getParameters Parameters}'.
- *
- *
- * @return the meta object for the containment reference list 'Parameters'.
- * @see org.apache.axis.model.wsdd.Operation#getParameters()
- * @see #getOperation()
- * @generated
- */
- EReference getOperation_Parameters();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Operation#getFaults Faults}'.
- *
- *
- * @return the meta object for the containment reference list 'Faults'.
- * @see org.apache.axis.model.wsdd.Operation#getFaults()
- * @see #getOperation()
- * @generated
- */
- EReference getOperation_Faults();
-
- /**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.DeployableItem Deployable Item}'.
- *
- *
- * @return the meta object for class 'Deployable Item'.
- * @see org.apache.axis.model.wsdd.DeployableItem
- * @generated
- */
- EClass getDeployableItem();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.DeployableItem#getName Name}'.
- *
- *
- * @return the meta object for the attribute 'Name'.
- * @see org.apache.axis.model.wsdd.DeployableItem#getName()
- * @see #getDeployableItem()
- * @generated
- */
- EAttribute getDeployableItem_Name();
-
- /**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Service Service}'.
- *
- *
- * @return the meta object for class 'Service'.
- * @see org.apache.axis.model.wsdd.Service
- * @generated
- */
- EClass getService();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Service#getProvider Provider}'.
- *
- *
- * @return the meta object for the attribute 'Provider'.
- * @see org.apache.axis.model.wsdd.Service#getProvider()
- * @see #getService()
- * @generated
- */
- EAttribute getService_Provider();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Service#getUse Use}'.
- *
- *
- * @return the meta object for the attribute 'Use'.
- * @see org.apache.axis.model.wsdd.Service#getUse()
- * @see #getService()
- * @generated
- */
- EAttribute getService_Use();
-
- /**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Service#getStyle Style}'.
- *
- *
- * @return the meta object for the attribute 'Style'.
- * @see org.apache.axis.model.wsdd.Service#getStyle()
- * @see #getService()
- * @generated
- */
- EAttribute getService_Style();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getParameters Parameters}'.
- *
- *
- * @return the meta object for the containment reference list 'Parameters'.
- * @see org.apache.axis.model.wsdd.Service#getParameters()
- * @see #getService()
- * @generated
- */
- EReference getService_Parameters();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getOperations Operations}'.
- *
- *
- * @return the meta object for the containment reference list 'Operations'.
- * @see org.apache.axis.model.wsdd.Service#getOperations()
- * @see #getService()
- * @generated
- */
- EReference getService_Operations();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getTypeMappings Type Mappings}'.
- *
- *
- * @return the meta object for the containment reference list 'Type Mappings'.
- * @see org.apache.axis.model.wsdd.Service#getTypeMappings()
- * @see #getService()
- * @generated
- */
- EReference getService_TypeMappings();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getBeanMappings Bean Mappings}'.
- *
- *
- * @return the meta object for the containment reference list 'Bean Mappings'.
- * @see org.apache.axis.model.wsdd.Service#getBeanMappings()
- * @see #getService()
- * @generated
- */
- EReference getService_BeanMappings();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getArrayMappings Array Mappings}'.
- *
- *
- * @return the meta object for the containment reference list 'Array Mappings'.
- * @see org.apache.axis.model.wsdd.Service#getArrayMappings()
- * @see #getService()
- * @generated
- */
- EReference getService_ArrayMappings();
-
- /**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Deployment Deployment}'.
- *
- *
- * @return the meta object for class 'Deployment'.
- * @see org.apache.axis.model.wsdd.Deployment
- * @generated
- */
- EClass getDeployment();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Deployment#getServices Services}'.
- *
- *
- * @return the meta object for the containment reference list 'Services'.
- * @see org.apache.axis.model.wsdd.Deployment#getServices()
- * @see #getDeployment()
- * @generated
- */
- EReference getDeployment_Services();
-
- /**
- * Returns the meta object for enum '{@link org.apache.axis.model.wsdd.Use Use}'.
- *
- *
- * @return the meta object for enum 'Use'.
- * @see org.apache.axis.model.wsdd.Use
- * @generated
- */
- EEnum getUse();
-
- /**
- * Returns the meta object for enum '{@link org.apache.axis.model.wsdd.Style Style}'.
- *
- *
- * @return the meta object for enum 'Style'.
- * @see org.apache.axis.model.wsdd.Style
- * @generated
- */
- EEnum getStyle();
-
- /**
- * Returns the meta object for enum '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}'.
- *
- *
- * @return the meta object for enum 'Parameter Mode'.
- * @see org.apache.axis.model.wsdd.ParameterMode
- * @generated
- */
- EEnum getParameterMode();
-
- /**
- * Returns the factory that creates the instances of the model.
- *
- *
- * @return the factory that creates the instances of the model.
- * @generated
- */
- WSDDFactory getWSDDFactory();
-
- /**
- *
- * Defines literals for the meta objects that represent
- *
- *
each class,
- *
each feature of each class,
- *
each enum,
- *
and each data type
- *
- *
- * @generated
- */
- interface Literals {
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.ParameterImpl Parameter}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.ParameterImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameter()
- * @generated
- */
- EClass PARAMETER = eINSTANCE.getParameter();
-
- /**
- * The meta object literal for the 'Name' attribute feature.
- *
- *
- * @generated
- */
- EAttribute PARAMETER__NAME = eINSTANCE.getParameter_Name();
-
- /**
- * The meta object literal for the 'Value' attribute feature.
- *
- *
- * @generated
- */
- EAttribute PARAMETER__VALUE = eINSTANCE.getParameter_Value();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.MappingImpl Mapping}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.MappingImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getMapping()
- * @generated
- */
- EClass MAPPING = eINSTANCE.getMapping();
-
- /**
- * The meta object literal for the 'Qname' attribute feature.
- *
- *
- * @generated
- */
- EAttribute MAPPING__QNAME = eINSTANCE.getMapping_Qname();
-
- /**
- * The meta object literal for the 'Type' attribute feature.
- *
- *
- * @generated
- */
- EAttribute MAPPING__TYPE = eINSTANCE.getMapping_Type();
-
- /**
- * The meta object literal for the 'Encoding Style' attribute feature.
- *
- *
- * @generated
- */
- EAttribute MAPPING__ENCODING_STYLE = eINSTANCE.getMapping_EncodingStyle();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.TypeMappingImpl Type Mapping}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.TypeMappingImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getTypeMapping()
- * @generated
- */
- EClass TYPE_MAPPING = eINSTANCE.getTypeMapping();
-
- /**
- * The meta object literal for the 'Serializer' attribute feature.
- *
- *
- * @generated
- */
- EAttribute TYPE_MAPPING__SERIALIZER = eINSTANCE.getTypeMapping_Serializer();
-
- /**
- * The meta object literal for the 'Deserializer' attribute feature.
- *
- *
- * @generated
- */
- EAttribute TYPE_MAPPING__DESERIALIZER = eINSTANCE.getTypeMapping_Deserializer();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.ArrayMappingImpl Array Mapping}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.ArrayMappingImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getArrayMapping()
- * @generated
- */
- EClass ARRAY_MAPPING = eINSTANCE.getArrayMapping();
-
- /**
- * The meta object literal for the 'Inner Type' attribute feature.
- *
- *
- * @generated
- */
- EAttribute ARRAY_MAPPING__INNER_TYPE = eINSTANCE.getArrayMapping_InnerType();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.BeanMappingImpl Bean Mapping}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.BeanMappingImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getBeanMapping()
- * @generated
- */
- EClass BEAN_MAPPING = eINSTANCE.getBeanMapping();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.OperationParameterImpl Operation Parameter}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.OperationParameterImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperationParameter()
- * @generated
- */
- EClass OPERATION_PARAMETER = eINSTANCE.getOperationParameter();
-
- /**
- * The meta object literal for the 'Name' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION_PARAMETER__NAME = eINSTANCE.getOperationParameter_Name();
-
- /**
- * The meta object literal for the 'Qname' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION_PARAMETER__QNAME = eINSTANCE.getOperationParameter_Qname();
-
- /**
- * The meta object literal for the 'Type' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION_PARAMETER__TYPE = eINSTANCE.getOperationParameter_Type();
-
- /**
- * The meta object literal for the 'Mode' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION_PARAMETER__MODE = eINSTANCE.getOperationParameter_Mode();
-
- /**
- * The meta object literal for the 'In Header' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION_PARAMETER__IN_HEADER = eINSTANCE.getOperationParameter_InHeader();
-
- /**
- * The meta object literal for the 'Out Header' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION_PARAMETER__OUT_HEADER = eINSTANCE.getOperationParameter_OutHeader();
-
- /**
- * The meta object literal for the 'Item QName' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION_PARAMETER__ITEM_QNAME = eINSTANCE.getOperationParameter_ItemQName();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.FaultImpl Fault}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.FaultImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getFault()
- * @generated
- */
- EClass FAULT = eINSTANCE.getFault();
-
- /**
- * The meta object literal for the 'Name' attribute feature.
- *
- *
- * @generated
- */
- EAttribute FAULT__NAME = eINSTANCE.getFault_Name();
-
- /**
- * The meta object literal for the 'Qname' attribute feature.
- *
- *
- * @generated
- */
- EAttribute FAULT__QNAME = eINSTANCE.getFault_Qname();
-
- /**
- * The meta object literal for the 'Class' attribute feature.
- *
- *
- * @generated
- */
- EAttribute FAULT__CLASS = eINSTANCE.getFault_Class();
-
- /**
- * The meta object literal for the 'Type' attribute feature.
- *
- *
- * @generated
- */
- EAttribute FAULT__TYPE = eINSTANCE.getFault_Type();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.OperationImpl Operation}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.OperationImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperation()
- * @generated
- */
- EClass OPERATION = eINSTANCE.getOperation();
-
- /**
- * The meta object literal for the 'Name' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION__NAME = eINSTANCE.getOperation_Name();
-
- /**
- * The meta object literal for the 'Qname' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION__QNAME = eINSTANCE.getOperation_Qname();
-
- /**
- * The meta object literal for the 'Return QName' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION__RETURN_QNAME = eINSTANCE.getOperation_ReturnQName();
-
- /**
- * The meta object literal for the 'Return Type' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION__RETURN_TYPE = eINSTANCE.getOperation_ReturnType();
-
- /**
- * The meta object literal for the 'Return Item QName' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION__RETURN_ITEM_QNAME = eINSTANCE.getOperation_ReturnItemQName();
-
- /**
- * The meta object literal for the 'Return Item Type' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION__RETURN_ITEM_TYPE = eINSTANCE.getOperation_ReturnItemType();
-
- /**
- * The meta object literal for the 'Soap Action' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION__SOAP_ACTION = eINSTANCE.getOperation_SoapAction();
-
- /**
- * The meta object literal for the 'Mep' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION__MEP = eINSTANCE.getOperation_Mep();
-
- /**
- * The meta object literal for the 'Return Header' attribute feature.
- *
- *
- * @generated
- */
- EAttribute OPERATION__RETURN_HEADER = eINSTANCE.getOperation_ReturnHeader();
-
- /**
- * The meta object literal for the 'Parameters' containment reference list feature.
- *
- *
- * @generated
- */
- EReference OPERATION__PARAMETERS = eINSTANCE.getOperation_Parameters();
-
- /**
- * The meta object literal for the 'Faults' containment reference list feature.
- *
- *
- * @generated
- */
- EReference OPERATION__FAULTS = eINSTANCE.getOperation_Faults();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.DeployableItemImpl Deployable Item}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.DeployableItemImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployableItem()
- * @generated
- */
- EClass DEPLOYABLE_ITEM = eINSTANCE.getDeployableItem();
-
- /**
- * The meta object literal for the 'Name' attribute feature.
- *
- *
- * @generated
- */
- EAttribute DEPLOYABLE_ITEM__NAME = eINSTANCE.getDeployableItem_Name();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.ServiceImpl Service}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.ServiceImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getService()
- * @generated
- */
- EClass SERVICE = eINSTANCE.getService();
-
- /**
- * The meta object literal for the 'Provider' attribute feature.
- *
- *
- * @generated
- */
- EAttribute SERVICE__PROVIDER = eINSTANCE.getService_Provider();
-
- /**
- * The meta object literal for the 'Use' attribute feature.
- *
- *
- * @generated
- */
- EAttribute SERVICE__USE = eINSTANCE.getService_Use();
-
- /**
- * The meta object literal for the 'Style' attribute feature.
- *
- *
- * @generated
- */
- EAttribute SERVICE__STYLE = eINSTANCE.getService_Style();
-
- /**
- * The meta object literal for the 'Parameters' containment reference list feature.
- *
- *
- * @generated
- */
- EReference SERVICE__PARAMETERS = eINSTANCE.getService_Parameters();
-
- /**
- * The meta object literal for the 'Operations' containment reference list feature.
- *
- *
- * @generated
- */
- EReference SERVICE__OPERATIONS = eINSTANCE.getService_Operations();
-
- /**
- * The meta object literal for the 'Type Mappings' containment reference list feature.
- *
- *
- * @generated
- */
- EReference SERVICE__TYPE_MAPPINGS = eINSTANCE.getService_TypeMappings();
-
- /**
- * The meta object literal for the 'Bean Mappings' containment reference list feature.
- *
- *
- * @generated
- */
- EReference SERVICE__BEAN_MAPPINGS = eINSTANCE.getService_BeanMappings();
-
- /**
- * The meta object literal for the 'Array Mappings' containment reference list feature.
- *
- *
- * @generated
- */
- EReference SERVICE__ARRAY_MAPPINGS = eINSTANCE.getService_ArrayMappings();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.DeploymentImpl Deployment}' class.
- *
- *
- * @see org.apache.axis.model.wsdd.impl.DeploymentImpl
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployment()
- * @generated
- */
- EClass DEPLOYMENT = eINSTANCE.getDeployment();
-
- /**
- * The meta object literal for the 'Services' containment reference list feature.
- *
- *
- * @generated
- */
- EReference DEPLOYMENT__SERVICES = eINSTANCE.getDeployment_Services();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.Use Use}' enum.
- *
- *
- * @see org.apache.axis.model.wsdd.Use
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
- * @generated
- */
- EEnum USE = eINSTANCE.getUse();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.Style Style}' enum.
- *
- *
- * @see org.apache.axis.model.wsdd.Style
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
- * @generated
- */
- EEnum STYLE = eINSTANCE.getStyle();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}' enum.
- *
- *
- * @see org.apache.axis.model.wsdd.ParameterMode
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameterMode()
- * @generated
- */
- EEnum PARAMETER_MODE = eINSTANCE.getParameterMode();
-
- }
-
-} //WSDDPackage
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java
index 3bd8b9b6b..3c1b72417 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java
@@ -7,7 +7,6 @@
package org.apache.axis.model.wsdd.impl;
import org.apache.axis.model.wsdd.ArrayMapping;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.ecore.EClass;
@@ -60,7 +59,7 @@ protected ArrayMappingImpl() {
* @generated
*/
protected EClass eStaticClass() {
- return WSDDPackage.Literals.ARRAY_MAPPING;
+ return WSDDPackageImpl.Literals.ARRAY_MAPPING;
}
/**
@@ -88,7 +87,7 @@ public void setInnerType(Object newInnerType) {
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case WSDDPackage.ARRAY_MAPPING__INNER_TYPE:
+ case WSDDPackageImpl.ARRAY_MAPPING__INNER_TYPE:
return getInnerType();
}
return super.eGet(featureID, resolve, coreType);
@@ -101,7 +100,7 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case WSDDPackage.ARRAY_MAPPING__INNER_TYPE:
+ case WSDDPackageImpl.ARRAY_MAPPING__INNER_TYPE:
setInnerType(newValue);
return;
}
@@ -115,7 +114,7 @@ public void eSet(int featureID, Object newValue) {
*/
public void eUnset(int featureID) {
switch (featureID) {
- case WSDDPackage.ARRAY_MAPPING__INNER_TYPE:
+ case WSDDPackageImpl.ARRAY_MAPPING__INNER_TYPE:
setInnerType(INNER_TYPE_EDEFAULT);
return;
}
@@ -129,7 +128,7 @@ public void eUnset(int featureID) {
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
- case WSDDPackage.ARRAY_MAPPING__INNER_TYPE:
+ case WSDDPackageImpl.ARRAY_MAPPING__INNER_TYPE:
return INNER_TYPE_EDEFAULT == null ? innerType != null : !INNER_TYPE_EDEFAULT.equals(innerType);
}
return super.eIsSet(featureID);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/BeanMappingImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/BeanMappingImpl.java
index ea6524ba3..9065ed225 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/BeanMappingImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/BeanMappingImpl.java
@@ -7,7 +7,6 @@
package org.apache.axis.model.wsdd.impl;
import org.apache.axis.model.wsdd.BeanMapping;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.ecore.EClass;
@@ -36,7 +35,7 @@ protected BeanMappingImpl() {
* @generated
*/
protected EClass eStaticClass() {
- return WSDDPackage.Literals.BEAN_MAPPING;
+ return WSDDPackageImpl.Literals.BEAN_MAPPING;
}
} //BeanMappingImpl
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
index f506cdf45..44ee17649 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
@@ -7,7 +7,6 @@
package org.apache.axis.model.wsdd.impl;
import org.apache.axis.model.wsdd.DeployableItem;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.ecore.EClass;
@@ -62,7 +61,7 @@ protected DeployableItemImpl() {
* @generated
*/
protected EClass eStaticClass() {
- return WSDDPackage.Literals.DEPLOYABLE_ITEM;
+ return WSDDPackageImpl.Literals.DEPLOYABLE_ITEM;
}
/**
@@ -90,7 +89,7 @@ public void setName(String newName) {
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case WSDDPackage.DEPLOYABLE_ITEM__NAME:
+ case WSDDPackageImpl.DEPLOYABLE_ITEM__NAME:
return getName();
}
return super.eGet(featureID, resolve, coreType);
@@ -103,7 +102,7 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case WSDDPackage.DEPLOYABLE_ITEM__NAME:
+ case WSDDPackageImpl.DEPLOYABLE_ITEM__NAME:
setName((String)newValue);
return;
}
@@ -117,7 +116,7 @@ public void eSet(int featureID, Object newValue) {
*/
public void eUnset(int featureID) {
switch (featureID) {
- case WSDDPackage.DEPLOYABLE_ITEM__NAME:
+ case WSDDPackageImpl.DEPLOYABLE_ITEM__NAME:
setName(NAME_EDEFAULT);
return;
}
@@ -131,7 +130,7 @@ public void eUnset(int featureID) {
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
- case WSDDPackage.DEPLOYABLE_ITEM__NAME:
+ case WSDDPackageImpl.DEPLOYABLE_ITEM__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
}
return super.eIsSet(featureID);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java
index c84c33627..15ee16748 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java
@@ -8,9 +8,9 @@
import java.util.Collection;
+import java.util.List;
import org.apache.axis.model.wsdd.Deployment;
import org.apache.axis.model.wsdd.Service;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.common.notify.NotificationChain;
@@ -63,7 +63,7 @@ protected DeploymentImpl() {
* @generated
*/
protected EClass eStaticClass() {
- return WSDDPackage.Literals.DEPLOYMENT;
+ return WSDDPackageImpl.Literals.DEPLOYMENT;
}
/**
@@ -71,7 +71,7 @@ protected EClass eStaticClass() {
*
* @generated
*/
- public EList getServices() {
+ public List getServices() {
if (services == null) {
services = new BasicInternalEList(Service.class);
}
@@ -85,7 +85,7 @@ public EList getServices() {
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case WSDDPackage.DEPLOYMENT__SERVICES:
+ case WSDDPackageImpl.DEPLOYMENT__SERVICES:
return ((InternalEList)getServices()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
@@ -98,7 +98,7 @@ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case WSDDPackage.DEPLOYMENT__SERVICES:
+ case WSDDPackageImpl.DEPLOYMENT__SERVICES:
return getServices();
}
return super.eGet(featureID, resolve, coreType);
@@ -111,7 +111,7 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case WSDDPackage.DEPLOYMENT__SERVICES:
+ case WSDDPackageImpl.DEPLOYMENT__SERVICES:
getServices().clear();
getServices().addAll((Collection)newValue);
return;
@@ -126,7 +126,7 @@ public void eSet(int featureID, Object newValue) {
*/
public void eUnset(int featureID) {
switch (featureID) {
- case WSDDPackage.DEPLOYMENT__SERVICES:
+ case WSDDPackageImpl.DEPLOYMENT__SERVICES:
getServices().clear();
return;
}
@@ -140,7 +140,7 @@ public void eUnset(int featureID) {
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
- case WSDDPackage.DEPLOYMENT__SERVICES:
+ case WSDDPackageImpl.DEPLOYMENT__SERVICES:
return services != null && !services.isEmpty();
}
return super.eIsSet(featureID);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FaultImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FaultImpl.java
index 5f81ff7c9..e54cc7627 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FaultImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FaultImpl.java
@@ -7,7 +7,6 @@
package org.apache.axis.model.wsdd.impl;
import org.apache.axis.model.wsdd.Fault;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.ecore.EClass;
@@ -125,7 +124,7 @@ protected FaultImpl() {
* @generated
*/
protected EClass eStaticClass() {
- return WSDDPackage.Literals.FAULT;
+ return WSDDPackageImpl.Literals.FAULT;
}
/**
@@ -207,13 +206,13 @@ public void setType(Object newType) {
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case WSDDPackage.FAULT__NAME:
+ case WSDDPackageImpl.FAULT__NAME:
return getName();
- case WSDDPackage.FAULT__QNAME:
+ case WSDDPackageImpl.FAULT__QNAME:
return getQname();
- case WSDDPackage.FAULT__CLASS:
+ case WSDDPackageImpl.FAULT__CLASS:
return getClass_();
- case WSDDPackage.FAULT__TYPE:
+ case WSDDPackageImpl.FAULT__TYPE:
return getType();
}
return super.eGet(featureID, resolve, coreType);
@@ -226,16 +225,16 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case WSDDPackage.FAULT__NAME:
+ case WSDDPackageImpl.FAULT__NAME:
setName((String)newValue);
return;
- case WSDDPackage.FAULT__QNAME:
+ case WSDDPackageImpl.FAULT__QNAME:
setQname(newValue);
return;
- case WSDDPackage.FAULT__CLASS:
+ case WSDDPackageImpl.FAULT__CLASS:
setClass((String)newValue);
return;
- case WSDDPackage.FAULT__TYPE:
+ case WSDDPackageImpl.FAULT__TYPE:
setType(newValue);
return;
}
@@ -249,16 +248,16 @@ public void eSet(int featureID, Object newValue) {
*/
public void eUnset(int featureID) {
switch (featureID) {
- case WSDDPackage.FAULT__NAME:
+ case WSDDPackageImpl.FAULT__NAME:
setName(NAME_EDEFAULT);
return;
- case WSDDPackage.FAULT__QNAME:
+ case WSDDPackageImpl.FAULT__QNAME:
setQname(QNAME_EDEFAULT);
return;
- case WSDDPackage.FAULT__CLASS:
+ case WSDDPackageImpl.FAULT__CLASS:
setClass(CLASS_EDEFAULT);
return;
- case WSDDPackage.FAULT__TYPE:
+ case WSDDPackageImpl.FAULT__TYPE:
setType(TYPE_EDEFAULT);
return;
}
@@ -272,13 +271,13 @@ public void eUnset(int featureID) {
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
- case WSDDPackage.FAULT__NAME:
+ case WSDDPackageImpl.FAULT__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case WSDDPackage.FAULT__QNAME:
+ case WSDDPackageImpl.FAULT__QNAME:
return QNAME_EDEFAULT == null ? qname != null : !QNAME_EDEFAULT.equals(qname);
- case WSDDPackage.FAULT__CLASS:
+ case WSDDPackageImpl.FAULT__CLASS:
return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_);
- case WSDDPackage.FAULT__TYPE:
+ case WSDDPackageImpl.FAULT__TYPE:
return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
}
return super.eIsSet(featureID);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java
index d21385c1a..43a7db25a 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java
@@ -7,7 +7,6 @@
package org.apache.axis.model.wsdd.impl;
import org.apache.axis.model.wsdd.Mapping;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.ecore.EClass;
@@ -104,7 +103,7 @@ protected MappingImpl() {
* @generated
*/
protected EClass eStaticClass() {
- return WSDDPackage.Literals.MAPPING;
+ return WSDDPackageImpl.Literals.MAPPING;
}
/**
@@ -168,11 +167,11 @@ public void setEncodingStyle(String newEncodingStyle) {
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case WSDDPackage.MAPPING__QNAME:
+ case WSDDPackageImpl.MAPPING__QNAME:
return getQname();
- case WSDDPackage.MAPPING__TYPE:
+ case WSDDPackageImpl.MAPPING__TYPE:
return getType();
- case WSDDPackage.MAPPING__ENCODING_STYLE:
+ case WSDDPackageImpl.MAPPING__ENCODING_STYLE:
return getEncodingStyle();
}
return super.eGet(featureID, resolve, coreType);
@@ -185,13 +184,13 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case WSDDPackage.MAPPING__QNAME:
+ case WSDDPackageImpl.MAPPING__QNAME:
setQname(newValue);
return;
- case WSDDPackage.MAPPING__TYPE:
+ case WSDDPackageImpl.MAPPING__TYPE:
setType(newValue);
return;
- case WSDDPackage.MAPPING__ENCODING_STYLE:
+ case WSDDPackageImpl.MAPPING__ENCODING_STYLE:
setEncodingStyle((String)newValue);
return;
}
@@ -205,13 +204,13 @@ public void eSet(int featureID, Object newValue) {
*/
public void eUnset(int featureID) {
switch (featureID) {
- case WSDDPackage.MAPPING__QNAME:
+ case WSDDPackageImpl.MAPPING__QNAME:
setQname(QNAME_EDEFAULT);
return;
- case WSDDPackage.MAPPING__TYPE:
+ case WSDDPackageImpl.MAPPING__TYPE:
setType(TYPE_EDEFAULT);
return;
- case WSDDPackage.MAPPING__ENCODING_STYLE:
+ case WSDDPackageImpl.MAPPING__ENCODING_STYLE:
setEncodingStyle(ENCODING_STYLE_EDEFAULT);
return;
}
@@ -225,11 +224,11 @@ public void eUnset(int featureID) {
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
- case WSDDPackage.MAPPING__QNAME:
+ case WSDDPackageImpl.MAPPING__QNAME:
return QNAME_EDEFAULT == null ? qname != null : !QNAME_EDEFAULT.equals(qname);
- case WSDDPackage.MAPPING__TYPE:
+ case WSDDPackageImpl.MAPPING__TYPE:
return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
- case WSDDPackage.MAPPING__ENCODING_STYLE:
+ case WSDDPackageImpl.MAPPING__ENCODING_STYLE:
return ENCODING_STYLE_EDEFAULT == null ? encodingStyle != null : !ENCODING_STYLE_EDEFAULT.equals(encodingStyle);
}
return super.eIsSet(featureID);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationImpl.java
index e986d41db..85b9e4f1d 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationImpl.java
@@ -8,10 +8,10 @@
import java.util.Collection;
+import java.util.List;
import org.apache.axis.model.wsdd.Fault;
import org.apache.axis.model.wsdd.Operation;
import org.apache.axis.model.wsdd.OperationParameter;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.common.notify.NotificationChain;
@@ -264,7 +264,7 @@ protected OperationImpl() {
* @generated
*/
protected EClass eStaticClass() {
- return WSDDPackage.Literals.OPERATION;
+ return WSDDPackageImpl.Literals.OPERATION;
}
/**
@@ -434,7 +434,7 @@ public void setReturnHeader(Boolean newReturnHeader) {
*
* @generated
*/
- public EList getParameters() {
+ public List getParameters() {
if (parameters == null) {
parameters = new BasicInternalEList(OperationParameter.class);
}
@@ -446,7 +446,7 @@ public EList getParameters() {
*
* @generated
*/
- public EList getFaults() {
+ public List getFaults() {
if (faults == null) {
faults = new BasicInternalEList(Fault.class);
}
@@ -460,9 +460,9 @@ public EList getFaults() {
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case WSDDPackage.OPERATION__PARAMETERS:
+ case WSDDPackageImpl.OPERATION__PARAMETERS:
return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs);
- case WSDDPackage.OPERATION__FAULTS:
+ case WSDDPackageImpl.OPERATION__FAULTS:
return ((InternalEList)getFaults()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
@@ -475,27 +475,27 @@ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case WSDDPackage.OPERATION__NAME:
+ case WSDDPackageImpl.OPERATION__NAME:
return getName();
- case WSDDPackage.OPERATION__QNAME:
+ case WSDDPackageImpl.OPERATION__QNAME:
return getQname();
- case WSDDPackage.OPERATION__RETURN_QNAME:
+ case WSDDPackageImpl.OPERATION__RETURN_QNAME:
return getReturnQName();
- case WSDDPackage.OPERATION__RETURN_TYPE:
+ case WSDDPackageImpl.OPERATION__RETURN_TYPE:
return getReturnType();
- case WSDDPackage.OPERATION__RETURN_ITEM_QNAME:
+ case WSDDPackageImpl.OPERATION__RETURN_ITEM_QNAME:
return getReturnItemQName();
- case WSDDPackage.OPERATION__RETURN_ITEM_TYPE:
+ case WSDDPackageImpl.OPERATION__RETURN_ITEM_TYPE:
return getReturnItemType();
- case WSDDPackage.OPERATION__SOAP_ACTION:
+ case WSDDPackageImpl.OPERATION__SOAP_ACTION:
return getSoapAction();
- case WSDDPackage.OPERATION__MEP:
+ case WSDDPackageImpl.OPERATION__MEP:
return getMep();
- case WSDDPackage.OPERATION__RETURN_HEADER:
+ case WSDDPackageImpl.OPERATION__RETURN_HEADER:
return getReturnHeader();
- case WSDDPackage.OPERATION__PARAMETERS:
+ case WSDDPackageImpl.OPERATION__PARAMETERS:
return getParameters();
- case WSDDPackage.OPERATION__FAULTS:
+ case WSDDPackageImpl.OPERATION__FAULTS:
return getFaults();
}
return super.eGet(featureID, resolve, coreType);
@@ -508,38 +508,38 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case WSDDPackage.OPERATION__NAME:
+ case WSDDPackageImpl.OPERATION__NAME:
setName((String)newValue);
return;
- case WSDDPackage.OPERATION__QNAME:
+ case WSDDPackageImpl.OPERATION__QNAME:
setQname(newValue);
return;
- case WSDDPackage.OPERATION__RETURN_QNAME:
+ case WSDDPackageImpl.OPERATION__RETURN_QNAME:
setReturnQName(newValue);
return;
- case WSDDPackage.OPERATION__RETURN_TYPE:
+ case WSDDPackageImpl.OPERATION__RETURN_TYPE:
setReturnType(newValue);
return;
- case WSDDPackage.OPERATION__RETURN_ITEM_QNAME:
+ case WSDDPackageImpl.OPERATION__RETURN_ITEM_QNAME:
setReturnItemQName(newValue);
return;
- case WSDDPackage.OPERATION__RETURN_ITEM_TYPE:
+ case WSDDPackageImpl.OPERATION__RETURN_ITEM_TYPE:
setReturnItemType(newValue);
return;
- case WSDDPackage.OPERATION__SOAP_ACTION:
+ case WSDDPackageImpl.OPERATION__SOAP_ACTION:
setSoapAction((String)newValue);
return;
- case WSDDPackage.OPERATION__MEP:
+ case WSDDPackageImpl.OPERATION__MEP:
setMep((String)newValue);
return;
- case WSDDPackage.OPERATION__RETURN_HEADER:
+ case WSDDPackageImpl.OPERATION__RETURN_HEADER:
setReturnHeader((Boolean)newValue);
return;
- case WSDDPackage.OPERATION__PARAMETERS:
+ case WSDDPackageImpl.OPERATION__PARAMETERS:
getParameters().clear();
getParameters().addAll((Collection)newValue);
return;
- case WSDDPackage.OPERATION__FAULTS:
+ case WSDDPackageImpl.OPERATION__FAULTS:
getFaults().clear();
getFaults().addAll((Collection)newValue);
return;
@@ -554,37 +554,37 @@ public void eSet(int featureID, Object newValue) {
*/
public void eUnset(int featureID) {
switch (featureID) {
- case WSDDPackage.OPERATION__NAME:
+ case WSDDPackageImpl.OPERATION__NAME:
setName(NAME_EDEFAULT);
return;
- case WSDDPackage.OPERATION__QNAME:
+ case WSDDPackageImpl.OPERATION__QNAME:
setQname(QNAME_EDEFAULT);
return;
- case WSDDPackage.OPERATION__RETURN_QNAME:
+ case WSDDPackageImpl.OPERATION__RETURN_QNAME:
setReturnQName(RETURN_QNAME_EDEFAULT);
return;
- case WSDDPackage.OPERATION__RETURN_TYPE:
+ case WSDDPackageImpl.OPERATION__RETURN_TYPE:
setReturnType(RETURN_TYPE_EDEFAULT);
return;
- case WSDDPackage.OPERATION__RETURN_ITEM_QNAME:
+ case WSDDPackageImpl.OPERATION__RETURN_ITEM_QNAME:
setReturnItemQName(RETURN_ITEM_QNAME_EDEFAULT);
return;
- case WSDDPackage.OPERATION__RETURN_ITEM_TYPE:
+ case WSDDPackageImpl.OPERATION__RETURN_ITEM_TYPE:
setReturnItemType(RETURN_ITEM_TYPE_EDEFAULT);
return;
- case WSDDPackage.OPERATION__SOAP_ACTION:
+ case WSDDPackageImpl.OPERATION__SOAP_ACTION:
setSoapAction(SOAP_ACTION_EDEFAULT);
return;
- case WSDDPackage.OPERATION__MEP:
+ case WSDDPackageImpl.OPERATION__MEP:
setMep(MEP_EDEFAULT);
return;
- case WSDDPackage.OPERATION__RETURN_HEADER:
+ case WSDDPackageImpl.OPERATION__RETURN_HEADER:
setReturnHeader(RETURN_HEADER_EDEFAULT);
return;
- case WSDDPackage.OPERATION__PARAMETERS:
+ case WSDDPackageImpl.OPERATION__PARAMETERS:
getParameters().clear();
return;
- case WSDDPackage.OPERATION__FAULTS:
+ case WSDDPackageImpl.OPERATION__FAULTS:
getFaults().clear();
return;
}
@@ -598,27 +598,27 @@ public void eUnset(int featureID) {
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
- case WSDDPackage.OPERATION__NAME:
+ case WSDDPackageImpl.OPERATION__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case WSDDPackage.OPERATION__QNAME:
+ case WSDDPackageImpl.OPERATION__QNAME:
return QNAME_EDEFAULT == null ? qname != null : !QNAME_EDEFAULT.equals(qname);
- case WSDDPackage.OPERATION__RETURN_QNAME:
+ case WSDDPackageImpl.OPERATION__RETURN_QNAME:
return RETURN_QNAME_EDEFAULT == null ? returnQName != null : !RETURN_QNAME_EDEFAULT.equals(returnQName);
- case WSDDPackage.OPERATION__RETURN_TYPE:
+ case WSDDPackageImpl.OPERATION__RETURN_TYPE:
return RETURN_TYPE_EDEFAULT == null ? returnType != null : !RETURN_TYPE_EDEFAULT.equals(returnType);
- case WSDDPackage.OPERATION__RETURN_ITEM_QNAME:
+ case WSDDPackageImpl.OPERATION__RETURN_ITEM_QNAME:
return RETURN_ITEM_QNAME_EDEFAULT == null ? returnItemQName != null : !RETURN_ITEM_QNAME_EDEFAULT.equals(returnItemQName);
- case WSDDPackage.OPERATION__RETURN_ITEM_TYPE:
+ case WSDDPackageImpl.OPERATION__RETURN_ITEM_TYPE:
return RETURN_ITEM_TYPE_EDEFAULT == null ? returnItemType != null : !RETURN_ITEM_TYPE_EDEFAULT.equals(returnItemType);
- case WSDDPackage.OPERATION__SOAP_ACTION:
+ case WSDDPackageImpl.OPERATION__SOAP_ACTION:
return SOAP_ACTION_EDEFAULT == null ? soapAction != null : !SOAP_ACTION_EDEFAULT.equals(soapAction);
- case WSDDPackage.OPERATION__MEP:
+ case WSDDPackageImpl.OPERATION__MEP:
return MEP_EDEFAULT == null ? mep != null : !MEP_EDEFAULT.equals(mep);
- case WSDDPackage.OPERATION__RETURN_HEADER:
+ case WSDDPackageImpl.OPERATION__RETURN_HEADER:
return RETURN_HEADER_EDEFAULT == null ? returnHeader != null : !RETURN_HEADER_EDEFAULT.equals(returnHeader);
- case WSDDPackage.OPERATION__PARAMETERS:
+ case WSDDPackageImpl.OPERATION__PARAMETERS:
return parameters != null && !parameters.isEmpty();
- case WSDDPackage.OPERATION__FAULTS:
+ case WSDDPackageImpl.OPERATION__FAULTS:
return faults != null && !faults.isEmpty();
}
return super.eIsSet(featureID);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationParameterImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationParameterImpl.java
index b6566b5fd..62c7e5026 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationParameterImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationParameterImpl.java
@@ -8,7 +8,6 @@
import org.apache.axis.model.wsdd.OperationParameter;
import org.apache.axis.model.wsdd.ParameterMode;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.ecore.EClass;
@@ -189,7 +188,7 @@ protected OperationParameterImpl() {
* @generated
*/
protected EClass eStaticClass() {
- return WSDDPackage.Literals.OPERATION_PARAMETER;
+ return WSDDPackageImpl.Literals.OPERATION_PARAMETER;
}
/**
@@ -325,19 +324,19 @@ public void setItemQName(Object newItemQName) {
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case WSDDPackage.OPERATION_PARAMETER__NAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__NAME:
return getName();
- case WSDDPackage.OPERATION_PARAMETER__QNAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__QNAME:
return getQname();
- case WSDDPackage.OPERATION_PARAMETER__TYPE:
+ case WSDDPackageImpl.OPERATION_PARAMETER__TYPE:
return getType();
- case WSDDPackage.OPERATION_PARAMETER__MODE:
+ case WSDDPackageImpl.OPERATION_PARAMETER__MODE:
return getMode();
- case WSDDPackage.OPERATION_PARAMETER__IN_HEADER:
+ case WSDDPackageImpl.OPERATION_PARAMETER__IN_HEADER:
return getInHeader();
- case WSDDPackage.OPERATION_PARAMETER__OUT_HEADER:
+ case WSDDPackageImpl.OPERATION_PARAMETER__OUT_HEADER:
return getOutHeader();
- case WSDDPackage.OPERATION_PARAMETER__ITEM_QNAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__ITEM_QNAME:
return getItemQName();
}
return super.eGet(featureID, resolve, coreType);
@@ -350,25 +349,25 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case WSDDPackage.OPERATION_PARAMETER__NAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__NAME:
setName((String)newValue);
return;
- case WSDDPackage.OPERATION_PARAMETER__QNAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__QNAME:
setQname(newValue);
return;
- case WSDDPackage.OPERATION_PARAMETER__TYPE:
+ case WSDDPackageImpl.OPERATION_PARAMETER__TYPE:
setType(newValue);
return;
- case WSDDPackage.OPERATION_PARAMETER__MODE:
+ case WSDDPackageImpl.OPERATION_PARAMETER__MODE:
setMode((ParameterMode)newValue);
return;
- case WSDDPackage.OPERATION_PARAMETER__IN_HEADER:
+ case WSDDPackageImpl.OPERATION_PARAMETER__IN_HEADER:
setInHeader((Boolean)newValue);
return;
- case WSDDPackage.OPERATION_PARAMETER__OUT_HEADER:
+ case WSDDPackageImpl.OPERATION_PARAMETER__OUT_HEADER:
setOutHeader((Boolean)newValue);
return;
- case WSDDPackage.OPERATION_PARAMETER__ITEM_QNAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__ITEM_QNAME:
setItemQName(newValue);
return;
}
@@ -382,25 +381,25 @@ public void eSet(int featureID, Object newValue) {
*/
public void eUnset(int featureID) {
switch (featureID) {
- case WSDDPackage.OPERATION_PARAMETER__NAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__NAME:
setName(NAME_EDEFAULT);
return;
- case WSDDPackage.OPERATION_PARAMETER__QNAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__QNAME:
setQname(QNAME_EDEFAULT);
return;
- case WSDDPackage.OPERATION_PARAMETER__TYPE:
+ case WSDDPackageImpl.OPERATION_PARAMETER__TYPE:
setType(TYPE_EDEFAULT);
return;
- case WSDDPackage.OPERATION_PARAMETER__MODE:
+ case WSDDPackageImpl.OPERATION_PARAMETER__MODE:
setMode(MODE_EDEFAULT);
return;
- case WSDDPackage.OPERATION_PARAMETER__IN_HEADER:
+ case WSDDPackageImpl.OPERATION_PARAMETER__IN_HEADER:
setInHeader(IN_HEADER_EDEFAULT);
return;
- case WSDDPackage.OPERATION_PARAMETER__OUT_HEADER:
+ case WSDDPackageImpl.OPERATION_PARAMETER__OUT_HEADER:
setOutHeader(OUT_HEADER_EDEFAULT);
return;
- case WSDDPackage.OPERATION_PARAMETER__ITEM_QNAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__ITEM_QNAME:
setItemQName(ITEM_QNAME_EDEFAULT);
return;
}
@@ -414,19 +413,19 @@ public void eUnset(int featureID) {
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
- case WSDDPackage.OPERATION_PARAMETER__NAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case WSDDPackage.OPERATION_PARAMETER__QNAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__QNAME:
return QNAME_EDEFAULT == null ? qname != null : !QNAME_EDEFAULT.equals(qname);
- case WSDDPackage.OPERATION_PARAMETER__TYPE:
+ case WSDDPackageImpl.OPERATION_PARAMETER__TYPE:
return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
- case WSDDPackage.OPERATION_PARAMETER__MODE:
+ case WSDDPackageImpl.OPERATION_PARAMETER__MODE:
return mode != MODE_EDEFAULT;
- case WSDDPackage.OPERATION_PARAMETER__IN_HEADER:
+ case WSDDPackageImpl.OPERATION_PARAMETER__IN_HEADER:
return IN_HEADER_EDEFAULT == null ? inHeader != null : !IN_HEADER_EDEFAULT.equals(inHeader);
- case WSDDPackage.OPERATION_PARAMETER__OUT_HEADER:
+ case WSDDPackageImpl.OPERATION_PARAMETER__OUT_HEADER:
return OUT_HEADER_EDEFAULT == null ? outHeader != null : !OUT_HEADER_EDEFAULT.equals(outHeader);
- case WSDDPackage.OPERATION_PARAMETER__ITEM_QNAME:
+ case WSDDPackageImpl.OPERATION_PARAMETER__ITEM_QNAME:
return ITEM_QNAME_EDEFAULT == null ? itemQName != null : !ITEM_QNAME_EDEFAULT.equals(itemQName);
}
return super.eIsSet(featureID);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ParameterImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ParameterImpl.java
index 6f28f8b4d..13b0158cc 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ParameterImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ParameterImpl.java
@@ -7,7 +7,6 @@
package org.apache.axis.model.wsdd.impl;
import org.apache.axis.model.wsdd.Parameter;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.ecore.EClass;
@@ -83,7 +82,7 @@ protected ParameterImpl() {
* @generated
*/
protected EClass eStaticClass() {
- return WSDDPackage.Literals.PARAMETER;
+ return WSDDPackageImpl.Literals.PARAMETER;
}
/**
@@ -129,9 +128,9 @@ public void setValue(String newValue) {
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case WSDDPackage.PARAMETER__NAME:
+ case WSDDPackageImpl.PARAMETER__NAME:
return getName();
- case WSDDPackage.PARAMETER__VALUE:
+ case WSDDPackageImpl.PARAMETER__VALUE:
return getValue();
}
return super.eGet(featureID, resolve, coreType);
@@ -144,10 +143,10 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case WSDDPackage.PARAMETER__NAME:
+ case WSDDPackageImpl.PARAMETER__NAME:
setName((String)newValue);
return;
- case WSDDPackage.PARAMETER__VALUE:
+ case WSDDPackageImpl.PARAMETER__VALUE:
setValue((String)newValue);
return;
}
@@ -161,10 +160,10 @@ public void eSet(int featureID, Object newValue) {
*/
public void eUnset(int featureID) {
switch (featureID) {
- case WSDDPackage.PARAMETER__NAME:
+ case WSDDPackageImpl.PARAMETER__NAME:
setName(NAME_EDEFAULT);
return;
- case WSDDPackage.PARAMETER__VALUE:
+ case WSDDPackageImpl.PARAMETER__VALUE:
setValue(VALUE_EDEFAULT);
return;
}
@@ -178,9 +177,9 @@ public void eUnset(int featureID) {
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
- case WSDDPackage.PARAMETER__NAME:
+ case WSDDPackageImpl.PARAMETER__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case WSDDPackage.PARAMETER__VALUE:
+ case WSDDPackageImpl.PARAMETER__VALUE:
return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
}
return super.eIsSet(featureID);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
index af0d76d87..9e2ab84c5 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
@@ -7,6 +7,7 @@
package org.apache.axis.model.wsdd.impl;
import java.util.Collection;
+import java.util.List;
import java.util.Iterator;
import org.apache.axis.model.wsdd.ArrayMapping;
@@ -18,7 +19,6 @@
import org.apache.axis.model.wsdd.TypeMapping;
import org.apache.axis.model.wsdd.Use;
import org.apache.axis.model.wsdd.WSDDFactory;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.common.notify.NotificationChain;
@@ -176,7 +176,7 @@ protected ServiceImpl() {
* @generated
*/
protected EClass eStaticClass() {
- return WSDDPackage.Literals.SERVICE;
+ return WSDDPackageImpl.Literals.SERVICE;
}
/**
@@ -238,7 +238,7 @@ public void setStyle(Style newStyle) {
*
* @generated
*/
- public EList getParameters() {
+ public List getParameters() {
if (parameters == null) {
parameters = new BasicInternalEList(Parameter.class);
}
@@ -250,7 +250,7 @@ public EList getParameters() {
*
* @generated
*/
- public EList getOperations() {
+ public List getOperations() {
if (operations == null) {
operations = new BasicInternalEList(Operation.class);
}
@@ -262,7 +262,7 @@ public EList getOperations() {
*
* @generated
*/
- public EList getTypeMappings() {
+ public List getTypeMappings() {
if (typeMappings == null) {
typeMappings = new BasicInternalEList(TypeMapping.class);
}
@@ -274,7 +274,7 @@ public EList getTypeMappings() {
*
* @generated
*/
- public EList getBeanMappings() {
+ public List getBeanMappings() {
if (beanMappings == null) {
beanMappings = new BasicInternalEList(BeanMapping.class);
}
@@ -286,7 +286,7 @@ public EList getBeanMappings() {
*
* @generated
*/
- public EList getArrayMappings() {
+ public List getArrayMappings() {
if (arrayMappings == null) {
arrayMappings = new BasicInternalEList(ArrayMapping.class);
}
@@ -301,7 +301,7 @@ public void setParameter(String name, String value) {
return;
}
}
- Parameter param = WSDDFactory.eINSTANCE.createParameter();
+ Parameter param = WSDDFactory.INSTANCE.createParameter();
param.setName(name);
param.setValue(value);
getParameters().add(param);
@@ -314,15 +314,15 @@ public void setParameter(String name, String value) {
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case WSDDPackage.SERVICE__PARAMETERS:
+ case WSDDPackageImpl.SERVICE__PARAMETERS:
return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs);
- case WSDDPackage.SERVICE__OPERATIONS:
+ case WSDDPackageImpl.SERVICE__OPERATIONS:
return ((InternalEList)getOperations()).basicRemove(otherEnd, msgs);
- case WSDDPackage.SERVICE__TYPE_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__TYPE_MAPPINGS:
return ((InternalEList)getTypeMappings()).basicRemove(otherEnd, msgs);
- case WSDDPackage.SERVICE__BEAN_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__BEAN_MAPPINGS:
return ((InternalEList)getBeanMappings()).basicRemove(otherEnd, msgs);
- case WSDDPackage.SERVICE__ARRAY_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__ARRAY_MAPPINGS:
return ((InternalEList)getArrayMappings()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
@@ -335,21 +335,21 @@ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case WSDDPackage.SERVICE__PROVIDER:
+ case WSDDPackageImpl.SERVICE__PROVIDER:
return getProvider();
- case WSDDPackage.SERVICE__USE:
+ case WSDDPackageImpl.SERVICE__USE:
return getUse();
- case WSDDPackage.SERVICE__STYLE:
+ case WSDDPackageImpl.SERVICE__STYLE:
return getStyle();
- case WSDDPackage.SERVICE__PARAMETERS:
+ case WSDDPackageImpl.SERVICE__PARAMETERS:
return getParameters();
- case WSDDPackage.SERVICE__OPERATIONS:
+ case WSDDPackageImpl.SERVICE__OPERATIONS:
return getOperations();
- case WSDDPackage.SERVICE__TYPE_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__TYPE_MAPPINGS:
return getTypeMappings();
- case WSDDPackage.SERVICE__BEAN_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__BEAN_MAPPINGS:
return getBeanMappings();
- case WSDDPackage.SERVICE__ARRAY_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__ARRAY_MAPPINGS:
return getArrayMappings();
}
return super.eGet(featureID, resolve, coreType);
@@ -362,32 +362,32 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case WSDDPackage.SERVICE__PROVIDER:
+ case WSDDPackageImpl.SERVICE__PROVIDER:
setProvider(newValue);
return;
- case WSDDPackage.SERVICE__USE:
+ case WSDDPackageImpl.SERVICE__USE:
setUse((Use)newValue);
return;
- case WSDDPackage.SERVICE__STYLE:
+ case WSDDPackageImpl.SERVICE__STYLE:
setStyle((Style)newValue);
return;
- case WSDDPackage.SERVICE__PARAMETERS:
+ case WSDDPackageImpl.SERVICE__PARAMETERS:
getParameters().clear();
getParameters().addAll((Collection)newValue);
return;
- case WSDDPackage.SERVICE__OPERATIONS:
+ case WSDDPackageImpl.SERVICE__OPERATIONS:
getOperations().clear();
getOperations().addAll((Collection)newValue);
return;
- case WSDDPackage.SERVICE__TYPE_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__TYPE_MAPPINGS:
getTypeMappings().clear();
getTypeMappings().addAll((Collection)newValue);
return;
- case WSDDPackage.SERVICE__BEAN_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__BEAN_MAPPINGS:
getBeanMappings().clear();
getBeanMappings().addAll((Collection)newValue);
return;
- case WSDDPackage.SERVICE__ARRAY_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__ARRAY_MAPPINGS:
getArrayMappings().clear();
getArrayMappings().addAll((Collection)newValue);
return;
@@ -402,28 +402,28 @@ public void eSet(int featureID, Object newValue) {
*/
public void eUnset(int featureID) {
switch (featureID) {
- case WSDDPackage.SERVICE__PROVIDER:
+ case WSDDPackageImpl.SERVICE__PROVIDER:
setProvider(PROVIDER_EDEFAULT);
return;
- case WSDDPackage.SERVICE__USE:
+ case WSDDPackageImpl.SERVICE__USE:
setUse(USE_EDEFAULT);
return;
- case WSDDPackage.SERVICE__STYLE:
+ case WSDDPackageImpl.SERVICE__STYLE:
setStyle(STYLE_EDEFAULT);
return;
- case WSDDPackage.SERVICE__PARAMETERS:
+ case WSDDPackageImpl.SERVICE__PARAMETERS:
getParameters().clear();
return;
- case WSDDPackage.SERVICE__OPERATIONS:
+ case WSDDPackageImpl.SERVICE__OPERATIONS:
getOperations().clear();
return;
- case WSDDPackage.SERVICE__TYPE_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__TYPE_MAPPINGS:
getTypeMappings().clear();
return;
- case WSDDPackage.SERVICE__BEAN_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__BEAN_MAPPINGS:
getBeanMappings().clear();
return;
- case WSDDPackage.SERVICE__ARRAY_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__ARRAY_MAPPINGS:
getArrayMappings().clear();
return;
}
@@ -437,21 +437,21 @@ public void eUnset(int featureID) {
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
- case WSDDPackage.SERVICE__PROVIDER:
+ case WSDDPackageImpl.SERVICE__PROVIDER:
return PROVIDER_EDEFAULT == null ? provider != null : !PROVIDER_EDEFAULT.equals(provider);
- case WSDDPackage.SERVICE__USE:
+ case WSDDPackageImpl.SERVICE__USE:
return use != USE_EDEFAULT;
- case WSDDPackage.SERVICE__STYLE:
+ case WSDDPackageImpl.SERVICE__STYLE:
return style != STYLE_EDEFAULT;
- case WSDDPackage.SERVICE__PARAMETERS:
+ case WSDDPackageImpl.SERVICE__PARAMETERS:
return parameters != null && !parameters.isEmpty();
- case WSDDPackage.SERVICE__OPERATIONS:
+ case WSDDPackageImpl.SERVICE__OPERATIONS:
return operations != null && !operations.isEmpty();
- case WSDDPackage.SERVICE__TYPE_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__TYPE_MAPPINGS:
return typeMappings != null && !typeMappings.isEmpty();
- case WSDDPackage.SERVICE__BEAN_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__BEAN_MAPPINGS:
return beanMappings != null && !beanMappings.isEmpty();
- case WSDDPackage.SERVICE__ARRAY_MAPPINGS:
+ case WSDDPackageImpl.SERVICE__ARRAY_MAPPINGS:
return arrayMappings != null && !arrayMappings.isEmpty();
}
return super.eIsSet(featureID);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/TypeMappingImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/TypeMappingImpl.java
index 3b656dc1a..25125ab14 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/TypeMappingImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/TypeMappingImpl.java
@@ -7,7 +7,6 @@
package org.apache.axis.model.wsdd.impl;
import org.apache.axis.model.wsdd.TypeMapping;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.ecore.EClass;
@@ -81,7 +80,7 @@ protected TypeMappingImpl() {
* @generated
*/
protected EClass eStaticClass() {
- return WSDDPackage.Literals.TYPE_MAPPING;
+ return WSDDPackageImpl.Literals.TYPE_MAPPING;
}
/**
@@ -127,9 +126,9 @@ public void setDeserializer(String newDeserializer) {
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case WSDDPackage.TYPE_MAPPING__SERIALIZER:
+ case WSDDPackageImpl.TYPE_MAPPING__SERIALIZER:
return getSerializer();
- case WSDDPackage.TYPE_MAPPING__DESERIALIZER:
+ case WSDDPackageImpl.TYPE_MAPPING__DESERIALIZER:
return getDeserializer();
}
return super.eGet(featureID, resolve, coreType);
@@ -142,10 +141,10 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case WSDDPackage.TYPE_MAPPING__SERIALIZER:
+ case WSDDPackageImpl.TYPE_MAPPING__SERIALIZER:
setSerializer((String)newValue);
return;
- case WSDDPackage.TYPE_MAPPING__DESERIALIZER:
+ case WSDDPackageImpl.TYPE_MAPPING__DESERIALIZER:
setDeserializer((String)newValue);
return;
}
@@ -159,10 +158,10 @@ public void eSet(int featureID, Object newValue) {
*/
public void eUnset(int featureID) {
switch (featureID) {
- case WSDDPackage.TYPE_MAPPING__SERIALIZER:
+ case WSDDPackageImpl.TYPE_MAPPING__SERIALIZER:
setSerializer(SERIALIZER_EDEFAULT);
return;
- case WSDDPackage.TYPE_MAPPING__DESERIALIZER:
+ case WSDDPackageImpl.TYPE_MAPPING__DESERIALIZER:
setDeserializer(DESERIALIZER_EDEFAULT);
return;
}
@@ -176,9 +175,9 @@ public void eUnset(int featureID) {
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
- case WSDDPackage.TYPE_MAPPING__SERIALIZER:
+ case WSDDPackageImpl.TYPE_MAPPING__SERIALIZER:
return SERIALIZER_EDEFAULT == null ? serializer != null : !SERIALIZER_EDEFAULT.equals(serializer);
- case WSDDPackage.TYPE_MAPPING__DESERIALIZER:
+ case WSDDPackageImpl.TYPE_MAPPING__DESERIALIZER:
return DESERIALIZER_EDEFAULT == null ? deserializer != null : !DESERIALIZER_EDEFAULT.equals(deserializer);
}
return super.eIsSet(featureID);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
index 84264d35b..7e85aab82 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
@@ -24,15 +24,23 @@
* @generated
*/
public class WSDDFactoryImpl extends EFactoryImpl implements WSDDFactory {
+ /**
+ * The singleton instance of the factory.
+ *
+ *
+ * @generated
+ */
+ public static final WSDDFactoryImpl eINSTANCE = init();
+
/**
* Creates the default factory implementation.
*
*
* @generated
*/
- public static WSDDFactory init() {
+ public static WSDDFactoryImpl init() {
try {
- WSDDFactory theWSDDFactory = (WSDDFactory)EPackage.Registry.INSTANCE.getEFactory("http://xml.apache.org/axis/wsdd/");
+ WSDDFactoryImpl theWSDDFactory = (WSDDFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http://xml.apache.org/axis/wsdd/");
if (theWSDDFactory != null) {
return theWSDDFactory;
}
@@ -60,15 +68,15 @@ public WSDDFactoryImpl() {
*/
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case WSDDPackage.PARAMETER: return createParameter();
- case WSDDPackage.TYPE_MAPPING: return createTypeMapping();
- case WSDDPackage.ARRAY_MAPPING: return createArrayMapping();
- case WSDDPackage.BEAN_MAPPING: return createBeanMapping();
- case WSDDPackage.OPERATION_PARAMETER: return createOperationParameter();
- case WSDDPackage.FAULT: return createFault();
- case WSDDPackage.OPERATION: return createOperation();
- case WSDDPackage.SERVICE: return createService();
- case WSDDPackage.DEPLOYMENT: return createDeployment();
+ case WSDDPackageImpl.PARAMETER: return (EObject)createParameter();
+ case WSDDPackageImpl.TYPE_MAPPING: return (EObject)createTypeMapping();
+ case WSDDPackageImpl.ARRAY_MAPPING: return (EObject)createArrayMapping();
+ case WSDDPackageImpl.BEAN_MAPPING: return (EObject)createBeanMapping();
+ case WSDDPackageImpl.OPERATION_PARAMETER: return (EObject)createOperationParameter();
+ case WSDDPackageImpl.FAULT: return (EObject)createFault();
+ case WSDDPackageImpl.OPERATION: return (EObject)createOperation();
+ case WSDDPackageImpl.SERVICE: return (EObject)createService();
+ case WSDDPackageImpl.DEPLOYMENT: return (EObject)createDeployment();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
@@ -81,11 +89,11 @@ public EObject create(EClass eClass) {
*/
public Object createFromString(EDataType eDataType, String initialValue) {
switch (eDataType.getClassifierID()) {
- case WSDDPackage.USE:
+ case WSDDPackageImpl.USE:
return createUseFromString(eDataType, initialValue);
- case WSDDPackage.STYLE:
+ case WSDDPackageImpl.STYLE:
return createStyleFromString(eDataType, initialValue);
- case WSDDPackage.PARAMETER_MODE:
+ case WSDDPackageImpl.PARAMETER_MODE:
return createParameterModeFromString(eDataType, initialValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
@@ -99,11 +107,11 @@ public Object createFromString(EDataType eDataType, String initialValue) {
*/
public String convertToString(EDataType eDataType, Object instanceValue) {
switch (eDataType.getClassifierID()) {
- case WSDDPackage.USE:
+ case WSDDPackageImpl.USE:
return convertUseToString(eDataType, instanceValue);
- case WSDDPackage.STYLE:
+ case WSDDPackageImpl.STYLE:
return convertStyleToString(eDataType, instanceValue);
- case WSDDPackage.PARAMETER_MODE:
+ case WSDDPackageImpl.PARAMETER_MODE:
return convertParameterModeToString(eDataType, instanceValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
@@ -265,8 +273,8 @@ public String convertParameterModeToString(EDataType eDataType, Object instanceV
*
* @generated
*/
- public WSDDPackage getWSDDPackage() {
- return (WSDDPackage)getEPackage();
+ public WSDDPackageImpl getWSDDPackage() {
+ return (WSDDPackageImpl)getEPackage();
}
/**
@@ -275,8 +283,8 @@ public WSDDPackage getWSDDPackage() {
* @deprecated
* @generated
*/
- public static WSDDPackage getPackage() {
- return WSDDPackage.eINSTANCE;
+ public static WSDDPackageImpl getPackage() {
+ return WSDDPackageImpl.eINSTANCE;
}
} //WSDDFactoryImpl
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
index 09c5dfc10..179295a43 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
@@ -21,11 +21,11 @@
import org.apache.axis.model.wsdd.TypeMapping;
import org.apache.axis.model.wsdd.Use;
import org.apache.axis.model.wsdd.WSDDFactory;
-import org.apache.axis.model.wsdd.WSDDPackage;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EFactory;
import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
@@ -38,9 +38,732 @@
*
* An implementation of the model Package.
*
+ * @see org.apache.axis.model.wsdd.WSDDFactory
+ * @model kind="package"
* @generated
*/
-public class WSDDPackageImpl extends EPackageImpl implements WSDDPackage {
+public class WSDDPackageImpl extends EPackageImpl {
+ /**
+ * The package name.
+ *
+ *
+ * @generated
+ */
+ public static final String eNAME = "wsdd";
+
+ /**
+ * The package namespace URI.
+ *
+ *
+ * @generated
+ */
+ public static final String eNS_URI = "http://xml.apache.org/axis/wsdd/";
+
+ /**
+ * The package namespace name.
+ *
+ *
+ * @generated
+ */
+ public static final String eNS_PREFIX = "wsdd";
+
+ /**
+ * The singleton instance of the package.
+ *
+ *
+ * @generated
+ */
+ public static final WSDDPackageImpl eINSTANCE = org.apache.axis.model.wsdd.impl.WSDDPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.ParameterImpl Parameter}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ParameterImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameter()
+ * @generated
+ */
+ public static final int PARAMETER = 0;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int PARAMETER__NAME = 0;
+
+ /**
+ * The feature id for the 'Value' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int PARAMETER__VALUE = 1;
+
+ /**
+ * The number of structural features of the 'Parameter' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int PARAMETER_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.MappingImpl Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.MappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getMapping()
+ * @generated
+ */
+ public static final int MAPPING = 1;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int MAPPING__QNAME = 0;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int MAPPING__TYPE = 1;
+
+ /**
+ * The feature id for the 'Encoding Style' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int MAPPING__ENCODING_STYLE = 2;
+
+ /**
+ * The number of structural features of the 'Mapping' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int MAPPING_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.TypeMappingImpl Type Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.TypeMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getTypeMapping()
+ * @generated
+ */
+ public static final int TYPE_MAPPING = 2;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TYPE_MAPPING__QNAME = MAPPING__QNAME;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TYPE_MAPPING__TYPE = MAPPING__TYPE;
+
+ /**
+ * The feature id for the 'Encoding Style' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TYPE_MAPPING__ENCODING_STYLE = MAPPING__ENCODING_STYLE;
+
+ /**
+ * The feature id for the 'Serializer' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TYPE_MAPPING__SERIALIZER = MAPPING_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Deserializer' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TYPE_MAPPING__DESERIALIZER = MAPPING_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the 'Type Mapping' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TYPE_MAPPING_FEATURE_COUNT = MAPPING_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.ArrayMappingImpl Array Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ArrayMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getArrayMapping()
+ * @generated
+ */
+ public static final int ARRAY_MAPPING = 3;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int ARRAY_MAPPING__QNAME = MAPPING__QNAME;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int ARRAY_MAPPING__TYPE = MAPPING__TYPE;
+
+ /**
+ * The feature id for the 'Encoding Style' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int ARRAY_MAPPING__ENCODING_STYLE = MAPPING__ENCODING_STYLE;
+
+ /**
+ * The feature id for the 'Inner Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int ARRAY_MAPPING__INNER_TYPE = MAPPING_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the 'Array Mapping' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int ARRAY_MAPPING_FEATURE_COUNT = MAPPING_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.BeanMappingImpl Bean Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.BeanMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getBeanMapping()
+ * @generated
+ */
+ public static final int BEAN_MAPPING = 4;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int BEAN_MAPPING__QNAME = MAPPING__QNAME;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int BEAN_MAPPING__TYPE = MAPPING__TYPE;
+
+ /**
+ * The feature id for the 'Encoding Style' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int BEAN_MAPPING__ENCODING_STYLE = MAPPING__ENCODING_STYLE;
+
+ /**
+ * The number of structural features of the 'Bean Mapping' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int BEAN_MAPPING_FEATURE_COUNT = MAPPING_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.OperationParameterImpl Operation Parameter}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.OperationParameterImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperationParameter()
+ * @generated
+ */
+ public static final int OPERATION_PARAMETER = 5;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION_PARAMETER__NAME = 0;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION_PARAMETER__QNAME = 1;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION_PARAMETER__TYPE = 2;
+
+ /**
+ * The feature id for the 'Mode' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION_PARAMETER__MODE = 3;
+
+ /**
+ * The feature id for the 'In Header' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION_PARAMETER__IN_HEADER = 4;
+
+ /**
+ * The feature id for the 'Out Header' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION_PARAMETER__OUT_HEADER = 5;
+
+ /**
+ * The feature id for the 'Item QName' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION_PARAMETER__ITEM_QNAME = 6;
+
+ /**
+ * The number of structural features of the 'Operation Parameter' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION_PARAMETER_FEATURE_COUNT = 7;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.FaultImpl Fault}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.FaultImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getFault()
+ * @generated
+ */
+ public static final int FAULT = 6;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int FAULT__NAME = 0;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int FAULT__QNAME = 1;
+
+ /**
+ * The feature id for the 'Class' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int FAULT__CLASS = 2;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int FAULT__TYPE = 3;
+
+ /**
+ * The number of structural features of the 'Fault' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int FAULT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.OperationImpl Operation}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.OperationImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperation()
+ * @generated
+ */
+ public static final int OPERATION = 7;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION__NAME = 0;
+
+ /**
+ * The feature id for the 'Qname' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION__QNAME = 1;
+
+ /**
+ * The feature id for the 'Return QName' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION__RETURN_QNAME = 2;
+
+ /**
+ * The feature id for the 'Return Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION__RETURN_TYPE = 3;
+
+ /**
+ * The feature id for the 'Return Item QName' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION__RETURN_ITEM_QNAME = 4;
+
+ /**
+ * The feature id for the 'Return Item Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION__RETURN_ITEM_TYPE = 5;
+
+ /**
+ * The feature id for the 'Soap Action' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION__SOAP_ACTION = 6;
+
+ /**
+ * The feature id for the 'Mep' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION__MEP = 7;
+
+ /**
+ * The feature id for the 'Return Header' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION__RETURN_HEADER = 8;
+
+ /**
+ * The feature id for the 'Parameters' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION__PARAMETERS = 9;
+
+ /**
+ * The feature id for the 'Faults' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION__FAULTS = 10;
+
+ /**
+ * The number of structural features of the 'Operation' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int OPERATION_FEATURE_COUNT = 11;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.DeployableItemImpl Deployable Item}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.DeployableItemImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployableItem()
+ * @generated
+ */
+ public static final int DEPLOYABLE_ITEM = 8;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int DEPLOYABLE_ITEM__NAME = 0;
+
+ /**
+ * The number of structural features of the 'Deployable Item' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int DEPLOYABLE_ITEM_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.ServiceImpl Service}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ServiceImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getService()
+ * @generated
+ */
+ public static final int SERVICE = 9;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__NAME = DEPLOYABLE_ITEM__NAME;
+
+ /**
+ * The feature id for the 'Provider' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__PROVIDER = DEPLOYABLE_ITEM_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Use' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__USE = DEPLOYABLE_ITEM_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the 'Style' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__STYLE = DEPLOYABLE_ITEM_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the 'Parameters' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__PARAMETERS = DEPLOYABLE_ITEM_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the 'Operations' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__OPERATIONS = DEPLOYABLE_ITEM_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the 'Type Mappings' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__TYPE_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 5;
+
+ /**
+ * The feature id for the 'Bean Mappings' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__BEAN_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 6;
+
+ /**
+ * The feature id for the 'Array Mappings' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__ARRAY_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 7;
+
+ /**
+ * The number of structural features of the 'Service' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE_FEATURE_COUNT = DEPLOYABLE_ITEM_FEATURE_COUNT + 8;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.DeploymentImpl Deployment}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.DeploymentImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployment()
+ * @generated
+ */
+ public static final int DEPLOYMENT = 10;
+
+ /**
+ * The feature id for the 'Services' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int DEPLOYMENT__SERVICES = 0;
+
+ /**
+ * The number of structural features of the 'Deployment' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int DEPLOYMENT_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.Use Use}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.Use
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
+ * @generated
+ */
+ public static final int USE = 11;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.Style Style}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.Style
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
+ * @generated
+ */
+ public static final int STYLE = 12;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.ParameterMode
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameterMode()
+ * @generated
+ */
+ public static final int PARAMETER_MODE = 13;
+
/**
*
*
@@ -150,12 +873,12 @@ public class WSDDPackageImpl extends EPackageImpl implements WSDDPackage {
*
*
* @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.apache.axis.model.wsdd.WSDDPackage#eNS_URI
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#eNS_URI
* @see #init()
* @generated
*/
private WSDDPackageImpl() {
- super(eNS_URI, WSDDFactory.eINSTANCE);
+ super(eNS_URI, ((EFactory)WSDDFactory.INSTANCE));
}
/**
@@ -168,7 +891,7 @@ private WSDDPackageImpl() {
/**
* Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
*
- *
This method is used to initialize {@link WSDDPackage#eINSTANCE} when that field is accessed.
+ *
This method is used to initialize {@link WSDDPackageImpl#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
*
*
@@ -177,8 +900,8 @@ private WSDDPackageImpl() {
* @see #initializePackageContents()
* @generated
*/
- public static WSDDPackage init() {
- if (isInited) return (WSDDPackage)EPackage.Registry.INSTANCE.getEPackage(WSDDPackage.eNS_URI);
+ public static WSDDPackageImpl init() {
+ if (isInited) return (WSDDPackageImpl)EPackage.Registry.INSTANCE.getEPackage(WSDDPackageImpl.eNS_URI);
// Obtain or create and register package
WSDDPackageImpl theWSDDPackage = (WSDDPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof WSDDPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new WSDDPackageImpl());
@@ -199,13 +922,16 @@ public static WSDDPackage init() {
// Update the registry and return the package
- EPackage.Registry.INSTANCE.put(WSDDPackage.eNS_URI, theWSDDPackage);
+ EPackage.Registry.INSTANCE.put(WSDDPackageImpl.eNS_URI, theWSDDPackage);
return theWSDDPackage;
}
/**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Parameter Parameter}'.
*
*
+ * @return the meta object for class 'Parameter'.
+ * @see org.apache.axis.model.wsdd.Parameter
* @generated
*/
public EClass getParameter() {
@@ -213,8 +939,12 @@ public EClass getParameter() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Parameter#getName Name}'.
*
*
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.Parameter#getName()
+ * @see #getParameter()
* @generated
*/
public EAttribute getParameter_Name() {
@@ -222,8 +952,12 @@ public EAttribute getParameter_Name() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Parameter#getValue Value}'.
*
*
+ * @return the meta object for the attribute 'Value'.
+ * @see org.apache.axis.model.wsdd.Parameter#getValue()
+ * @see #getParameter()
* @generated
*/
public EAttribute getParameter_Value() {
@@ -231,8 +965,11 @@ public EAttribute getParameter_Value() {
}
/**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Mapping Mapping}'.
*
*
+ * @return the meta object for class 'Mapping'.
+ * @see org.apache.axis.model.wsdd.Mapping
* @generated
*/
public EClass getMapping() {
@@ -240,8 +977,12 @@ public EClass getMapping() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getQname Qname}'.
*
*
+ * @return the meta object for the attribute 'Qname'.
+ * @see org.apache.axis.model.wsdd.Mapping#getQname()
+ * @see #getMapping()
* @generated
*/
public EAttribute getMapping_Qname() {
@@ -249,8 +990,12 @@ public EAttribute getMapping_Qname() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getType Type}'.
*
*
+ * @return the meta object for the attribute 'Type'.
+ * @see org.apache.axis.model.wsdd.Mapping#getType()
+ * @see #getMapping()
* @generated
*/
public EAttribute getMapping_Type() {
@@ -258,8 +1003,12 @@ public EAttribute getMapping_Type() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Mapping#getEncodingStyle Encoding Style}'.
*
*
+ * @return the meta object for the attribute 'Encoding Style'.
+ * @see org.apache.axis.model.wsdd.Mapping#getEncodingStyle()
+ * @see #getMapping()
* @generated
*/
public EAttribute getMapping_EncodingStyle() {
@@ -267,8 +1016,11 @@ public EAttribute getMapping_EncodingStyle() {
}
/**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.TypeMapping Type Mapping}'.
*
*
+ * @return the meta object for class 'Type Mapping'.
+ * @see org.apache.axis.model.wsdd.TypeMapping
* @generated
*/
public EClass getTypeMapping() {
@@ -276,8 +1028,12 @@ public EClass getTypeMapping() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.TypeMapping#getSerializer Serializer}'.
*
*
+ * @return the meta object for the attribute 'Serializer'.
+ * @see org.apache.axis.model.wsdd.TypeMapping#getSerializer()
+ * @see #getTypeMapping()
* @generated
*/
public EAttribute getTypeMapping_Serializer() {
@@ -285,8 +1041,12 @@ public EAttribute getTypeMapping_Serializer() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.TypeMapping#getDeserializer Deserializer}'.
*
*
+ * @return the meta object for the attribute 'Deserializer'.
+ * @see org.apache.axis.model.wsdd.TypeMapping#getDeserializer()
+ * @see #getTypeMapping()
* @generated
*/
public EAttribute getTypeMapping_Deserializer() {
@@ -294,8 +1054,11 @@ public EAttribute getTypeMapping_Deserializer() {
}
/**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.ArrayMapping Array Mapping}'.
*
*
+ * @return the meta object for class 'Array Mapping'.
+ * @see org.apache.axis.model.wsdd.ArrayMapping
* @generated
*/
public EClass getArrayMapping() {
@@ -303,8 +1066,12 @@ public EClass getArrayMapping() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.ArrayMapping#getInnerType Inner Type}'.
*
*
+ * @return the meta object for the attribute 'Inner Type'.
+ * @see org.apache.axis.model.wsdd.ArrayMapping#getInnerType()
+ * @see #getArrayMapping()
* @generated
*/
public EAttribute getArrayMapping_InnerType() {
@@ -312,8 +1079,11 @@ public EAttribute getArrayMapping_InnerType() {
}
/**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.BeanMapping Bean Mapping}'.
*
*
+ * @return the meta object for class 'Bean Mapping'.
+ * @see org.apache.axis.model.wsdd.BeanMapping
* @generated
*/
public EClass getBeanMapping() {
@@ -321,8 +1091,11 @@ public EClass getBeanMapping() {
}
/**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.OperationParameter Operation Parameter}'.
*
*
+ * @return the meta object for class 'Operation Parameter'.
+ * @see org.apache.axis.model.wsdd.OperationParameter
* @generated
*/
public EClass getOperationParameter() {
@@ -330,8 +1103,12 @@ public EClass getOperationParameter() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getName Name}'.
*
*
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getName()
+ * @see #getOperationParameter()
* @generated
*/
public EAttribute getOperationParameter_Name() {
@@ -339,8 +1116,12 @@ public EAttribute getOperationParameter_Name() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getQname Qname}'.
*
*
+ * @return the meta object for the attribute 'Qname'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getQname()
+ * @see #getOperationParameter()
* @generated
*/
public EAttribute getOperationParameter_Qname() {
@@ -348,8 +1129,12 @@ public EAttribute getOperationParameter_Qname() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getType Type}'.
*
*
+ * @return the meta object for the attribute 'Type'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getType()
+ * @see #getOperationParameter()
* @generated
*/
public EAttribute getOperationParameter_Type() {
@@ -357,8 +1142,12 @@ public EAttribute getOperationParameter_Type() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getMode Mode}'.
*
*
+ * @return the meta object for the attribute 'Mode'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getMode()
+ * @see #getOperationParameter()
* @generated
*/
public EAttribute getOperationParameter_Mode() {
@@ -366,8 +1155,12 @@ public EAttribute getOperationParameter_Mode() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getInHeader In Header}'.
*
*
+ * @return the meta object for the attribute 'In Header'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getInHeader()
+ * @see #getOperationParameter()
* @generated
*/
public EAttribute getOperationParameter_InHeader() {
@@ -375,8 +1168,12 @@ public EAttribute getOperationParameter_InHeader() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getOutHeader Out Header}'.
*
*
+ * @return the meta object for the attribute 'Out Header'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getOutHeader()
+ * @see #getOperationParameter()
* @generated
*/
public EAttribute getOperationParameter_OutHeader() {
@@ -384,8 +1181,12 @@ public EAttribute getOperationParameter_OutHeader() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.OperationParameter#getItemQName Item QName}'.
*
*
+ * @return the meta object for the attribute 'Item QName'.
+ * @see org.apache.axis.model.wsdd.OperationParameter#getItemQName()
+ * @see #getOperationParameter()
* @generated
*/
public EAttribute getOperationParameter_ItemQName() {
@@ -393,8 +1194,11 @@ public EAttribute getOperationParameter_ItemQName() {
}
/**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Fault Fault}'.
*
*
+ * @return the meta object for class 'Fault'.
+ * @see org.apache.axis.model.wsdd.Fault
* @generated
*/
public EClass getFault() {
@@ -402,8 +1206,12 @@ public EClass getFault() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getName Name}'.
*
*
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.Fault#getName()
+ * @see #getFault()
* @generated
*/
public EAttribute getFault_Name() {
@@ -411,8 +1219,12 @@ public EAttribute getFault_Name() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getQname Qname}'.
*
*
+ * @return the meta object for the attribute 'Qname'.
+ * @see org.apache.axis.model.wsdd.Fault#getQname()
+ * @see #getFault()
* @generated
*/
public EAttribute getFault_Qname() {
@@ -420,8 +1232,12 @@ public EAttribute getFault_Qname() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getClass_ Class}'.
*
*
+ * @return the meta object for the attribute 'Class'.
+ * @see org.apache.axis.model.wsdd.Fault#getClass_()
+ * @see #getFault()
* @generated
*/
public EAttribute getFault_Class() {
@@ -429,8 +1245,12 @@ public EAttribute getFault_Class() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Fault#getType Type}'.
*
*
+ * @return the meta object for the attribute 'Type'.
+ * @see org.apache.axis.model.wsdd.Fault#getType()
+ * @see #getFault()
* @generated
*/
public EAttribute getFault_Type() {
@@ -438,8 +1258,11 @@ public EAttribute getFault_Type() {
}
/**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Operation Operation}'.
*
*
+ * @return the meta object for class 'Operation'.
+ * @see org.apache.axis.model.wsdd.Operation
* @generated
*/
public EClass getOperation() {
@@ -447,8 +1270,12 @@ public EClass getOperation() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getName Name}'.
*
*
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.Operation#getName()
+ * @see #getOperation()
* @generated
*/
public EAttribute getOperation_Name() {
@@ -456,8 +1283,12 @@ public EAttribute getOperation_Name() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getQname Qname}'.
*
*
+ * @return the meta object for the attribute 'Qname'.
+ * @see org.apache.axis.model.wsdd.Operation#getQname()
+ * @see #getOperation()
* @generated
*/
public EAttribute getOperation_Qname() {
@@ -465,8 +1296,12 @@ public EAttribute getOperation_Qname() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnQName Return QName}'.
*
*
+ * @return the meta object for the attribute 'Return QName'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnQName()
+ * @see #getOperation()
* @generated
*/
public EAttribute getOperation_ReturnQName() {
@@ -474,8 +1309,12 @@ public EAttribute getOperation_ReturnQName() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnType Return Type}'.
*
*
+ * @return the meta object for the attribute 'Return Type'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnType()
+ * @see #getOperation()
* @generated
*/
public EAttribute getOperation_ReturnType() {
@@ -483,8 +1322,12 @@ public EAttribute getOperation_ReturnType() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnItemQName Return Item QName}'.
*
*
+ * @return the meta object for the attribute 'Return Item QName'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnItemQName()
+ * @see #getOperation()
* @generated
*/
public EAttribute getOperation_ReturnItemQName() {
@@ -492,8 +1335,12 @@ public EAttribute getOperation_ReturnItemQName() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnItemType Return Item Type}'.
*
*
+ * @return the meta object for the attribute 'Return Item Type'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnItemType()
+ * @see #getOperation()
* @generated
*/
public EAttribute getOperation_ReturnItemType() {
@@ -501,8 +1348,12 @@ public EAttribute getOperation_ReturnItemType() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getSoapAction Soap Action}'.
*
*
+ * @return the meta object for the attribute 'Soap Action'.
+ * @see org.apache.axis.model.wsdd.Operation#getSoapAction()
+ * @see #getOperation()
* @generated
*/
public EAttribute getOperation_SoapAction() {
@@ -510,8 +1361,12 @@ public EAttribute getOperation_SoapAction() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getMep Mep}'.
*
*
+ * @return the meta object for the attribute 'Mep'.
+ * @see org.apache.axis.model.wsdd.Operation#getMep()
+ * @see #getOperation()
* @generated
*/
public EAttribute getOperation_Mep() {
@@ -519,8 +1374,12 @@ public EAttribute getOperation_Mep() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnHeader Return Header}'.
*
*
+ * @return the meta object for the attribute 'Return Header'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnHeader()
+ * @see #getOperation()
* @generated
*/
public EAttribute getOperation_ReturnHeader() {
@@ -528,8 +1387,12 @@ public EAttribute getOperation_ReturnHeader() {
}
/**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Operation#getParameters Parameters}'.
*
*
+ * @return the meta object for the containment reference list 'Parameters'.
+ * @see org.apache.axis.model.wsdd.Operation#getParameters()
+ * @see #getOperation()
* @generated
*/
public EReference getOperation_Parameters() {
@@ -537,8 +1400,12 @@ public EReference getOperation_Parameters() {
}
/**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Operation#getFaults Faults}'.
*
*
+ * @return the meta object for the containment reference list 'Faults'.
+ * @see org.apache.axis.model.wsdd.Operation#getFaults()
+ * @see #getOperation()
* @generated
*/
public EReference getOperation_Faults() {
@@ -546,8 +1413,11 @@ public EReference getOperation_Faults() {
}
/**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.DeployableItem Deployable Item}'.
*
*
+ * @return the meta object for class 'Deployable Item'.
+ * @see org.apache.axis.model.wsdd.DeployableItem
* @generated
*/
public EClass getDeployableItem() {
@@ -555,8 +1425,12 @@ public EClass getDeployableItem() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.DeployableItem#getName Name}'.
*
*
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.DeployableItem#getName()
+ * @see #getDeployableItem()
* @generated
*/
public EAttribute getDeployableItem_Name() {
@@ -564,8 +1438,11 @@ public EAttribute getDeployableItem_Name() {
}
/**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Service Service}'.
*
*
+ * @return the meta object for class 'Service'.
+ * @see org.apache.axis.model.wsdd.Service
* @generated
*/
public EClass getService() {
@@ -573,8 +1450,12 @@ public EClass getService() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Service#getProvider Provider}'.
*
*
+ * @return the meta object for the attribute 'Provider'.
+ * @see org.apache.axis.model.wsdd.Service#getProvider()
+ * @see #getService()
* @generated
*/
public EAttribute getService_Provider() {
@@ -582,8 +1463,12 @@ public EAttribute getService_Provider() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Service#getUse Use}'.
*
*
+ * @return the meta object for the attribute 'Use'.
+ * @see org.apache.axis.model.wsdd.Service#getUse()
+ * @see #getService()
* @generated
*/
public EAttribute getService_Use() {
@@ -591,8 +1476,12 @@ public EAttribute getService_Use() {
}
/**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Service#getStyle Style}'.
*
*
+ * @return the meta object for the attribute 'Style'.
+ * @see org.apache.axis.model.wsdd.Service#getStyle()
+ * @see #getService()
* @generated
*/
public EAttribute getService_Style() {
@@ -600,8 +1489,12 @@ public EAttribute getService_Style() {
}
/**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getParameters Parameters}'.
*
*
+ * @return the meta object for the containment reference list 'Parameters'.
+ * @see org.apache.axis.model.wsdd.Service#getParameters()
+ * @see #getService()
* @generated
*/
public EReference getService_Parameters() {
@@ -609,8 +1502,12 @@ public EReference getService_Parameters() {
}
/**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getOperations Operations}'.
*
*
+ * @return the meta object for the containment reference list 'Operations'.
+ * @see org.apache.axis.model.wsdd.Service#getOperations()
+ * @see #getService()
* @generated
*/
public EReference getService_Operations() {
@@ -618,8 +1515,12 @@ public EReference getService_Operations() {
}
/**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getTypeMappings Type Mappings}'.
*
*
+ * @return the meta object for the containment reference list 'Type Mappings'.
+ * @see org.apache.axis.model.wsdd.Service#getTypeMappings()
+ * @see #getService()
* @generated
*/
public EReference getService_TypeMappings() {
@@ -627,8 +1528,12 @@ public EReference getService_TypeMappings() {
}
/**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getBeanMappings Bean Mappings}'.
*
*
+ * @return the meta object for the containment reference list 'Bean Mappings'.
+ * @see org.apache.axis.model.wsdd.Service#getBeanMappings()
+ * @see #getService()
* @generated
*/
public EReference getService_BeanMappings() {
@@ -636,8 +1541,12 @@ public EReference getService_BeanMappings() {
}
/**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getArrayMappings Array Mappings}'.
*
*
+ * @return the meta object for the containment reference list 'Array Mappings'.
+ * @see org.apache.axis.model.wsdd.Service#getArrayMappings()
+ * @see #getService()
* @generated
*/
public EReference getService_ArrayMappings() {
@@ -645,8 +1554,11 @@ public EReference getService_ArrayMappings() {
}
/**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Deployment Deployment}'.
*
*
+ * @return the meta object for class 'Deployment'.
+ * @see org.apache.axis.model.wsdd.Deployment
* @generated
*/
public EClass getDeployment() {
@@ -654,8 +1566,12 @@ public EClass getDeployment() {
}
/**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Deployment#getServices Services}'.
*
*
+ * @return the meta object for the containment reference list 'Services'.
+ * @see org.apache.axis.model.wsdd.Deployment#getServices()
+ * @see #getDeployment()
* @generated
*/
public EReference getDeployment_Services() {
@@ -663,8 +1579,11 @@ public EReference getDeployment_Services() {
}
/**
+ * Returns the meta object for enum '{@link org.apache.axis.model.wsdd.Use Use}'.
*
*
+ * @return the meta object for enum 'Use'.
+ * @see org.apache.axis.model.wsdd.Use
* @generated
*/
public EEnum getUse() {
@@ -672,8 +1591,11 @@ public EEnum getUse() {
}
/**
+ * Returns the meta object for enum '{@link org.apache.axis.model.wsdd.Style Style}'.
*
*
+ * @return the meta object for enum 'Style'.
+ * @see org.apache.axis.model.wsdd.Style
* @generated
*/
public EEnum getStyle() {
@@ -681,8 +1603,11 @@ public EEnum getStyle() {
}
/**
+ * Returns the meta object for enum '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}'.
*
*
+ * @return the meta object for enum 'Parameter Mode'.
+ * @see org.apache.axis.model.wsdd.ParameterMode
* @generated
*/
public EEnum getParameterMode() {
@@ -690,8 +1615,10 @@ public EEnum getParameterMode() {
}
/**
+ * Returns the factory that creates the instances of the model.
*
*
+ * @return the factory that creates the instances of the model.
* @generated
*/
public WSDDFactory getWSDDFactory() {
@@ -989,4 +1916,479 @@ protected void createExtendedMetaDataAnnotations() {
});
}
+ /**
+ *
+ * Defines literals for the meta objects that represent
+ *
+ *
each class,
+ *
each feature of each class,
+ *
each enum,
+ *
and each data type
+ *
+ *
+ * @generated
+ */
+ public interface Literals {
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.ParameterImpl Parameter}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ParameterImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameter()
+ * @generated
+ */
+ public static final EClass PARAMETER = eINSTANCE.getParameter();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute PARAMETER__NAME = eINSTANCE.getParameter_Name();
+
+ /**
+ * The meta object literal for the 'Value' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute PARAMETER__VALUE = eINSTANCE.getParameter_Value();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.MappingImpl Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.MappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getMapping()
+ * @generated
+ */
+ public static final EClass MAPPING = eINSTANCE.getMapping();
+
+ /**
+ * The meta object literal for the 'Qname' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute MAPPING__QNAME = eINSTANCE.getMapping_Qname();
+
+ /**
+ * The meta object literal for the 'Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute MAPPING__TYPE = eINSTANCE.getMapping_Type();
+
+ /**
+ * The meta object literal for the 'Encoding Style' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute MAPPING__ENCODING_STYLE = eINSTANCE.getMapping_EncodingStyle();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.TypeMappingImpl Type Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.TypeMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getTypeMapping()
+ * @generated
+ */
+ public static final EClass TYPE_MAPPING = eINSTANCE.getTypeMapping();
+
+ /**
+ * The meta object literal for the 'Serializer' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute TYPE_MAPPING__SERIALIZER = eINSTANCE.getTypeMapping_Serializer();
+
+ /**
+ * The meta object literal for the 'Deserializer' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute TYPE_MAPPING__DESERIALIZER = eINSTANCE.getTypeMapping_Deserializer();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.ArrayMappingImpl Array Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ArrayMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getArrayMapping()
+ * @generated
+ */
+ public static final EClass ARRAY_MAPPING = eINSTANCE.getArrayMapping();
+
+ /**
+ * The meta object literal for the 'Inner Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute ARRAY_MAPPING__INNER_TYPE = eINSTANCE.getArrayMapping_InnerType();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.BeanMappingImpl Bean Mapping}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.BeanMappingImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getBeanMapping()
+ * @generated
+ */
+ public static final EClass BEAN_MAPPING = eINSTANCE.getBeanMapping();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.OperationParameterImpl Operation Parameter}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.OperationParameterImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperationParameter()
+ * @generated
+ */
+ public static final EClass OPERATION_PARAMETER = eINSTANCE.getOperationParameter();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION_PARAMETER__NAME = eINSTANCE.getOperationParameter_Name();
+
+ /**
+ * The meta object literal for the 'Qname' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION_PARAMETER__QNAME = eINSTANCE.getOperationParameter_Qname();
+
+ /**
+ * The meta object literal for the 'Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION_PARAMETER__TYPE = eINSTANCE.getOperationParameter_Type();
+
+ /**
+ * The meta object literal for the 'Mode' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION_PARAMETER__MODE = eINSTANCE.getOperationParameter_Mode();
+
+ /**
+ * The meta object literal for the 'In Header' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION_PARAMETER__IN_HEADER = eINSTANCE.getOperationParameter_InHeader();
+
+ /**
+ * The meta object literal for the 'Out Header' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION_PARAMETER__OUT_HEADER = eINSTANCE.getOperationParameter_OutHeader();
+
+ /**
+ * The meta object literal for the 'Item QName' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION_PARAMETER__ITEM_QNAME = eINSTANCE.getOperationParameter_ItemQName();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.FaultImpl Fault}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.FaultImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getFault()
+ * @generated
+ */
+ public static final EClass FAULT = eINSTANCE.getFault();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute FAULT__NAME = eINSTANCE.getFault_Name();
+
+ /**
+ * The meta object literal for the 'Qname' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute FAULT__QNAME = eINSTANCE.getFault_Qname();
+
+ /**
+ * The meta object literal for the 'Class' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute FAULT__CLASS = eINSTANCE.getFault_Class();
+
+ /**
+ * The meta object literal for the 'Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute FAULT__TYPE = eINSTANCE.getFault_Type();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.OperationImpl Operation}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.OperationImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getOperation()
+ * @generated
+ */
+ public static final EClass OPERATION = eINSTANCE.getOperation();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION__NAME = eINSTANCE.getOperation_Name();
+
+ /**
+ * The meta object literal for the 'Qname' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION__QNAME = eINSTANCE.getOperation_Qname();
+
+ /**
+ * The meta object literal for the 'Return QName' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION__RETURN_QNAME = eINSTANCE.getOperation_ReturnQName();
+
+ /**
+ * The meta object literal for the 'Return Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION__RETURN_TYPE = eINSTANCE.getOperation_ReturnType();
+
+ /**
+ * The meta object literal for the 'Return Item QName' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION__RETURN_ITEM_QNAME = eINSTANCE.getOperation_ReturnItemQName();
+
+ /**
+ * The meta object literal for the 'Return Item Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION__RETURN_ITEM_TYPE = eINSTANCE.getOperation_ReturnItemType();
+
+ /**
+ * The meta object literal for the 'Soap Action' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION__SOAP_ACTION = eINSTANCE.getOperation_SoapAction();
+
+ /**
+ * The meta object literal for the 'Mep' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION__MEP = eINSTANCE.getOperation_Mep();
+
+ /**
+ * The meta object literal for the 'Return Header' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute OPERATION__RETURN_HEADER = eINSTANCE.getOperation_ReturnHeader();
+
+ /**
+ * The meta object literal for the 'Parameters' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference OPERATION__PARAMETERS = eINSTANCE.getOperation_Parameters();
+
+ /**
+ * The meta object literal for the 'Faults' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference OPERATION__FAULTS = eINSTANCE.getOperation_Faults();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.DeployableItemImpl Deployable Item}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.DeployableItemImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployableItem()
+ * @generated
+ */
+ public static final EClass DEPLOYABLE_ITEM = eINSTANCE.getDeployableItem();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute DEPLOYABLE_ITEM__NAME = eINSTANCE.getDeployableItem_Name();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.ServiceImpl Service}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ServiceImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getService()
+ * @generated
+ */
+ public static final EClass SERVICE = eINSTANCE.getService();
+
+ /**
+ * The meta object literal for the 'Provider' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute SERVICE__PROVIDER = eINSTANCE.getService_Provider();
+
+ /**
+ * The meta object literal for the 'Use' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute SERVICE__USE = eINSTANCE.getService_Use();
+
+ /**
+ * The meta object literal for the 'Style' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute SERVICE__STYLE = eINSTANCE.getService_Style();
+
+ /**
+ * The meta object literal for the 'Parameters' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference SERVICE__PARAMETERS = eINSTANCE.getService_Parameters();
+
+ /**
+ * The meta object literal for the 'Operations' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference SERVICE__OPERATIONS = eINSTANCE.getService_Operations();
+
+ /**
+ * The meta object literal for the 'Type Mappings' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference SERVICE__TYPE_MAPPINGS = eINSTANCE.getService_TypeMappings();
+
+ /**
+ * The meta object literal for the 'Bean Mappings' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference SERVICE__BEAN_MAPPINGS = eINSTANCE.getService_BeanMappings();
+
+ /**
+ * The meta object literal for the 'Array Mappings' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference SERVICE__ARRAY_MAPPINGS = eINSTANCE.getService_ArrayMappings();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.DeploymentImpl Deployment}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.DeploymentImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployment()
+ * @generated
+ */
+ public static final EClass DEPLOYMENT = eINSTANCE.getDeployment();
+
+ /**
+ * The meta object literal for the 'Services' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference DEPLOYMENT__SERVICES = eINSTANCE.getDeployment_Services();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.Use Use}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.Use
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
+ * @generated
+ */
+ public static final EEnum USE = eINSTANCE.getUse();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.Style Style}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.Style
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
+ * @generated
+ */
+ public static final EEnum STYLE = eINSTANCE.getStyle();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}' enum.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.ParameterMode
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameterMode()
+ * @generated
+ */
+ public static final EEnum PARAMETER_MODE = eINSTANCE.getParameterMode();
+
+ }
+
} //WSDDPackageImpl
From 360f541245aa7363f5410d9f8c065f89079e783e Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Thu, 6 Dec 2012 13:03:42 +0000
Subject: [PATCH 056/197] Added code to load WSDD files.
---
.../axis/wsdl/toJava/JavaDeployWriter.java | 2 +-
axis-model/pom.xml | 5 ++
.../org/apache/axis/model/wsdd/WSDDUtil.java | 14 +++-
.../org/apache/axis/model/wsdd/LoadTest.java | 51 ++++++++++++
axis-model/src/test/wsdd/schema2.wsdd | 83 +++++++++++++++++++
5 files changed, 153 insertions(+), 2 deletions(-)
create mode 100644 axis-model/src/test/java/org/apache/axis/model/wsdd/LoadTest.java
create mode 100644 axis-model/src/test/wsdd/schema2.wsdd
diff --git a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
index 46a1c17ad..0b94b7982 100644
--- a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
+++ b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
@@ -155,7 +155,7 @@ protected void writeFileHeader(PrintWriter pw) throws IOException {
protected void writeFileBody(PrintWriter pw) throws IOException {
Deployment deployment = WSDDFactory.INSTANCE.createDeployment();
writeDeployServices(deployment);
- WSDDUtil.write(deployment, pw);
+ WSDDUtil.save(deployment, pw);
} // writeFileBody
/**
diff --git a/axis-model/pom.xml b/axis-model/pom.xml
index aa0965ad1..fef72f7cf 100644
--- a/axis-model/pom.xml
+++ b/axis-model/pom.xml
@@ -54,6 +54,11 @@
xsd2.2.3
+
+ junit
+ junit
+ test
+
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
index 859150572..b6410c80d 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
@@ -24,13 +24,25 @@
import java.util.Map;
import org.apache.axis.model.util.AxisXMLResource;
+import org.apache.axis.model.wsdd.impl.WSDDPackageImpl;
+import org.eclipse.emf.ecore.util.ExtendedMetaData;
import org.eclipse.emf.ecore.xmi.XMLResource;
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
+import org.xml.sax.InputSource;
public final class WSDDUtil {
private WSDDUtil() {}
- public static void write(Deployment deployment, Writer writer) throws IOException {
+ public static Deployment load(InputSource is) throws IOException {
+ WSDDPackageImpl.eINSTANCE.eClass();
+ AxisXMLResource resource = new AxisXMLResource();
+ Map options = new HashMap();
+ options.put(XMLResource.OPTION_EXTENDED_META_DATA, ExtendedMetaData.INSTANCE);
+ resource.load(is, options);
+ return (Deployment)resource.getContents().get(0);
+ }
+
+ public static void save(Deployment deployment, Writer writer) throws IOException {
AxisXMLResource resource = new AxisXMLResource();
XMLProcessor processor = new XMLProcessor();
resource.getContents().add(deployment);
diff --git a/axis-model/src/test/java/org/apache/axis/model/wsdd/LoadTest.java b/axis-model/src/test/java/org/apache/axis/model/wsdd/LoadTest.java
new file mode 100644
index 000000000..d1cad010e
--- /dev/null
+++ b/axis-model/src/test/java/org/apache/axis/model/wsdd/LoadTest.java
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.model.wsdd;
+
+import java.io.File;
+
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.xml.sax.InputSource;
+
+public class LoadTest extends TestCase {
+ private final File file;
+
+ public LoadTest(File file) {
+ this.file = file;
+ setName(file.getName());
+ }
+
+ protected void runTest() throws Throwable {
+ assertNotNull(WSDDUtil.load(new InputSource(file.toURL().toString())));
+ }
+
+ public static TestSuite suite() {
+ TestSuite suite = new TestSuite();
+ File[] files = new File("src/test/wsdd").listFiles();
+ for (int i=0; i
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 110f59aa8935cc2b277992b6001a77c33b30eb55 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Thu, 6 Dec 2012 18:03:41 +0000
Subject: [PATCH 057/197] Further refined the WSDD model.
---
axis-model/model/wsdd.ecore | 64 +-
.../axis/model/wsdd/DeployableItem.java | 48 +-
.../apache/axis/model/wsdd/Deployment.java | 86 ++
.../java/org/apache/axis/model/wsdd/Flow.java | 44 +
.../axis/model/wsdd/GlobalConfiguration.java | 20 +
.../org/apache/axis/model/wsdd/Handler.java | 77 ++
.../axis/model/wsdd/Parameterizable.java | 51 +
.../org/apache/axis/model/wsdd/Service.java | 49 +-
.../org/apache/axis/model/wsdd/Transport.java | 77 ++
.../apache/axis/model/wsdd/WSDDFactory.java | 45 +
.../model/wsdd/impl/DeployableItemImpl.java | 121 ++-
.../axis/model/wsdd/impl/DeploymentImpl.java | 190 ++++
.../apache/axis/model/wsdd/impl/FlowImpl.java | 129 +++
.../wsdd/impl/GlobalConfigurationImpl.java | 41 +
.../axis/model/wsdd/impl/HandlerImpl.java | 200 ++++
.../model/wsdd/impl/ParameterizableImpl.java | 165 +++
.../axis/model/wsdd/impl/ServiceImpl.java | 108 +-
.../axis/model/wsdd/impl/TransportImpl.java | 203 ++++
.../axis/model/wsdd/impl/WSDDFactoryImpl.java | 55 +
.../axis/model/wsdd/impl/WSDDPackageImpl.java | 963 ++++++++++++++++--
axis-model/src/test/wsdd/client-config.wsdd | 13 +
axis-model/src/test/wsdd/server-config.wsdd | 67 ++
22 files changed, 2614 insertions(+), 202 deletions(-)
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Flow.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/GlobalConfiguration.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Handler.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Parameterizable.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Transport.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FlowImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/GlobalConfigurationImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/HandlerImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ParameterizableImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/TransportImpl.java
create mode 100644 axis-model/src/test/wsdd/client-config.wsdd
create mode 100644 axis-model/src/test/wsdd/server-config.wsdd
diff --git a/axis-model/model/wsdd.ecore b/axis-model/model/wsdd.ecore
index e647b416d..9ef294d99 100644
--- a/axis-model/model/wsdd.ecore
+++ b/axis-model/model/wsdd.ecore
@@ -77,17 +77,11 @@
-
-
-
-
+
-
-
-
@@ -96,6 +90,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -134,6 +165,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
index 79e3cbe0d..23b8c631c 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
@@ -14,37 +14,63 @@
*
*
*
* @model abstract="true"
* @generated
*/
-public interface DeployableItem {
+public interface DeployableItem extends Parameterizable {
/**
- * Returns the value of the 'Name' attribute.
+ * Returns the value of the 'Request Flow' reference.
*
*
- * If the meaning of the 'Name' attribute isn't clear,
+ * If the meaning of the 'Request Flow' reference isn't clear,
* there really should be more of a description here...
*
*
- * @return the value of the 'Name' attribute.
- * @see #setName(String)
+ * @return the value of the 'Request Flow' reference.
+ * @see #setRequestFlow(Flow)
* @model
* @generated
*/
- String getName();
+ Flow getRequestFlow();
/**
- * Sets the value of the '{@link org.apache.axis.model.wsdd.DeployableItem#getName Name}' attribute.
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.DeployableItem#getRequestFlow Request Flow}' reference.
*
*
- * @param value the new value of the 'Name' attribute.
- * @see #getName()
+ * @param value the new value of the 'Request Flow' reference.
+ * @see #getRequestFlow()
* @generated
*/
- void setName(String value);
+ void setRequestFlow(Flow value);
+
+ /**
+ * Returns the value of the 'Response Flow' reference.
+ *
+ *
+ * If the meaning of the 'Response Flow' reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Response Flow' reference.
+ * @see #setResponseFlow(Flow)
+ * @model
+ * @generated
+ */
+ Flow getResponseFlow();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.DeployableItem#getResponseFlow Response Flow}' reference.
+ *
+ *
+ * @param value the new value of the 'Response Flow' reference.
+ * @see #getResponseFlow()
+ * @generated
+ */
+ void setResponseFlow(Flow value);
} // DeployableItem
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
index 77dc4b022..d84679d7b 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
@@ -16,6 +16,10 @@
*
*
@@ -24,6 +28,88 @@
* @generated
*/
public interface Deployment {
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Deployment#getName Name}' attribute.
+ *
+ *
+ * @param value the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Global Configuration' containment reference.
+ *
+ *
+ * If the meaning of the 'Global Configuration' containment reference isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Global Configuration' containment reference.
+ * @see #setGlobalConfiguration(GlobalConfiguration)
+ * @model containment="true"
+ * @generated
+ */
+ GlobalConfiguration getGlobalConfiguration();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Deployment#getGlobalConfiguration Global Configuration}' containment reference.
+ *
+ *
+ * @param value the new value of the 'Global Configuration' containment reference.
+ * @see #getGlobalConfiguration()
+ * @generated
+ */
+ void setGlobalConfiguration(GlobalConfiguration value);
+
+ /**
+ * Returns the value of the 'Handlers' reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.Handler}.
+ *
+ *
+ * If the meaning of the 'Handlers' reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Handlers' reference list.
+ * @model type="org.apache.axis.model.wsdd.Handler"
+ * extendedMetaData="name='handler' kind='element' namespace='##targetNamespace'"
+ * @generated
+ */
+ List getHandlers();
+
+ /**
+ * Returns the value of the 'Transports' reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.Transport}.
+ *
+ *
+ * If the meaning of the 'Transports' reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Transports' reference list.
+ * @model type="org.apache.axis.model.wsdd.Transport"
+ * extendedMetaData="name='transport' kind='element' namespace='##targetNamespace'"
+ * @generated
+ */
+ List getTransports();
+
/**
* Returns the value of the 'Services' containment reference list.
* The list contents are of type {@link org.apache.axis.model.wsdd.Service}.
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Flow.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Flow.java
new file mode 100644
index 000000000..4c3051334
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Flow.java
@@ -0,0 +1,44 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import java.util.List;
+
+
+/**
+ *
+ * A representation of the model object 'Flow'.
+ *
+ *
+ *
+ *
+ *
+ * @model
+ * @generated
+ */
+public interface Flow {
+
+ /**
+ * Returns the value of the 'Handlers' reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.Handler}.
+ *
+ *
+ * If the meaning of the 'Handlers' reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Handlers' reference list.
+ * @model type="org.apache.axis.model.wsdd.Handler"
+ * extendedMetaData="name='handler' kind='element' namespace='##targetNamespace'"
+ * @generated
+ */
+ List getHandlers();
+} // Flow
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/GlobalConfiguration.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/GlobalConfiguration.java
new file mode 100644
index 000000000..e4e546a77
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/GlobalConfiguration.java
@@ -0,0 +1,20 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+
+/**
+ *
+ * A representation of the model object 'Global Configuration'.
+ *
+ *
+ *
+ * @model
+ * @generated
+ */
+public interface GlobalConfiguration extends DeployableItem {
+} // GlobalConfiguration
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Handler.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Handler.java
new file mode 100644
index 000000000..7800233bd
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Handler.java
@@ -0,0 +1,77 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+
+/**
+ *
+ * A representation of the model object 'Handler'.
+ *
+ *
+ *
+ *
+ *
+ * @model
+ * @generated
+ */
+public interface Handler extends Parameterizable {
+
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Handler#getName Name}' attribute.
+ *
+ *
+ * @param value the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Type' attribute.
+ *
+ *
+ * If the meaning of the 'Type' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Type' attribute.
+ * @see #setType(Object)
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getType();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Handler#getType Type}' attribute.
+ *
+ *
+ * @param value the new value of the 'Type' attribute.
+ * @see #getType()
+ * @generated
+ */
+ void setType(Object value);
+} // Handler
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Parameterizable.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Parameterizable.java
new file mode 100644
index 000000000..85e607b11
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Parameterizable.java
@@ -0,0 +1,51 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import java.util.List;
+
+/**
+ *
+ * A representation of the model object 'Parameterizable'.
+ *
+ *
+ *
+ *
+ *
+ * @model
+ * @generated
+ */
+public interface Parameterizable {
+ /**
+ * Returns the value of the 'Parameters' containment reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.Parameter}.
+ *
+ *
+ * If the meaning of the 'Parameters' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
@@ -31,6 +32,31 @@
* @generated
*/
public interface Service extends DeployableItem {
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Service#getName Name}' attribute.
+ *
+ *
+ * @param value the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
/**
* Returns the value of the 'Provider' attribute.
*
@@ -113,20 +139,19 @@ public interface Service extends DeployableItem {
void setStyle(Style value);
/**
- * Returns the value of the 'Parameters' containment reference list.
- * The list contents are of type {@link org.apache.axis.model.wsdd.Parameter}.
+ * Returns the value of the 'Namespaces' attribute list.
+ * The list contents are of type {@link java.lang.String}.
*
*
- * If the meaning of the 'Parameters' containment reference list isn't clear,
+ * If the meaning of the 'Namespaces' attribute list isn't clear,
* there really should be more of a description here...
*
*
- * @return the value of the 'Parameters' containment reference list.
- * @model type="org.apache.axis.model.wsdd.Parameter" containment="true"
- * extendedMetaData="kind='element' name='parameter' namespace='##targetNamespace'"
+ * @return the value of the 'Namespaces' attribute list.
+ * @model extendedMetaData="kind='element' name='namespace' namespace='##targetNamespace'"
* @generated
*/
- List getParameters();
+ List getNamespaces();
/**
* Returns the value of the 'Operations' containment reference list.
@@ -192,12 +217,4 @@ public interface Service extends DeployableItem {
*/
List getArrayMappings();
- /**
- *
- *
- * @model nameRequired="true" valueRequired="true"
- * @generated
- */
- void setParameter(String name, String value);
-
} // Service
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Transport.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Transport.java
new file mode 100644
index 000000000..3652a218e
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Transport.java
@@ -0,0 +1,77 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+
+/**
+ *
+ * A representation of the model object 'Transport'.
+ *
+ *
+ *
+ *
+ *
+ * @model
+ * @generated
+ */
+public interface Transport extends DeployableItem {
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Transport#getName Name}' attribute.
+ *
+ *
+ * @param value the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Pivot' attribute.
+ *
+ *
+ * If the meaning of the 'Pivot' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Pivot' attribute.
+ * @see #setPivot(Object)
+ * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @generated
+ */
+ Object getPivot();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Transport#getPivot Pivot}' attribute.
+ *
+ *
+ * @param value the new value of the 'Pivot' attribute.
+ * @see #getPivot()
+ * @generated
+ */
+ void setPivot(Object value);
+
+} // Transport
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
index bb9072659..aea67e665 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
@@ -30,6 +30,15 @@ public interface WSDDFactory {
*/
Parameter createParameter();
+ /**
+ * Returns a new object of class 'Flow'.
+ *
+ *
+ * @return a new object of class 'Flow'.
+ * @generated
+ */
+ Flow createFlow();
+
/**
* Returns a new object of class 'Type Mapping'.
*
@@ -84,6 +93,42 @@ public interface WSDDFactory {
*/
Operation createOperation();
+ /**
+ * Returns a new object of class 'Parameterizable'.
+ *
+ *
+ * @return a new object of class 'Parameterizable'.
+ * @generated
+ */
+ Parameterizable createParameterizable();
+
+ /**
+ * Returns a new object of class 'Handler'.
+ *
+ *
+ * @return a new object of class 'Handler'.
+ * @generated
+ */
+ Handler createHandler();
+
+ /**
+ * Returns a new object of class 'Global Configuration'.
+ *
+ *
+ * @return a new object of class 'Global Configuration'.
+ * @generated
+ */
+ GlobalConfiguration createGlobalConfiguration();
+
+ /**
+ * Returns a new object of class 'Transport'.
+ *
+ *
+ * @return a new object of class 'Transport'.
+ * @generated
+ */
+ Transport createTransport();
+
/**
* Returns a new object of class 'Service'.
*
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
index 44ee17649..dc5eb0eac 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
@@ -8,9 +8,11 @@
import org.apache.axis.model.wsdd.DeployableItem;
+import org.apache.axis.model.wsdd.Flow;
import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.InternalEObject;
/**
*
@@ -19,32 +21,32 @@
*
+ *
+ *
+ * @generated
+ */
+public class TransportImpl extends DeployableItemImpl implements Transport {
+ /**
+ * The default value of the '{@link #getName() Name}' attribute.
+ *
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() Name}' attribute.
+ *
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPivot() Pivot}' attribute.
+ *
+ *
+ * @see #getPivot()
+ * @generated
+ * @ordered
+ */
+ protected static final Object PIVOT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPivot() Pivot}' attribute.
+ *
+ *
+ * @see #getPivot()
+ * @generated
+ * @ordered
+ */
+ protected Object pivot = PIVOT_EDEFAULT;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected TransportImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return WSDDPackageImpl.Literals.TRANSPORT;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ name = newName;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object getPivot() {
+ return pivot;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setPivot(Object newPivot) {
+ pivot = newPivot;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case WSDDPackageImpl.TRANSPORT__NAME:
+ return getName();
+ case WSDDPackageImpl.TRANSPORT__PIVOT:
+ return getPivot();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case WSDDPackageImpl.TRANSPORT__NAME:
+ setName((String)newValue);
+ return;
+ case WSDDPackageImpl.TRANSPORT__PIVOT:
+ setPivot(newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case WSDDPackageImpl.TRANSPORT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case WSDDPackageImpl.TRANSPORT__PIVOT:
+ setPivot(PIVOT_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case WSDDPackageImpl.TRANSPORT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case WSDDPackageImpl.TRANSPORT__PIVOT:
+ return PIVOT_EDEFAULT == null ? pivot != null : !PIVOT_EDEFAULT.equals(pivot);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", pivot: ");
+ result.append(pivot);
+ result.append(')');
+ return result.toString();
+ }
+
+} //TransportImpl
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
index 7e85aab82..a8e62eec7 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
@@ -75,6 +75,11 @@ public EObject create(EClass eClass) {
case WSDDPackageImpl.OPERATION_PARAMETER: return (EObject)createOperationParameter();
case WSDDPackageImpl.FAULT: return (EObject)createFault();
case WSDDPackageImpl.OPERATION: return (EObject)createOperation();
+ case WSDDPackageImpl.PARAMETERIZABLE: return (EObject)createParameterizable();
+ case WSDDPackageImpl.HANDLER: return (EObject)createHandler();
+ case WSDDPackageImpl.FLOW: return (EObject)createFlow();
+ case WSDDPackageImpl.GLOBAL_CONFIGURATION: return (EObject)createGlobalConfiguration();
+ case WSDDPackageImpl.TRANSPORT: return (EObject)createTransport();
case WSDDPackageImpl.SERVICE: return (EObject)createService();
case WSDDPackageImpl.DEPLOYMENT: return (EObject)createDeployment();
default:
@@ -128,6 +133,16 @@ public Parameter createParameter() {
return parameter;
}
+ /**
+ *
+ *
+ * @generated
+ */
+ public Flow createFlow() {
+ FlowImpl flow = new FlowImpl();
+ return flow;
+ }
+
/**
*
*
@@ -188,6 +203,46 @@ public Operation createOperation() {
return operation;
}
+ /**
+ *
+ *
+ * @generated
+ */
+ public Parameterizable createParameterizable() {
+ ParameterizableImpl parameterizable = new ParameterizableImpl();
+ return parameterizable;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Handler createHandler() {
+ HandlerImpl handler = new HandlerImpl();
+ return handler;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public GlobalConfiguration createGlobalConfiguration() {
+ GlobalConfigurationImpl globalConfiguration = new GlobalConfigurationImpl();
+ return globalConfiguration;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Transport createTransport() {
+ TransportImpl transport = new TransportImpl();
+ return transport;
+ }
+
/**
*
*
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
index 179295a43..bccee0f83 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
@@ -11,13 +11,18 @@
import org.apache.axis.model.wsdd.DeployableItem;
import org.apache.axis.model.wsdd.Deployment;
import org.apache.axis.model.wsdd.Fault;
+import org.apache.axis.model.wsdd.Flow;
+import org.apache.axis.model.wsdd.GlobalConfiguration;
+import org.apache.axis.model.wsdd.Handler;
import org.apache.axis.model.wsdd.Mapping;
import org.apache.axis.model.wsdd.Operation;
import org.apache.axis.model.wsdd.OperationParameter;
import org.apache.axis.model.wsdd.Parameter;
import org.apache.axis.model.wsdd.ParameterMode;
+import org.apache.axis.model.wsdd.Parameterizable;
import org.apache.axis.model.wsdd.Service;
import org.apache.axis.model.wsdd.Style;
+import org.apache.axis.model.wsdd.Transport;
import org.apache.axis.model.wsdd.TypeMapping;
import org.apache.axis.model.wsdd.Use;
import org.apache.axis.model.wsdd.WSDDFactory;
@@ -112,6 +117,16 @@ public class WSDDPackageImpl extends EPackageImpl {
*/
public static final int PARAMETER_FEATURE_COUNT = 2;
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.FlowImpl Flow}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.FlowImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getFlow()
+ * @generated
+ */
+ public static final int FLOW = 10;
+
/**
* The meta object id for the '{@link org.apache.axis.model.wsdd.impl.MappingImpl Mapping}' class.
*
@@ -578,6 +593,98 @@ public class WSDDPackageImpl extends EPackageImpl {
*/
public static final int OPERATION_FEATURE_COUNT = 11;
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.ParameterizableImpl Parameterizable}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ParameterizableImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameterizable()
+ * @generated
+ */
+ public static final int PARAMETERIZABLE = 8;
+
+ /**
+ * The feature id for the 'Parameters' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int PARAMETERIZABLE__PARAMETERS = 0;
+
+ /**
+ * The number of structural features of the 'Parameterizable' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int PARAMETERIZABLE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.HandlerImpl Handler}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.HandlerImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getHandler()
+ * @generated
+ */
+ public static final int HANDLER = 9;
+
+ /**
+ * The feature id for the 'Parameters' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int HANDLER__PARAMETERS = PARAMETERIZABLE__PARAMETERS;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int HANDLER__NAME = PARAMETERIZABLE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Type' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int HANDLER__TYPE = PARAMETERIZABLE_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the 'Handler' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int HANDLER_FEATURE_COUNT = PARAMETERIZABLE_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the 'Handlers' reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int FLOW__HANDLERS = 0;
+
+ /**
+ * The number of structural features of the 'Flow' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int FLOW_FEATURE_COUNT = 1;
+
/**
* The meta object id for the '{@link org.apache.axis.model.wsdd.impl.DeployableItemImpl Deployable Item}' class.
*
@@ -586,16 +693,34 @@ public class WSDDPackageImpl extends EPackageImpl {
* @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployableItem()
* @generated
*/
- public static final int DEPLOYABLE_ITEM = 8;
+ public static final int DEPLOYABLE_ITEM = 11;
/**
- * The feature id for the 'Name' attribute.
+ * The feature id for the 'Parameters' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int DEPLOYABLE_ITEM__PARAMETERS = PARAMETERIZABLE__PARAMETERS;
+
+ /**
+ * The feature id for the 'Request Flow' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int DEPLOYABLE_ITEM__REQUEST_FLOW = PARAMETERIZABLE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Response Flow' reference.
*
*
* @generated
* @ordered
*/
- public static final int DEPLOYABLE_ITEM__NAME = 0;
+ public static final int DEPLOYABLE_ITEM__RESPONSE_FLOW = PARAMETERIZABLE_FEATURE_COUNT + 1;
/**
* The number of structural features of the 'Deployable Item' class.
@@ -604,7 +729,117 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int DEPLOYABLE_ITEM_FEATURE_COUNT = 1;
+ public static final int DEPLOYABLE_ITEM_FEATURE_COUNT = PARAMETERIZABLE_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.GlobalConfigurationImpl Global Configuration}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.GlobalConfigurationImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getGlobalConfiguration()
+ * @generated
+ */
+ public static final int GLOBAL_CONFIGURATION = 12;
+
+ /**
+ * The feature id for the 'Parameters' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int GLOBAL_CONFIGURATION__PARAMETERS = DEPLOYABLE_ITEM__PARAMETERS;
+
+ /**
+ * The feature id for the 'Request Flow' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int GLOBAL_CONFIGURATION__REQUEST_FLOW = DEPLOYABLE_ITEM__REQUEST_FLOW;
+
+ /**
+ * The feature id for the 'Response Flow' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int GLOBAL_CONFIGURATION__RESPONSE_FLOW = DEPLOYABLE_ITEM__RESPONSE_FLOW;
+
+ /**
+ * The number of structural features of the 'Global Configuration' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int GLOBAL_CONFIGURATION_FEATURE_COUNT = DEPLOYABLE_ITEM_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.apache.axis.model.wsdd.impl.TransportImpl Transport}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.TransportImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getTransport()
+ * @generated
+ */
+ public static final int TRANSPORT = 13;
+
+ /**
+ * The feature id for the 'Parameters' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TRANSPORT__PARAMETERS = DEPLOYABLE_ITEM__PARAMETERS;
+
+ /**
+ * The feature id for the 'Request Flow' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TRANSPORT__REQUEST_FLOW = DEPLOYABLE_ITEM__REQUEST_FLOW;
+
+ /**
+ * The feature id for the 'Response Flow' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TRANSPORT__RESPONSE_FLOW = DEPLOYABLE_ITEM__RESPONSE_FLOW;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TRANSPORT__NAME = DEPLOYABLE_ITEM_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Pivot' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TRANSPORT__PIVOT = DEPLOYABLE_ITEM_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the 'Transport' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int TRANSPORT_FEATURE_COUNT = DEPLOYABLE_ITEM_FEATURE_COUNT + 2;
/**
* The meta object id for the '{@link org.apache.axis.model.wsdd.impl.ServiceImpl Service}' class.
@@ -614,7 +849,34 @@ public class WSDDPackageImpl extends EPackageImpl {
* @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getService()
* @generated
*/
- public static final int SERVICE = 9;
+ public static final int SERVICE = 14;
+
+ /**
+ * The feature id for the 'Parameters' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__PARAMETERS = DEPLOYABLE_ITEM__PARAMETERS;
+
+ /**
+ * The feature id for the 'Request Flow' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__REQUEST_FLOW = DEPLOYABLE_ITEM__REQUEST_FLOW;
+
+ /**
+ * The feature id for the 'Response Flow' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int SERVICE__RESPONSE_FLOW = DEPLOYABLE_ITEM__RESPONSE_FLOW;
/**
* The feature id for the 'Name' attribute.
@@ -623,7 +885,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int SERVICE__NAME = DEPLOYABLE_ITEM__NAME;
+ public static final int SERVICE__NAME = DEPLOYABLE_ITEM_FEATURE_COUNT + 0;
/**
* The feature id for the 'Provider' attribute.
@@ -632,7 +894,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int SERVICE__PROVIDER = DEPLOYABLE_ITEM_FEATURE_COUNT + 0;
+ public static final int SERVICE__PROVIDER = DEPLOYABLE_ITEM_FEATURE_COUNT + 1;
/**
* The feature id for the 'Use' attribute.
@@ -641,7 +903,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int SERVICE__USE = DEPLOYABLE_ITEM_FEATURE_COUNT + 1;
+ public static final int SERVICE__USE = DEPLOYABLE_ITEM_FEATURE_COUNT + 2;
/**
* The feature id for the 'Style' attribute.
@@ -650,16 +912,16 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int SERVICE__STYLE = DEPLOYABLE_ITEM_FEATURE_COUNT + 2;
+ public static final int SERVICE__STYLE = DEPLOYABLE_ITEM_FEATURE_COUNT + 3;
/**
- * The feature id for the 'Parameters' containment reference list.
+ * The feature id for the 'Namespaces' attribute list.
*
*
* @generated
* @ordered
*/
- public static final int SERVICE__PARAMETERS = DEPLOYABLE_ITEM_FEATURE_COUNT + 3;
+ public static final int SERVICE__NAMESPACES = DEPLOYABLE_ITEM_FEATURE_COUNT + 4;
/**
* The feature id for the 'Operations' containment reference list.
@@ -668,7 +930,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int SERVICE__OPERATIONS = DEPLOYABLE_ITEM_FEATURE_COUNT + 4;
+ public static final int SERVICE__OPERATIONS = DEPLOYABLE_ITEM_FEATURE_COUNT + 5;
/**
* The feature id for the 'Type Mappings' containment reference list.
@@ -677,7 +939,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int SERVICE__TYPE_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 5;
+ public static final int SERVICE__TYPE_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 6;
/**
* The feature id for the 'Bean Mappings' containment reference list.
@@ -686,7 +948,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int SERVICE__BEAN_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 6;
+ public static final int SERVICE__BEAN_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 7;
/**
* The feature id for the 'Array Mappings' containment reference list.
@@ -695,7 +957,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int SERVICE__ARRAY_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 7;
+ public static final int SERVICE__ARRAY_MAPPINGS = DEPLOYABLE_ITEM_FEATURE_COUNT + 8;
/**
* The number of structural features of the 'Service' class.
@@ -704,7 +966,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int SERVICE_FEATURE_COUNT = DEPLOYABLE_ITEM_FEATURE_COUNT + 8;
+ public static final int SERVICE_FEATURE_COUNT = DEPLOYABLE_ITEM_FEATURE_COUNT + 9;
/**
* The meta object id for the '{@link org.apache.axis.model.wsdd.impl.DeploymentImpl Deployment}' class.
@@ -714,7 +976,43 @@ public class WSDDPackageImpl extends EPackageImpl {
* @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getDeployment()
* @generated
*/
- public static final int DEPLOYMENT = 10;
+ public static final int DEPLOYMENT = 15;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int DEPLOYMENT__NAME = 0;
+
+ /**
+ * The feature id for the 'Global Configuration' containment reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int DEPLOYMENT__GLOBAL_CONFIGURATION = 1;
+
+ /**
+ * The feature id for the 'Handlers' reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int DEPLOYMENT__HANDLERS = 2;
+
+ /**
+ * The feature id for the 'Transports' reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ public static final int DEPLOYMENT__TRANSPORTS = 3;
/**
* The feature id for the 'Services' containment reference list.
@@ -723,7 +1021,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int DEPLOYMENT__SERVICES = 0;
+ public static final int DEPLOYMENT__SERVICES = 4;
/**
* The number of structural features of the 'Deployment' class.
@@ -732,7 +1030,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int DEPLOYMENT_FEATURE_COUNT = 1;
+ public static final int DEPLOYMENT_FEATURE_COUNT = 5;
/**
* The meta object id for the '{@link org.apache.axis.model.wsdd.Use Use}' enum.
@@ -742,7 +1040,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
* @generated
*/
- public static final int USE = 11;
+ public static final int USE = 16;
/**
* The meta object id for the '{@link org.apache.axis.model.wsdd.Style Style}' enum.
@@ -752,7 +1050,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
* @generated
*/
- public static final int STYLE = 12;
+ public static final int STYLE = 17;
/**
* The meta object id for the '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}' enum.
@@ -762,7 +1060,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameterMode()
* @generated
*/
- public static final int PARAMETER_MODE = 13;
+ public static final int PARAMETER_MODE = 18;
/**
*
@@ -771,6 +1069,13 @@ public class WSDDPackageImpl extends EPackageImpl {
*/
private EClass parameterEClass = null;
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass flowEClass = null;
+
/**
*
*
@@ -820,6 +1125,20 @@ public class WSDDPackageImpl extends EPackageImpl {
*/
private EClass operationEClass = null;
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass parameterizableEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass handlerEClass = null;
+
/**
*
*
@@ -827,6 +1146,20 @@ public class WSDDPackageImpl extends EPackageImpl {
*/
private EClass deployableItemEClass = null;
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass globalConfigurationEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass transportEClass = null;
+
/**
*
*
@@ -964,6 +1297,31 @@ public EAttribute getParameter_Value() {
return (EAttribute)parameterEClass.getEStructuralFeatures().get(1);
}
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Flow Flow}'.
+ *
+ *
+ * @return the meta object for class 'Flow'.
+ * @see org.apache.axis.model.wsdd.Flow
+ * @generated
+ */
+ public EClass getFlow() {
+ return flowEClass;
+ }
+
+ /**
+ * Returns the meta object for the reference list '{@link org.apache.axis.model.wsdd.Flow#getHandlers Handlers}'.
+ *
+ *
+ * @return the meta object for the reference list 'Handlers'.
+ * @see org.apache.axis.model.wsdd.Flow#getHandlers()
+ * @see #getFlow()
+ * @generated
+ */
+ public EReference getFlow_Handlers() {
+ return (EReference)flowEClass.getEStructuralFeatures().get(0);
+ }
+
/**
* Returns the meta object for class '{@link org.apache.axis.model.wsdd.Mapping Mapping}'.
*
@@ -1335,106 +1693,232 @@ public EAttribute getOperation_ReturnItemQName() {
}
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnItemType Return Item Type}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnItemType Return Item Type}'.
+ *
+ *
+ * @return the meta object for the attribute 'Return Item Type'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnItemType()
+ * @see #getOperation()
+ * @generated
+ */
+ public EAttribute getOperation_ReturnItemType() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getSoapAction Soap Action}'.
+ *
+ *
+ * @return the meta object for the attribute 'Soap Action'.
+ * @see org.apache.axis.model.wsdd.Operation#getSoapAction()
+ * @see #getOperation()
+ * @generated
+ */
+ public EAttribute getOperation_SoapAction() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getMep Mep}'.
+ *
+ *
+ * @return the meta object for the attribute 'Mep'.
+ * @see org.apache.axis.model.wsdd.Operation#getMep()
+ * @see #getOperation()
+ * @generated
+ */
+ public EAttribute getOperation_Mep() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnHeader Return Header}'.
+ *
+ *
+ * @return the meta object for the attribute 'Return Header'.
+ * @see org.apache.axis.model.wsdd.Operation#getReturnHeader()
+ * @see #getOperation()
+ * @generated
+ */
+ public EAttribute getOperation_ReturnHeader() {
+ return (EAttribute)operationEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Operation#getParameters Parameters}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Parameters'.
+ * @see org.apache.axis.model.wsdd.Operation#getParameters()
+ * @see #getOperation()
+ * @generated
+ */
+ public EReference getOperation_Parameters() {
+ return (EReference)operationEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Operation#getFaults Faults}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Faults'.
+ * @see org.apache.axis.model.wsdd.Operation#getFaults()
+ * @see #getOperation()
+ * @generated
+ */
+ public EReference getOperation_Faults() {
+ return (EReference)operationEClass.getEStructuralFeatures().get(10);
+ }
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Parameterizable Parameterizable}'.
+ *
+ *
+ * @return the meta object for class 'Parameterizable'.
+ * @see org.apache.axis.model.wsdd.Parameterizable
+ * @generated
+ */
+ public EClass getParameterizable() {
+ return parameterizableEClass;
+ }
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Parameterizable#getParameters Parameters}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Parameters'.
+ * @see org.apache.axis.model.wsdd.Parameterizable#getParameters()
+ * @see #getParameterizable()
+ * @generated
+ */
+ public EReference getParameterizable_Parameters() {
+ return (EReference)parameterizableEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Handler Handler}'.
+ *
+ *
+ * @return the meta object for class 'Handler'.
+ * @see org.apache.axis.model.wsdd.Handler
+ * @generated
+ */
+ public EClass getHandler() {
+ return handlerEClass;
+ }
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Handler#getName Name}'.
+ *
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.Handler#getName()
+ * @see #getHandler()
+ * @generated
+ */
+ public EAttribute getHandler_Name() {
+ return (EAttribute)handlerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Handler#getType Type}'.
*
*
- * @return the meta object for the attribute 'Return Item Type'.
- * @see org.apache.axis.model.wsdd.Operation#getReturnItemType()
- * @see #getOperation()
+ * @return the meta object for the attribute 'Type'.
+ * @see org.apache.axis.model.wsdd.Handler#getType()
+ * @see #getHandler()
* @generated
*/
- public EAttribute getOperation_ReturnItemType() {
- return (EAttribute)operationEClass.getEStructuralFeatures().get(5);
+ public EAttribute getHandler_Type() {
+ return (EAttribute)handlerEClass.getEStructuralFeatures().get(1);
}
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getSoapAction Soap Action}'.
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.DeployableItem Deployable Item}'.
*
*
- * @return the meta object for the attribute 'Soap Action'.
- * @see org.apache.axis.model.wsdd.Operation#getSoapAction()
- * @see #getOperation()
+ * @return the meta object for class 'Deployable Item'.
+ * @see org.apache.axis.model.wsdd.DeployableItem
* @generated
*/
- public EAttribute getOperation_SoapAction() {
- return (EAttribute)operationEClass.getEStructuralFeatures().get(6);
+ public EClass getDeployableItem() {
+ return deployableItemEClass;
}
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getMep Mep}'.
+ * Returns the meta object for the reference '{@link org.apache.axis.model.wsdd.DeployableItem#getRequestFlow Request Flow}'.
*
*
- * @return the meta object for the attribute 'Mep'.
- * @see org.apache.axis.model.wsdd.Operation#getMep()
- * @see #getOperation()
+ * @return the meta object for the reference 'Request Flow'.
+ * @see org.apache.axis.model.wsdd.DeployableItem#getRequestFlow()
+ * @see #getDeployableItem()
* @generated
*/
- public EAttribute getOperation_Mep() {
- return (EAttribute)operationEClass.getEStructuralFeatures().get(7);
+ public EReference getDeployableItem_RequestFlow() {
+ return (EReference)deployableItemEClass.getEStructuralFeatures().get(0);
}
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Operation#getReturnHeader Return Header}'.
+ * Returns the meta object for the reference '{@link org.apache.axis.model.wsdd.DeployableItem#getResponseFlow Response Flow}'.
*
*
- * @return the meta object for the attribute 'Return Header'.
- * @see org.apache.axis.model.wsdd.Operation#getReturnHeader()
- * @see #getOperation()
+ * @return the meta object for the reference 'Response Flow'.
+ * @see org.apache.axis.model.wsdd.DeployableItem#getResponseFlow()
+ * @see #getDeployableItem()
* @generated
*/
- public EAttribute getOperation_ReturnHeader() {
- return (EAttribute)operationEClass.getEStructuralFeatures().get(8);
+ public EReference getDeployableItem_ResponseFlow() {
+ return (EReference)deployableItemEClass.getEStructuralFeatures().get(1);
}
/**
- * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Operation#getParameters Parameters}'.
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.GlobalConfiguration Global Configuration}'.
*
*
- * @return the meta object for the containment reference list 'Parameters'.
- * @see org.apache.axis.model.wsdd.Operation#getParameters()
- * @see #getOperation()
+ * @return the meta object for class 'Global Configuration'.
+ * @see org.apache.axis.model.wsdd.GlobalConfiguration
* @generated
*/
- public EReference getOperation_Parameters() {
- return (EReference)operationEClass.getEStructuralFeatures().get(9);
+ public EClass getGlobalConfiguration() {
+ return globalConfigurationEClass;
}
/**
- * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Operation#getFaults Faults}'.
+ * Returns the meta object for class '{@link org.apache.axis.model.wsdd.Transport Transport}'.
*
*
- * @return the meta object for the containment reference list 'Faults'.
- * @see org.apache.axis.model.wsdd.Operation#getFaults()
- * @see #getOperation()
+ * @return the meta object for class 'Transport'.
+ * @see org.apache.axis.model.wsdd.Transport
* @generated
*/
- public EReference getOperation_Faults() {
- return (EReference)operationEClass.getEStructuralFeatures().get(10);
+ public EClass getTransport() {
+ return transportEClass;
}
/**
- * Returns the meta object for class '{@link org.apache.axis.model.wsdd.DeployableItem Deployable Item}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Transport#getName Name}'.
*
*
- * @return the meta object for class 'Deployable Item'.
- * @see org.apache.axis.model.wsdd.DeployableItem
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.Transport#getName()
+ * @see #getTransport()
* @generated
*/
- public EClass getDeployableItem() {
- return deployableItemEClass;
+ public EAttribute getTransport_Name() {
+ return (EAttribute)transportEClass.getEStructuralFeatures().get(0);
}
/**
- * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.DeployableItem#getName Name}'.
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Transport#getPivot Pivot}'.
*
*
- * @return the meta object for the attribute 'Name'.
- * @see org.apache.axis.model.wsdd.DeployableItem#getName()
- * @see #getDeployableItem()
+ * @return the meta object for the attribute 'Pivot'.
+ * @see org.apache.axis.model.wsdd.Transport#getPivot()
+ * @see #getTransport()
* @generated
*/
- public EAttribute getDeployableItem_Name() {
- return (EAttribute)deployableItemEClass.getEStructuralFeatures().get(0);
+ public EAttribute getTransport_Pivot() {
+ return (EAttribute)transportEClass.getEStructuralFeatures().get(1);
}
/**
@@ -1449,6 +1933,19 @@ public EClass getService() {
return serviceEClass;
}
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Service#getName Name}'.
+ *
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.Service#getName()
+ * @see #getService()
+ * @generated
+ */
+ public EAttribute getService_Name() {
+ return (EAttribute)serviceEClass.getEStructuralFeatures().get(0);
+ }
+
/**
* Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Service#getProvider Provider}'.
*
@@ -1459,7 +1956,7 @@ public EClass getService() {
* @generated
*/
public EAttribute getService_Provider() {
- return (EAttribute)serviceEClass.getEStructuralFeatures().get(0);
+ return (EAttribute)serviceEClass.getEStructuralFeatures().get(1);
}
/**
@@ -1472,7 +1969,7 @@ public EAttribute getService_Provider() {
* @generated
*/
public EAttribute getService_Use() {
- return (EAttribute)serviceEClass.getEStructuralFeatures().get(1);
+ return (EAttribute)serviceEClass.getEStructuralFeatures().get(2);
}
/**
@@ -1485,20 +1982,20 @@ public EAttribute getService_Use() {
* @generated
*/
public EAttribute getService_Style() {
- return (EAttribute)serviceEClass.getEStructuralFeatures().get(2);
+ return (EAttribute)serviceEClass.getEStructuralFeatures().get(3);
}
/**
- * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Service#getParameters Parameters}'.
+ * Returns the meta object for the attribute list '{@link org.apache.axis.model.wsdd.Service#getNamespaces Namespaces}'.
*
*
- * @return the meta object for the containment reference list 'Parameters'.
- * @see org.apache.axis.model.wsdd.Service#getParameters()
+ * @return the meta object for the attribute list 'Namespaces'.
+ * @see org.apache.axis.model.wsdd.Service#getNamespaces()
* @see #getService()
* @generated
*/
- public EReference getService_Parameters() {
- return (EReference)serviceEClass.getEStructuralFeatures().get(3);
+ public EAttribute getService_Namespaces() {
+ return (EAttribute)serviceEClass.getEStructuralFeatures().get(4);
}
/**
@@ -1511,7 +2008,7 @@ public EReference getService_Parameters() {
* @generated
*/
public EReference getService_Operations() {
- return (EReference)serviceEClass.getEStructuralFeatures().get(4);
+ return (EReference)serviceEClass.getEStructuralFeatures().get(5);
}
/**
@@ -1524,7 +2021,7 @@ public EReference getService_Operations() {
* @generated
*/
public EReference getService_TypeMappings() {
- return (EReference)serviceEClass.getEStructuralFeatures().get(5);
+ return (EReference)serviceEClass.getEStructuralFeatures().get(6);
}
/**
@@ -1537,7 +2034,7 @@ public EReference getService_TypeMappings() {
* @generated
*/
public EReference getService_BeanMappings() {
- return (EReference)serviceEClass.getEStructuralFeatures().get(6);
+ return (EReference)serviceEClass.getEStructuralFeatures().get(7);
}
/**
@@ -1550,7 +2047,7 @@ public EReference getService_BeanMappings() {
* @generated
*/
public EReference getService_ArrayMappings() {
- return (EReference)serviceEClass.getEStructuralFeatures().get(7);
+ return (EReference)serviceEClass.getEStructuralFeatures().get(8);
}
/**
@@ -1565,6 +2062,58 @@ public EClass getDeployment() {
return deploymentEClass;
}
+ /**
+ * Returns the meta object for the attribute '{@link org.apache.axis.model.wsdd.Deployment#getName Name}'.
+ *
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.apache.axis.model.wsdd.Deployment#getName()
+ * @see #getDeployment()
+ * @generated
+ */
+ public EAttribute getDeployment_Name() {
+ return (EAttribute)deploymentEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.apache.axis.model.wsdd.Deployment#getGlobalConfiguration Global Configuration}'.
+ *
+ *
+ * @return the meta object for the containment reference 'Global Configuration'.
+ * @see org.apache.axis.model.wsdd.Deployment#getGlobalConfiguration()
+ * @see #getDeployment()
+ * @generated
+ */
+ public EReference getDeployment_GlobalConfiguration() {
+ return (EReference)deploymentEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * Returns the meta object for the reference list '{@link org.apache.axis.model.wsdd.Deployment#getHandlers Handlers}'.
+ *
+ *
+ * @return the meta object for the reference list 'Handlers'.
+ * @see org.apache.axis.model.wsdd.Deployment#getHandlers()
+ * @see #getDeployment()
+ * @generated
+ */
+ public EReference getDeployment_Handlers() {
+ return (EReference)deploymentEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * Returns the meta object for the reference list '{@link org.apache.axis.model.wsdd.Deployment#getTransports Transports}'.
+ *
+ *
+ * @return the meta object for the reference list 'Transports'.
+ * @see org.apache.axis.model.wsdd.Deployment#getTransports()
+ * @see #getDeployment()
+ * @generated
+ */
+ public EReference getDeployment_Transports() {
+ return (EReference)deploymentEClass.getEStructuralFeatures().get(3);
+ }
+
/**
* Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Deployment#getServices Services}'.
*
@@ -1575,7 +2124,7 @@ public EClass getDeployment() {
* @generated
*/
public EReference getDeployment_Services() {
- return (EReference)deploymentEClass.getEStructuralFeatures().get(0);
+ return (EReference)deploymentEClass.getEStructuralFeatures().get(4);
}
/**
@@ -1690,20 +2239,42 @@ public void createPackageContents() {
createEReference(operationEClass, OPERATION__PARAMETERS);
createEReference(operationEClass, OPERATION__FAULTS);
+ parameterizableEClass = createEClass(PARAMETERIZABLE);
+ createEReference(parameterizableEClass, PARAMETERIZABLE__PARAMETERS);
+
+ handlerEClass = createEClass(HANDLER);
+ createEAttribute(handlerEClass, HANDLER__NAME);
+ createEAttribute(handlerEClass, HANDLER__TYPE);
+
+ flowEClass = createEClass(FLOW);
+ createEReference(flowEClass, FLOW__HANDLERS);
+
deployableItemEClass = createEClass(DEPLOYABLE_ITEM);
- createEAttribute(deployableItemEClass, DEPLOYABLE_ITEM__NAME);
+ createEReference(deployableItemEClass, DEPLOYABLE_ITEM__REQUEST_FLOW);
+ createEReference(deployableItemEClass, DEPLOYABLE_ITEM__RESPONSE_FLOW);
+
+ globalConfigurationEClass = createEClass(GLOBAL_CONFIGURATION);
+
+ transportEClass = createEClass(TRANSPORT);
+ createEAttribute(transportEClass, TRANSPORT__NAME);
+ createEAttribute(transportEClass, TRANSPORT__PIVOT);
serviceEClass = createEClass(SERVICE);
+ createEAttribute(serviceEClass, SERVICE__NAME);
createEAttribute(serviceEClass, SERVICE__PROVIDER);
createEAttribute(serviceEClass, SERVICE__USE);
createEAttribute(serviceEClass, SERVICE__STYLE);
- createEReference(serviceEClass, SERVICE__PARAMETERS);
+ createEAttribute(serviceEClass, SERVICE__NAMESPACES);
createEReference(serviceEClass, SERVICE__OPERATIONS);
createEReference(serviceEClass, SERVICE__TYPE_MAPPINGS);
createEReference(serviceEClass, SERVICE__BEAN_MAPPINGS);
createEReference(serviceEClass, SERVICE__ARRAY_MAPPINGS);
deploymentEClass = createEClass(DEPLOYMENT);
+ createEAttribute(deploymentEClass, DEPLOYMENT__NAME);
+ createEReference(deploymentEClass, DEPLOYMENT__GLOBAL_CONFIGURATION);
+ createEReference(deploymentEClass, DEPLOYMENT__HANDLERS);
+ createEReference(deploymentEClass, DEPLOYMENT__TRANSPORTS);
createEReference(deploymentEClass, DEPLOYMENT__SERVICES);
// Create enums
@@ -1742,6 +2313,10 @@ public void initializePackageContents() {
typeMappingEClass.getESuperTypes().add(this.getMapping());
arrayMappingEClass.getESuperTypes().add(this.getMapping());
beanMappingEClass.getESuperTypes().add(this.getMapping());
+ handlerEClass.getESuperTypes().add(this.getParameterizable());
+ deployableItemEClass.getESuperTypes().add(this.getParameterizable());
+ globalConfigurationEClass.getESuperTypes().add(this.getDeployableItem());
+ transportEClass.getESuperTypes().add(this.getDeployableItem());
serviceEClass.getESuperTypes().add(this.getDeployableItem());
// Initialize classes and features; add operations and parameters
@@ -1791,24 +2366,46 @@ public void initializePackageContents() {
initEReference(getOperation_Parameters(), this.getOperationParameter(), null, "parameters", null, 0, -1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getOperation_Faults(), this.getFault(), null, "faults", null, 0, -1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(parameterizableEClass, Parameterizable.class, "Parameterizable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getParameterizable_Parameters(), this.getParameter(), null, "parameters", null, 0, -1, Parameterizable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ EOperation op = addEOperation(parameterizableEClass, null, "setParameter");
+ addEParameter(op, ecorePackage.getEString(), "name", 1, 1);
+ addEParameter(op, ecorePackage.getEString(), "value", 1, 1);
+
+ initEClass(handlerEClass, Handler.class, "Handler", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getHandler_Name(), ecorePackage.getEString(), "name", null, 0, 1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getHandler_Type(), theXMLTypePackage.getQName(), "type", null, 0, 1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(flowEClass, Flow.class, "Flow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getFlow_Handlers(), this.getHandler(), null, "handlers", null, 0, -1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
initEClass(deployableItemEClass, DeployableItem.class, "DeployableItem", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDeployableItem_Name(), ecorePackage.getEString(), "name", null, 0, 1, DeployableItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDeployableItem_RequestFlow(), this.getFlow(), null, "requestFlow", null, 0, 1, DeployableItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDeployableItem_ResponseFlow(), this.getFlow(), null, "responseFlow", null, 0, 1, DeployableItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(globalConfigurationEClass, GlobalConfiguration.class, "GlobalConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(transportEClass, Transport.class, "Transport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getTransport_Name(), ecorePackage.getEString(), "name", null, 0, 1, Transport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTransport_Pivot(), theXMLTypePackage.getQName(), "pivot", null, 0, 1, Transport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(serviceEClass, Service.class, "Service", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getService_Name(), ecorePackage.getEString(), "name", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getService_Provider(), theXMLTypePackage.getQName(), "provider", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getService_Use(), this.getUse(), "use", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getService_Style(), this.getStyle(), "style", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getService_Parameters(), this.getParameter(), null, "parameters", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getService_Namespaces(), ecorePackage.getEString(), "namespaces", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getService_Operations(), this.getOperation(), null, "operations", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getService_TypeMappings(), this.getTypeMapping(), null, "typeMappings", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getService_BeanMappings(), this.getBeanMapping(), null, "beanMappings", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getService_ArrayMappings(), this.getArrayMapping(), null, "arrayMappings", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- EOperation op = addEOperation(serviceEClass, null, "setParameter");
- addEParameter(op, ecorePackage.getEString(), "name", 1, 1);
- addEParameter(op, ecorePackage.getEString(), "value", 1, 1);
-
initEClass(deploymentEClass, Deployment.class, "Deployment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDeployment_Name(), ecorePackage.getEString(), "name", null, 0, 1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDeployment_GlobalConfiguration(), this.getGlobalConfiguration(), null, "globalConfiguration", null, 0, 1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDeployment_Handlers(), this.getHandler(), null, "handlers", null, 0, -1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDeployment_Transports(), this.getTransport(), null, "transports", null, 0, -1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getDeployment_Services(), this.getService(), null, "services", null, 0, -1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Initialize enums and add enum literals
@@ -1860,13 +2457,29 @@ protected void createExtendedMetaDataAnnotations() {
"namespace", "##targetNamespace"
});
addAnnotation
- (getService_Parameters(),
+ (getParameterizable_Parameters(),
source,
new String[] {
"kind", "element",
"name", "parameter",
"namespace", "##targetNamespace"
});
+ addAnnotation
+ (getFlow_Handlers(),
+ source,
+ new String[] {
+ "name", "handler",
+ "kind", "element",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getService_Namespaces(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "namespace",
+ "namespace", "##targetNamespace"
+ });
addAnnotation
(getService_Operations(),
source,
@@ -1906,6 +2519,22 @@ protected void createExtendedMetaDataAnnotations() {
"name", "deployment",
"kind", "element"
});
+ addAnnotation
+ (getDeployment_Handlers(),
+ source,
+ new String[] {
+ "name", "handler",
+ "kind", "element",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getDeployment_Transports(),
+ source,
+ new String[] {
+ "name", "transport",
+ "kind", "element",
+ "namespace", "##targetNamespace"
+ });
addAnnotation
(getDeployment_Services(),
source,
@@ -1955,6 +2584,24 @@ public interface Literals {
*/
public static final EAttribute PARAMETER__VALUE = eINSTANCE.getParameter_Value();
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.FlowImpl Flow}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.FlowImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getFlow()
+ * @generated
+ */
+ public static final EClass FLOW = eINSTANCE.getFlow();
+
+ /**
+ * The meta object literal for the 'Handlers' reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference FLOW__HANDLERS = eINSTANCE.getFlow_Handlers();
+
/**
* The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.MappingImpl Mapping}' class.
*
@@ -2249,6 +2896,50 @@ public interface Literals {
*/
public static final EReference OPERATION__FAULTS = eINSTANCE.getOperation_Faults();
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.ParameterizableImpl Parameterizable}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.ParameterizableImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameterizable()
+ * @generated
+ */
+ public static final EClass PARAMETERIZABLE = eINSTANCE.getParameterizable();
+
+ /**
+ * The meta object literal for the 'Parameters' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference PARAMETERIZABLE__PARAMETERS = eINSTANCE.getParameterizable_Parameters();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.HandlerImpl Handler}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.HandlerImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getHandler()
+ * @generated
+ */
+ public static final EClass HANDLER = eINSTANCE.getHandler();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute HANDLER__NAME = eINSTANCE.getHandler_Name();
+
+ /**
+ * The meta object literal for the 'Type' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute HANDLER__TYPE = eINSTANCE.getHandler_Type();
+
/**
* The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.DeployableItemImpl Deployable Item}' class.
*
@@ -2259,13 +2950,57 @@ public interface Literals {
*/
public static final EClass DEPLOYABLE_ITEM = eINSTANCE.getDeployableItem();
+ /**
+ * The meta object literal for the 'Request Flow' reference feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference DEPLOYABLE_ITEM__REQUEST_FLOW = eINSTANCE.getDeployableItem_RequestFlow();
+
+ /**
+ * The meta object literal for the 'Response Flow' reference feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference DEPLOYABLE_ITEM__RESPONSE_FLOW = eINSTANCE.getDeployableItem_ResponseFlow();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.GlobalConfigurationImpl Global Configuration}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.GlobalConfigurationImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getGlobalConfiguration()
+ * @generated
+ */
+ public static final EClass GLOBAL_CONFIGURATION = eINSTANCE.getGlobalConfiguration();
+
+ /**
+ * The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.TransportImpl Transport}' class.
+ *
+ *
+ * @see org.apache.axis.model.wsdd.impl.TransportImpl
+ * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getTransport()
+ * @generated
+ */
+ public static final EClass TRANSPORT = eINSTANCE.getTransport();
+
/**
* The meta object literal for the 'Name' attribute feature.
*
*
* @generated
*/
- public static final EAttribute DEPLOYABLE_ITEM__NAME = eINSTANCE.getDeployableItem_Name();
+ public static final EAttribute TRANSPORT__NAME = eINSTANCE.getTransport_Name();
+
+ /**
+ * The meta object literal for the 'Pivot' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute TRANSPORT__PIVOT = eINSTANCE.getTransport_Pivot();
/**
* The meta object literal for the '{@link org.apache.axis.model.wsdd.impl.ServiceImpl Service}' class.
@@ -2277,6 +3012,14 @@ public interface Literals {
*/
public static final EClass SERVICE = eINSTANCE.getService();
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute SERVICE__NAME = eINSTANCE.getService_Name();
+
/**
* The meta object literal for the 'Provider' attribute feature.
*
@@ -2302,12 +3045,12 @@ public interface Literals {
public static final EAttribute SERVICE__STYLE = eINSTANCE.getService_Style();
/**
- * The meta object literal for the 'Parameters' containment reference list feature.
+ * The meta object literal for the 'Namespaces' attribute list feature.
*
*
* @generated
*/
- public static final EReference SERVICE__PARAMETERS = eINSTANCE.getService_Parameters();
+ public static final EAttribute SERVICE__NAMESPACES = eINSTANCE.getService_Namespaces();
/**
* The meta object literal for the 'Operations' containment reference list feature.
@@ -2351,6 +3094,38 @@ public interface Literals {
*/
public static final EClass DEPLOYMENT = eINSTANCE.getDeployment();
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ public static final EAttribute DEPLOYMENT__NAME = eINSTANCE.getDeployment_Name();
+
+ /**
+ * The meta object literal for the 'Global Configuration' containment reference feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference DEPLOYMENT__GLOBAL_CONFIGURATION = eINSTANCE.getDeployment_GlobalConfiguration();
+
+ /**
+ * The meta object literal for the 'Handlers' reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference DEPLOYMENT__HANDLERS = eINSTANCE.getDeployment_Handlers();
+
+ /**
+ * The meta object literal for the 'Transports' reference list feature.
+ *
+ *
+ * @generated
+ */
+ public static final EReference DEPLOYMENT__TRANSPORTS = eINSTANCE.getDeployment_Transports();
+
/**
* The meta object literal for the 'Services' containment reference list feature.
*
diff --git a/axis-model/src/test/wsdd/client-config.wsdd b/axis-model/src/test/wsdd/client-config.wsdd
new file mode 100644
index 000000000..6eb8f554f
--- /dev/null
+++ b/axis-model/src/test/wsdd/client-config.wsdd
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/axis-model/src/test/wsdd/server-config.wsdd b/axis-model/src/test/wsdd/server-config.wsdd
new file mode 100644
index 000000000..d250f46e7
--- /dev/null
+++ b/axis-model/src/test/wsdd/server-config.wsdd
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ http://xml.apache.org/axis/wsdd/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From e4d960b944dfd3a9411957e9b7b1f02225223bd3 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Thu, 6 Dec 2012 20:10:24 +0000
Subject: [PATCH 058/197] Added a Maven plug-in to manipulate WSDD files.
---
axis-model/model/wsdd.ecore | 15 +-
.../axis/model/wsdd/DeployableItem.java | 20 +-
.../apache/axis/model/wsdd/Deployment.java | 20 +-
.../java/org/apache/axis/model/wsdd/Flow.java | 6 +-
.../org/apache/axis/model/wsdd/WSDDUtil.java | 10 +
.../model/wsdd/impl/DeployableItemImpl.java | 70 ++++---
.../axis/model/wsdd/impl/DeploymentImpl.java | 19 +-
.../apache/axis/model/wsdd/impl/FlowImpl.java | 18 +-
.../axis/model/wsdd/impl/WSDDPackageImpl.java | 65 +++----
maven/maven-wsdd-plugin/pom.xml | 68 +++++++
.../tools/maven/wsdd/GenerateWSDDMojo.java | 175 ++++++++++++++++++
maven/pom.xml | 1 +
tests/spring-compat-tests/pom.xml | 21 ++-
13 files changed, 425 insertions(+), 83 deletions(-)
create mode 100644 maven/maven-wsdd-plugin/pom.xml
create mode 100644 maven/maven-wsdd-plugin/src/main/java/org/apache/axis/tools/maven/wsdd/GenerateWSDDMojo.java
diff --git a/axis-model/model/wsdd.ecore b/axis-model/model/wsdd.ecore
index 9ef294d99..26ceb4a03 100644
--- a/axis-model/model/wsdd.ecore
+++ b/axis-model/model/wsdd.ecore
@@ -97,7 +97,7 @@
+ eType="#//Handler" containment="true">
@@ -106,8 +106,10 @@
-
-
+
+
@@ -165,11 +167,14 @@
+
+
+
+ eType="#//Handler" containment="true">
@@ -177,7 +182,7 @@
+ eType="#//Transport" containment="true">
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
index 23b8c631c..4b3502f55 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
@@ -24,50 +24,50 @@
*/
public interface DeployableItem extends Parameterizable {
/**
- * Returns the value of the 'Request Flow' reference.
+ * Returns the value of the 'Request Flow' containment reference.
*
*
* If the meaning of the 'Request Flow' reference isn't clear,
* there really should be more of a description here...
*
*
- * @return the value of the 'Request Flow' reference.
+ * @return the value of the 'Request Flow' containment reference.
* @see #setRequestFlow(Flow)
- * @model
+ * @model containment="true"
* @generated
*/
Flow getRequestFlow();
/**
- * Sets the value of the '{@link org.apache.axis.model.wsdd.DeployableItem#getRequestFlow Request Flow}' reference.
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.DeployableItem#getRequestFlow Request Flow}' containment reference.
*
*
- * @param value the new value of the 'Request Flow' reference.
+ * @param value the new value of the 'Request Flow' containment reference.
* @see #getRequestFlow()
* @generated
*/
void setRequestFlow(Flow value);
/**
- * Returns the value of the 'Response Flow' reference.
+ * Returns the value of the 'Response Flow' containment reference.
*
*
* If the meaning of the 'Response Flow' reference isn't clear,
* there really should be more of a description here...
*
*
- * @return the value of the 'Response Flow' reference.
+ * @return the value of the 'Response Flow' containment reference.
* @see #setResponseFlow(Flow)
- * @model
+ * @model containment="true"
* @generated
*/
Flow getResponseFlow();
/**
- * Sets the value of the '{@link org.apache.axis.model.wsdd.DeployableItem#getResponseFlow Response Flow}' reference.
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.DeployableItem#getResponseFlow Response Flow}' containment reference.
*
*
- * @param value the new value of the 'Response Flow' reference.
+ * @param value the new value of the 'Response Flow' containment reference.
* @see #getResponseFlow()
* @generated
*/
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
index d84679d7b..040f46370 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
@@ -79,7 +79,7 @@ public interface Deployment {
void setGlobalConfiguration(GlobalConfiguration value);
/**
- * Returns the value of the 'Handlers' reference list.
+ * Returns the value of the 'Handlers' containment reference list.
* The list contents are of type {@link org.apache.axis.model.wsdd.Handler}.
*
*
@@ -87,15 +87,15 @@ public interface Deployment {
* there really should be more of a description here...
*
*
- * @return the value of the 'Handlers' reference list.
- * @model type="org.apache.axis.model.wsdd.Handler"
+ * @return the value of the 'Handlers' containment reference list.
+ * @model type="org.apache.axis.model.wsdd.Handler" containment="true"
* extendedMetaData="name='handler' kind='element' namespace='##targetNamespace'"
* @generated
*/
List getHandlers();
/**
- * Returns the value of the 'Transports' reference list.
+ * Returns the value of the 'Transports' containment reference list.
* The list contents are of type {@link org.apache.axis.model.wsdd.Transport}.
*
*
@@ -103,8 +103,8 @@ public interface Deployment {
* there really should be more of a description here...
*
*
- * @return the value of the 'Transports' reference list.
- * @model type="org.apache.axis.model.wsdd.Transport"
+ * @return the value of the 'Transports' containment reference list.
+ * @model type="org.apache.axis.model.wsdd.Transport" containment="true"
* extendedMetaData="name='transport' kind='element' namespace='##targetNamespace'"
* @generated
*/
@@ -126,4 +126,12 @@ public interface Deployment {
*/
List getServices();
+ /**
+ *
+ *
+ * @model otherRequired="true"
+ * @generated
+ */
+ void merge(Deployment other);
+
} // Deployment
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Flow.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Flow.java
index 4c3051334..a0f5486c8 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Flow.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Flow.java
@@ -27,7 +27,7 @@
public interface Flow {
/**
- * Returns the value of the 'Handlers' reference list.
+ * Returns the value of the 'Handlers' containment reference list.
* The list contents are of type {@link org.apache.axis.model.wsdd.Handler}.
*
*
@@ -35,8 +35,8 @@ public interface Flow {
* there really should be more of a description here...
*
*
- * @return the value of the 'Handlers' reference list.
- * @model type="org.apache.axis.model.wsdd.Handler"
+ * @return the value of the 'Handlers' containment reference list.
+ * @model type="org.apache.axis.model.wsdd.Handler" containment="true"
* extendedMetaData="name='handler' kind='element' namespace='##targetNamespace'"
* @generated
*/
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
index b6410c80d..e2012d92c 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
@@ -19,6 +19,7 @@
package org.apache.axis.model.wsdd;
import java.io.IOException;
+import java.io.OutputStream;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;
@@ -42,6 +43,15 @@ public static Deployment load(InputSource is) throws IOException {
return (Deployment)resource.getContents().get(0);
}
+ public static void save(Deployment deployment, OutputStream out) throws IOException {
+ AxisXMLResource resource = new AxisXMLResource();
+ XMLProcessor processor = new XMLProcessor();
+ resource.getContents().add(deployment);
+ Map options = new HashMap();
+ options.put(XMLResource.OPTION_ENCODING, "UTF-8");
+ processor.save(out, resource, options);
+ }
+
public static void save(Deployment deployment, Writer writer) throws IOException {
AxisXMLResource resource = new AxisXMLResource();
XMLProcessor processor = new XMLProcessor();
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
index dc5eb0eac..3686490f6 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
@@ -9,6 +9,7 @@
import org.apache.axis.model.wsdd.DeployableItem;
import org.apache.axis.model.wsdd.Flow;
+import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
@@ -30,7 +31,7 @@
*/
public abstract class DeployableItemImpl extends ParameterizableImpl implements DeployableItem {
/**
- * The cached value of the '{@link #getRequestFlow() Request Flow}' reference.
+ * The cached value of the '{@link #getRequestFlow() Request Flow}' containment reference.
*
*
* @see #getRequestFlow()
@@ -39,7 +40,7 @@ public abstract class DeployableItemImpl extends ParameterizableImpl implements
*/
protected Flow requestFlow;
/**
- * The cached value of the '{@link #getResponseFlow() Response Flow}' reference.
+ * The cached value of the '{@link #getResponseFlow() Response Flow}' containment reference.
*
*
* @see #getResponseFlow()
@@ -72,12 +73,6 @@ protected EClass eStaticClass() {
* @generated
*/
public Flow getRequestFlow() {
- if (requestFlow != null && ((EObject)requestFlow).eIsProxy()) {
- InternalEObject oldRequestFlow = (InternalEObject)requestFlow;
- requestFlow = (Flow)eResolveProxy(oldRequestFlow);
- if (requestFlow != oldRequestFlow) {
- }
- }
return requestFlow;
}
@@ -86,8 +81,10 @@ public Flow getRequestFlow() {
*
* @generated
*/
- public Flow basicGetRequestFlow() {
- return requestFlow;
+ public NotificationChain basicSetRequestFlow(Flow newRequestFlow, NotificationChain msgs) {
+ Flow oldRequestFlow = requestFlow;
+ requestFlow = newRequestFlow;
+ return msgs;
}
/**
@@ -96,7 +93,15 @@ public Flow basicGetRequestFlow() {
* @generated
*/
public void setRequestFlow(Flow newRequestFlow) {
- requestFlow = newRequestFlow;
+ if (newRequestFlow != requestFlow) {
+ NotificationChain msgs = null;
+ if (requestFlow != null)
+ msgs = ((InternalEObject)requestFlow).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WSDDPackageImpl.DEPLOYABLE_ITEM__REQUEST_FLOW, null, msgs);
+ if (newRequestFlow != null)
+ msgs = ((InternalEObject)newRequestFlow).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WSDDPackageImpl.DEPLOYABLE_ITEM__REQUEST_FLOW, null, msgs);
+ msgs = basicSetRequestFlow(newRequestFlow, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
}
/**
@@ -105,12 +110,6 @@ public void setRequestFlow(Flow newRequestFlow) {
* @generated
*/
public Flow getResponseFlow() {
- if (responseFlow != null && ((EObject)responseFlow).eIsProxy()) {
- InternalEObject oldResponseFlow = (InternalEObject)responseFlow;
- responseFlow = (Flow)eResolveProxy(oldResponseFlow);
- if (responseFlow != oldResponseFlow) {
- }
- }
return responseFlow;
}
@@ -119,8 +118,10 @@ public Flow getResponseFlow() {
*
* @generated
*/
- public Flow basicGetResponseFlow() {
- return responseFlow;
+ public NotificationChain basicSetResponseFlow(Flow newResponseFlow, NotificationChain msgs) {
+ Flow oldResponseFlow = responseFlow;
+ responseFlow = newResponseFlow;
+ return msgs;
}
/**
@@ -129,7 +130,30 @@ public Flow basicGetResponseFlow() {
* @generated
*/
public void setResponseFlow(Flow newResponseFlow) {
- responseFlow = newResponseFlow;
+ if (newResponseFlow != responseFlow) {
+ NotificationChain msgs = null;
+ if (responseFlow != null)
+ msgs = ((InternalEObject)responseFlow).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WSDDPackageImpl.DEPLOYABLE_ITEM__RESPONSE_FLOW, null, msgs);
+ if (newResponseFlow != null)
+ msgs = ((InternalEObject)newResponseFlow).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WSDDPackageImpl.DEPLOYABLE_ITEM__RESPONSE_FLOW, null, msgs);
+ msgs = basicSetResponseFlow(newResponseFlow, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case WSDDPackageImpl.DEPLOYABLE_ITEM__REQUEST_FLOW:
+ return basicSetRequestFlow(null, msgs);
+ case WSDDPackageImpl.DEPLOYABLE_ITEM__RESPONSE_FLOW:
+ return basicSetResponseFlow(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
@@ -140,11 +164,9 @@ public void setResponseFlow(Flow newResponseFlow) {
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case WSDDPackageImpl.DEPLOYABLE_ITEM__REQUEST_FLOW:
- if (resolve) return getRequestFlow();
- return basicGetRequestFlow();
+ return getRequestFlow();
case WSDDPackageImpl.DEPLOYABLE_ITEM__RESPONSE_FLOW:
- if (resolve) return getResponseFlow();
- return basicGetResponseFlow();
+ return getResponseFlow();
}
return super.eGet(featureID, resolve, coreType);
}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java
index 9693c60ba..6f6452a19 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java
@@ -73,7 +73,7 @@ public class DeploymentImpl extends EObjectImpl implements Deployment {
*/
protected GlobalConfiguration globalConfiguration;
/**
- * The cached value of the '{@link #getHandlers() Handlers}' reference list.
+ * The cached value of the '{@link #getHandlers() Handlers}' containment reference list.
*
*
* @see #getHandlers()
@@ -82,7 +82,7 @@ public class DeploymentImpl extends EObjectImpl implements Deployment {
*/
protected EList handlers;
/**
- * The cached value of the '{@link #getTransports() Transports}' reference list.
+ * The cached value of the '{@link #getTransports() Transports}' containment reference list.
*
*
* @see #getTransports()
@@ -209,6 +209,17 @@ public List getServices() {
return services;
}
+ public void merge(Deployment other) {
+ // TODO: very naive implementation; need more fine grained merging
+ GlobalConfiguration otherGlobalConfiguration = other.getGlobalConfiguration();
+ if (otherGlobalConfiguration != null) {
+ setGlobalConfiguration(otherGlobalConfiguration);
+ }
+ getHandlers().addAll(other.getHandlers());
+ getTransports().addAll(other.getTransports());
+ getServices().addAll(other.getServices());
+ }
+
/**
*
*
@@ -218,6 +229,10 @@ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
switch (featureID) {
case WSDDPackageImpl.DEPLOYMENT__GLOBAL_CONFIGURATION:
return basicSetGlobalConfiguration(null, msgs);
+ case WSDDPackageImpl.DEPLOYMENT__HANDLERS:
+ return ((InternalEList)getHandlers()).basicRemove(otherEnd, msgs);
+ case WSDDPackageImpl.DEPLOYMENT__TRANSPORTS:
+ return ((InternalEList)getTransports()).basicRemove(otherEnd, msgs);
case WSDDPackageImpl.DEPLOYMENT__SERVICES:
return ((InternalEList)getServices()).basicRemove(otherEnd, msgs);
}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FlowImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FlowImpl.java
index b9bf0b326..d94d9135c 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FlowImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FlowImpl.java
@@ -11,11 +11,14 @@
import org.apache.axis.model.wsdd.Flow;
import org.apache.axis.model.wsdd.Handler;
+import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.BasicInternalEList;
+import org.eclipse.emf.ecore.util.InternalEList;
/**
*
@@ -32,7 +35,7 @@
*/
public class FlowImpl extends EObjectImpl implements Flow {
/**
- * The cached value of the '{@link #getHandlers() Handlers}' reference list.
+ * The cached value of the '{@link #getHandlers() Handlers}' containment reference list.
*
*
* @see #getHandlers()
@@ -71,6 +74,19 @@ public List getHandlers() {
return handlers;
}
+ /**
+ *
+ *
+ * @generated
+ */
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case WSDDPackageImpl.FLOW__HANDLERS:
+ return ((InternalEList)getHandlers()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
/**
*
*
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
index bccee0f83..e26305492 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
@@ -668,7 +668,7 @@ public class WSDDPackageImpl extends EPackageImpl {
public static final int HANDLER_FEATURE_COUNT = PARAMETERIZABLE_FEATURE_COUNT + 2;
/**
- * The feature id for the 'Handlers' reference list.
+ * The feature id for the 'Handlers' containment reference list.
*
*
* @generated
@@ -705,7 +705,7 @@ public class WSDDPackageImpl extends EPackageImpl {
public static final int DEPLOYABLE_ITEM__PARAMETERS = PARAMETERIZABLE__PARAMETERS;
/**
- * The feature id for the 'Request Flow' reference.
+ * The feature id for the 'Request Flow' containment reference.
*
*
* @generated
@@ -714,7 +714,7 @@ public class WSDDPackageImpl extends EPackageImpl {
public static final int DEPLOYABLE_ITEM__REQUEST_FLOW = PARAMETERIZABLE_FEATURE_COUNT + 0;
/**
- * The feature id for the 'Response Flow' reference.
+ * The feature id for the 'Response Flow' containment reference.
*
*
* @generated
@@ -751,7 +751,7 @@ public class WSDDPackageImpl extends EPackageImpl {
public static final int GLOBAL_CONFIGURATION__PARAMETERS = DEPLOYABLE_ITEM__PARAMETERS;
/**
- * The feature id for the 'Request Flow' reference.
+ * The feature id for the 'Request Flow' containment reference.
*
*
* @generated
@@ -760,7 +760,7 @@ public class WSDDPackageImpl extends EPackageImpl {
public static final int GLOBAL_CONFIGURATION__REQUEST_FLOW = DEPLOYABLE_ITEM__REQUEST_FLOW;
/**
- * The feature id for the 'Response Flow' reference.
+ * The feature id for the 'Response Flow' containment reference.
*
*
* @generated
@@ -797,7 +797,7 @@ public class WSDDPackageImpl extends EPackageImpl {
public static final int TRANSPORT__PARAMETERS = DEPLOYABLE_ITEM__PARAMETERS;
/**
- * The feature id for the 'Request Flow' reference.
+ * The feature id for the 'Request Flow' containment reference.
*
*
* @generated
@@ -806,7 +806,7 @@ public class WSDDPackageImpl extends EPackageImpl {
public static final int TRANSPORT__REQUEST_FLOW = DEPLOYABLE_ITEM__REQUEST_FLOW;
/**
- * The feature id for the 'Response Flow' reference.
+ * The feature id for the 'Response Flow' containment reference.
*
*
* @generated
@@ -861,7 +861,7 @@ public class WSDDPackageImpl extends EPackageImpl {
public static final int SERVICE__PARAMETERS = DEPLOYABLE_ITEM__PARAMETERS;
/**
- * The feature id for the 'Request Flow' reference.
+ * The feature id for the 'Request Flow' containment reference.
*
*
* @generated
@@ -870,7 +870,7 @@ public class WSDDPackageImpl extends EPackageImpl {
public static final int SERVICE__REQUEST_FLOW = DEPLOYABLE_ITEM__REQUEST_FLOW;
/**
- * The feature id for the 'Response Flow' reference.
+ * The feature id for the 'Response Flow' containment reference.
*
*
* @generated
@@ -997,7 +997,7 @@ public class WSDDPackageImpl extends EPackageImpl {
public static final int DEPLOYMENT__GLOBAL_CONFIGURATION = 1;
/**
- * The feature id for the 'Handlers' reference list.
+ * The feature id for the 'Handlers' containment reference list.
*
*
* @generated
@@ -1006,7 +1006,7 @@ public class WSDDPackageImpl extends EPackageImpl {
public static final int DEPLOYMENT__HANDLERS = 2;
/**
- * The feature id for the 'Transports' reference list.
+ * The feature id for the 'Transports' containment reference list.
*
*
* @generated
@@ -1310,10 +1310,10 @@ public EClass getFlow() {
}
/**
- * Returns the meta object for the reference list '{@link org.apache.axis.model.wsdd.Flow#getHandlers Handlers}'.
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Flow#getHandlers Handlers}'.
*
*
- * @return the meta object for the reference list 'Handlers'.
+ * @return the meta object for the containment reference list 'Handlers'.
* @see org.apache.axis.model.wsdd.Flow#getHandlers()
* @see #getFlow()
* @generated
@@ -1846,10 +1846,10 @@ public EClass getDeployableItem() {
}
/**
- * Returns the meta object for the reference '{@link org.apache.axis.model.wsdd.DeployableItem#getRequestFlow Request Flow}'.
+ * Returns the meta object for the containment reference '{@link org.apache.axis.model.wsdd.DeployableItem#getRequestFlow Request Flow}'.
*
*
- * @return the meta object for the reference 'Request Flow'.
+ * @return the meta object for the containment reference 'Request Flow'.
* @see org.apache.axis.model.wsdd.DeployableItem#getRequestFlow()
* @see #getDeployableItem()
* @generated
@@ -1859,10 +1859,10 @@ public EReference getDeployableItem_RequestFlow() {
}
/**
- * Returns the meta object for the reference '{@link org.apache.axis.model.wsdd.DeployableItem#getResponseFlow Response Flow}'.
+ * Returns the meta object for the containment reference '{@link org.apache.axis.model.wsdd.DeployableItem#getResponseFlow Response Flow}'.
*
*
- * @return the meta object for the reference 'Response Flow'.
+ * @return the meta object for the containment reference 'Response Flow'.
* @see org.apache.axis.model.wsdd.DeployableItem#getResponseFlow()
* @see #getDeployableItem()
* @generated
@@ -2089,10 +2089,10 @@ public EReference getDeployment_GlobalConfiguration() {
}
/**
- * Returns the meta object for the reference list '{@link org.apache.axis.model.wsdd.Deployment#getHandlers Handlers}'.
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Deployment#getHandlers Handlers}'.
*
*
- * @return the meta object for the reference list 'Handlers'.
+ * @return the meta object for the containment reference list 'Handlers'.
* @see org.apache.axis.model.wsdd.Deployment#getHandlers()
* @see #getDeployment()
* @generated
@@ -2102,10 +2102,10 @@ public EReference getDeployment_Handlers() {
}
/**
- * Returns the meta object for the reference list '{@link org.apache.axis.model.wsdd.Deployment#getTransports Transports}'.
+ * Returns the meta object for the containment reference list '{@link org.apache.axis.model.wsdd.Deployment#getTransports Transports}'.
*
*
- * @return the meta object for the reference list 'Transports'.
+ * @return the meta object for the containment reference list 'Transports'.
* @see org.apache.axis.model.wsdd.Deployment#getTransports()
* @see #getDeployment()
* @generated
@@ -2378,11 +2378,11 @@ public void initializePackageContents() {
initEAttribute(getHandler_Type(), theXMLTypePackage.getQName(), "type", null, 0, 1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(flowEClass, Flow.class, "Flow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getFlow_Handlers(), this.getHandler(), null, "handlers", null, 0, -1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getFlow_Handlers(), this.getHandler(), null, "handlers", null, 0, -1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(deployableItemEClass, DeployableItem.class, "DeployableItem", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDeployableItem_RequestFlow(), this.getFlow(), null, "requestFlow", null, 0, 1, DeployableItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDeployableItem_ResponseFlow(), this.getFlow(), null, "responseFlow", null, 0, 1, DeployableItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDeployableItem_RequestFlow(), this.getFlow(), null, "requestFlow", null, 0, 1, DeployableItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDeployableItem_ResponseFlow(), this.getFlow(), null, "responseFlow", null, 0, 1, DeployableItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(globalConfigurationEClass, GlobalConfiguration.class, "GlobalConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
@@ -2404,10 +2404,13 @@ public void initializePackageContents() {
initEClass(deploymentEClass, Deployment.class, "Deployment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getDeployment_Name(), ecorePackage.getEString(), "name", null, 0, 1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getDeployment_GlobalConfiguration(), this.getGlobalConfiguration(), null, "globalConfiguration", null, 0, 1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDeployment_Handlers(), this.getHandler(), null, "handlers", null, 0, -1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDeployment_Transports(), this.getTransport(), null, "transports", null, 0, -1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDeployment_Handlers(), this.getHandler(), null, "handlers", null, 0, -1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDeployment_Transports(), this.getTransport(), null, "transports", null, 0, -1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getDeployment_Services(), this.getService(), null, "services", null, 0, -1, Deployment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ op = addEOperation(deploymentEClass, null, "merge");
+ addEParameter(op, this.getDeployment(), "other", 1, 1);
+
// Initialize enums and add enum literals
initEEnum(useEEnum, Use.class, "Use");
addEEnumLiteral(useEEnum, Use.ENCODED_LITERAL);
@@ -2595,7 +2598,7 @@ public interface Literals {
public static final EClass FLOW = eINSTANCE.getFlow();
/**
- * The meta object literal for the 'Handlers' reference list feature.
+ * The meta object literal for the 'Handlers' containment reference list feature.
*
*
* @generated
@@ -2951,7 +2954,7 @@ public interface Literals {
public static final EClass DEPLOYABLE_ITEM = eINSTANCE.getDeployableItem();
/**
- * The meta object literal for the 'Request Flow' reference feature.
+ * The meta object literal for the 'Request Flow' containment reference feature.
*
*
* @generated
@@ -2959,7 +2962,7 @@ public interface Literals {
public static final EReference DEPLOYABLE_ITEM__REQUEST_FLOW = eINSTANCE.getDeployableItem_RequestFlow();
/**
- * The meta object literal for the 'Response Flow' reference feature.
+ * The meta object literal for the 'Response Flow' containment reference feature.
*
*
* @generated
@@ -3111,7 +3114,7 @@ public interface Literals {
public static final EReference DEPLOYMENT__GLOBAL_CONFIGURATION = eINSTANCE.getDeployment_GlobalConfiguration();
/**
- * The meta object literal for the 'Handlers' reference list feature.
+ * The meta object literal for the 'Handlers' containment reference list feature.
*
*
* @generated
@@ -3119,7 +3122,7 @@ public interface Literals {
public static final EReference DEPLOYMENT__HANDLERS = eINSTANCE.getDeployment_Handlers();
/**
- * The meta object literal for the 'Transports' reference list feature.
+ * The meta object literal for the 'Transports' containment reference list feature.
*
*
* @generated
diff --git a/maven/maven-wsdd-plugin/pom.xml b/maven/maven-wsdd-plugin/pom.xml
new file mode 100644
index 000000000..fe881a11a
--- /dev/null
+++ b/maven/maven-wsdd-plugin/pom.xml
@@ -0,0 +1,68 @@
+
+
+
+ 4.0.0
+
+ org.apache.axis
+ maven
+ 1.4.1-SNAPSHOT
+ ../pom.xml
+
+ maven-wsdd-plugin
+ maven-plugin
+ maven-wsdd-plugin
+
+ Maven plugin to process WSDD files.
+
+ ${baseUrl}/maven/wsdd
+
+
+ axis
+ ${baseSiteUrl}/maven/wsdd
+
+
+
+
+ ${project.groupId}
+ axis-model
+ ${project.version}
+
+
+ org.apache.maven
+ maven-plugin-api
+
+
+ org.apache.maven
+ maven-project
+
+
+ com.github.veithen.ulog
+ ulog
+
+
+
+
diff --git a/maven/maven-wsdd-plugin/src/main/java/org/apache/axis/tools/maven/wsdd/GenerateWSDDMojo.java b/maven/maven-wsdd-plugin/src/main/java/org/apache/axis/tools/maven/wsdd/GenerateWSDDMojo.java
new file mode 100644
index 000000000..f05434d82
--- /dev/null
+++ b/maven/maven-wsdd-plugin/src/main/java/org/apache/axis/tools/maven/wsdd/GenerateWSDDMojo.java
@@ -0,0 +1,175 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.tools.maven.wsdd;
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.util.Enumeration;
+import java.util.List;
+
+import org.apache.axis.model.wsdd.Deployment;
+import org.apache.axis.model.wsdd.WSDDUtil;
+import org.apache.maven.artifact.DependencyResolutionRequiredException;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.project.MavenProject;
+import org.xml.sax.InputSource;
+
+import com.github.veithen.ulog.PlexusLoggerInjector;
+
+/**
+ *
+ *
+ * @goal generate-wsdd
+ * @requiresDependencyResolution compile
+ */
+public class GenerateWSDDMojo extends AbstractMojo {
+ /**
+ * @component
+ */
+ // This is necessary to set up logging such that all messages logged by the Axis
+ // libraries through commons logging are redirected to Plexus logs.
+ PlexusLoggerInjector loggerInjector;
+
+ /**
+ * The maven project.
+ *
+ * @parameter expression="${project}"
+ * @required
+ * @readonly
+ */
+ private MavenProject project;
+
+ /**
+ *
+ *
+ * @parameter
+ * @required
+ */
+ private String type;
+
+ /**
+ *
+ *
+ * @parameter
+ * @required
+ */
+ private File[] files;
+
+ /**
+ *
+ * @parameter
+ * @required
+ */
+ private File output;
+
+ public void execute() throws MojoExecutionException, MojoFailureException {
+ // TODO: copy & paste from AbstractGenerateWsdlMojo
+ List classpath;
+ try {
+ classpath = project.getCompileClasspathElements();
+ } catch (DependencyResolutionRequiredException ex) {
+ throw new MojoExecutionException("Unexpected exception", ex);
+ }
+ URL[] urls = new URL[classpath.size()];
+ for (int i=0; insmap
+ maven-wsdd-pluginmaven-wsdl2java-pluginmaven-java2wsdl-pluginmaven-axis-server-plugin
diff --git a/tests/spring-compat-tests/pom.xml b/tests/spring-compat-tests/pom.xml
index 0810a5ab6..76c6e097e 100644
--- a/tests/spring-compat-tests/pom.xml
+++ b/tests/spring-compat-tests/pom.xml
@@ -68,12 +68,31 @@
applicationorg.apache.axis.test.spring.OrderEndpointtrue
-
${project.build.directory}/wsdd/OrderService.wsdd
+
+ ${project.groupId}
+ maven-wsdd-plugin
+ ${project.version}
+
+
+ package
+
+ generate-wsdd
+
+
+ server
+
+ ${project.build.directory}/wsdd/OrderService.wsdd
+
+
+
+
+
+ org.codehaus.mojobuild-helper-maven-plugin
From a311d26b8c78bf8fd1a2174d26cc73efa3e04924 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Thu, 6 Dec 2012 21:28:43 +0000
Subject: [PATCH 059/197] Use javax.xml.namespace.QName to represent QNames in
the model.
---
.../model/{wsdd.genmodel => axis.genmodel} | 41 ++-
axis-model/model/wsdd.ecore | 32 +--
axis-model/model/xml.ecore | 7 +
.../apache/axis/model/wsdd/ArrayMapping.java | 10 +-
.../org/apache/axis/model/wsdd/Fault.java | 18 +-
.../org/apache/axis/model/wsdd/Handler.java | 10 +-
.../org/apache/axis/model/wsdd/Mapping.java | 18 +-
.../org/apache/axis/model/wsdd/Operation.java | 41 +--
.../axis/model/wsdd/OperationParameter.java | 26 +-
.../org/apache/axis/model/wsdd/Service.java | 9 +-
.../org/apache/axis/model/wsdd/Transport.java | 10 +-
.../model/wsdd/impl/ArrayMappingImpl.java | 11 +-
.../axis/model/wsdd/impl/FaultImpl.java | 21 +-
.../axis/model/wsdd/impl/HandlerImpl.java | 11 +-
.../axis/model/wsdd/impl/MappingImpl.java | 21 +-
.../axis/model/wsdd/impl/OperationImpl.java | 51 ++--
.../wsdd/impl/OperationParameterImpl.java | 31 +--
.../axis/model/wsdd/impl/ServiceImpl.java | 11 +-
.../axis/model/wsdd/impl/TransportImpl.java | 11 +-
.../axis/model/wsdd/impl/WSDDPackageImpl.java | 41 +--
.../org/apache/axis/model/xml/XmlFactory.java | 26 ++
.../axis/model/xml/impl/XmlFactoryImpl.java | 143 ++++++++++
.../axis/model/xml/impl/XmlPackageImpl.java | 254 ++++++++++++++++++
23 files changed, 668 insertions(+), 186 deletions(-)
rename axis-model/model/{wsdd.genmodel => axis.genmodel} (74%)
create mode 100644 axis-model/model/xml.ecore
create mode 100644 axis-model/src/main/java/org/apache/axis/model/xml/XmlFactory.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlFactoryImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlPackageImpl.java
diff --git a/axis-model/model/wsdd.genmodel b/axis-model/model/axis.genmodel
similarity index 74%
rename from axis-model/model/wsdd.genmodel
rename to axis-model/model/axis.genmodel
index d5e4d29d5..267a0fc3d 100644
--- a/axis-model/model/wsdd.genmodel
+++ b/axis-model/model/axis.genmodel
@@ -2,7 +2,7 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/axis-model/model/wsdd.ecore b/axis-model/model/wsdd.ecore
index 26ceb4a03..316183f51 100644
--- a/axis-model/model/wsdd.ecore
+++ b/axis-model/model/wsdd.ecore
@@ -23,8 +23,8 @@
-
-
+
+
@@ -32,31 +32,31 @@
-
+
-
-
+
+
-
+
-
+
-
+
-
-
-
-
-
+
+
+
+
+
@@ -93,7 +93,7 @@
-
+
-
+
-
+
+
+
+
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java
index feede138c..94aa465af 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/ArrayMapping.java
@@ -6,6 +6,8 @@
*/
package org.apache.axis.model.wsdd;
+import javax.xml.namespace.QName;
+
/**
*
@@ -32,11 +34,11 @@ public interface ArrayMapping extends Mapping {
*
*
* @return the value of the 'Inner Type' attribute.
- * @see #setInnerType(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setInnerType(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getInnerType();
+ QName getInnerType();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.ArrayMapping#getInnerType Inner Type}' attribute.
@@ -46,6 +48,6 @@ public interface ArrayMapping extends Mapping {
* @see #getInnerType()
* @generated
*/
- void setInnerType(Object value);
+ void setInnerType(QName value);
} // ArrayMapping
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Fault.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Fault.java
index 4b30151c3..850353c92 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Fault.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Fault.java
@@ -6,6 +6,8 @@
*/
package org.apache.axis.model.wsdd;
+import javax.xml.namespace.QName;
+
/**
*
* A representation of the model object 'Fault'.
@@ -59,11 +61,11 @@ public interface Fault {
*
*
* @return the value of the 'Qname' attribute.
- * @see #setQname(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setQname(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getQname();
+ QName getQname();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Fault#getQname Qname}' attribute.
@@ -73,7 +75,7 @@ public interface Fault {
* @see #getQname()
* @generated
*/
- void setQname(Object value);
+ void setQname(QName value);
/**
* Returns the value of the 'Class' attribute.
@@ -109,11 +111,11 @@ public interface Fault {
*
*
* @return the value of the 'Type' attribute.
- * @see #setType(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setType(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getType();
+ QName getType();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Fault#getType Type}' attribute.
@@ -123,6 +125,6 @@ public interface Fault {
* @see #getType()
* @generated
*/
- void setType(Object value);
+ void setType(QName value);
} // Fault
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Handler.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Handler.java
index 7800233bd..82e4fb26d 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Handler.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Handler.java
@@ -6,6 +6,8 @@
*/
package org.apache.axis.model.wsdd;
+import javax.xml.namespace.QName;
+
/**
*
@@ -59,11 +61,11 @@ public interface Handler extends Parameterizable {
*
*
* @return the value of the 'Type' attribute.
- * @see #setType(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setType(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getType();
+ QName getType();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Handler#getType Type}' attribute.
@@ -73,5 +75,5 @@ public interface Handler extends Parameterizable {
* @see #getType()
* @generated
*/
- void setType(Object value);
+ void setType(QName value);
} // Handler
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java
index 37892ed3f..661d8e802 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Mapping.java
@@ -6,6 +6,8 @@
*/
package org.apache.axis.model.wsdd;
+import javax.xml.namespace.QName;
+
/**
*
* A representation of the model object 'Mapping'.
@@ -33,11 +35,11 @@ public interface Mapping {
*
*
* @return the value of the 'Qname' attribute.
- * @see #setQname(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setQname(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getQname();
+ QName getQname();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Mapping#getQname Qname}' attribute.
@@ -47,7 +49,7 @@ public interface Mapping {
* @see #getQname()
* @generated
*/
- void setQname(Object value);
+ void setQname(QName value);
/**
* Returns the value of the 'Type' attribute.
@@ -58,11 +60,11 @@ public interface Mapping {
*
*
* @return the value of the 'Type' attribute.
- * @see #setType(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setType(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getType();
+ QName getType();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Mapping#getType Type}' attribute.
@@ -72,7 +74,7 @@ public interface Mapping {
* @see #getType()
* @generated
*/
- void setType(Object value);
+ void setType(QName value);
/**
* Returns the value of the 'Encoding Style' attribute.
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Operation.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Operation.java
index ddbe32fca..7769b3567 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Operation.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Operation.java
@@ -7,6 +7,7 @@
package org.apache.axis.model.wsdd;
import java.util.List;
+import javax.xml.namespace.QName;
/**
*
@@ -68,11 +69,11 @@ public interface Operation {
*
*
* @return the value of the 'Qname' attribute.
- * @see #setQname(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setQname(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getQname();
+ QName getQname();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getQname Qname}' attribute.
@@ -82,7 +83,7 @@ public interface Operation {
* @see #getQname()
* @generated
*/
- void setQname(Object value);
+ void setQname(QName value);
/**
* Returns the value of the 'Return QName' attribute.
@@ -93,11 +94,11 @@ public interface Operation {
*
*
* @return the value of the 'Return QName' attribute.
- * @see #setReturnQName(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setReturnQName(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getReturnQName();
+ QName getReturnQName();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getReturnQName Return QName}' attribute.
@@ -107,7 +108,7 @@ public interface Operation {
* @see #getReturnQName()
* @generated
*/
- void setReturnQName(Object value);
+ void setReturnQName(QName value);
/**
* Returns the value of the 'Return Type' attribute.
@@ -118,11 +119,11 @@ public interface Operation {
*
*
* @return the value of the 'Return Type' attribute.
- * @see #setReturnType(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setReturnType(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getReturnType();
+ QName getReturnType();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getReturnType Return Type}' attribute.
@@ -132,7 +133,7 @@ public interface Operation {
* @see #getReturnType()
* @generated
*/
- void setReturnType(Object value);
+ void setReturnType(QName value);
/**
* Returns the value of the 'Return Item QName' attribute.
@@ -143,11 +144,11 @@ public interface Operation {
*
*
* @return the value of the 'Return Item QName' attribute.
- * @see #setReturnItemQName(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setReturnItemQName(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getReturnItemQName();
+ QName getReturnItemQName();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getReturnItemQName Return Item QName}' attribute.
@@ -157,7 +158,7 @@ public interface Operation {
* @see #getReturnItemQName()
* @generated
*/
- void setReturnItemQName(Object value);
+ void setReturnItemQName(QName value);
/**
* Returns the value of the 'Return Item Type' attribute.
@@ -168,11 +169,11 @@ public interface Operation {
*
*
* @return the value of the 'Return Item Type' attribute.
- * @see #setReturnItemType(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setReturnItemType(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getReturnItemType();
+ QName getReturnItemType();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Operation#getReturnItemType Return Item Type}' attribute.
@@ -182,7 +183,7 @@ public interface Operation {
* @see #getReturnItemType()
* @generated
*/
- void setReturnItemType(Object value);
+ void setReturnItemType(QName value);
/**
* Returns the value of the 'Soap Action' attribute.
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/OperationParameter.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/OperationParameter.java
index 0fdc89761..0820d4f5f 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/OperationParameter.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/OperationParameter.java
@@ -6,6 +6,8 @@
*/
package org.apache.axis.model.wsdd;
+import javax.xml.namespace.QName;
+
/**
*
* A representation of the model object 'Operation Parameter'.
@@ -62,11 +64,11 @@ public interface OperationParameter {
*
*
* @return the value of the 'Qname' attribute.
- * @see #setQname(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setQname(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getQname();
+ QName getQname();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.OperationParameter#getQname Qname}' attribute.
@@ -76,7 +78,7 @@ public interface OperationParameter {
* @see #getQname()
* @generated
*/
- void setQname(Object value);
+ void setQname(QName value);
/**
* Returns the value of the 'Type' attribute.
@@ -87,11 +89,11 @@ public interface OperationParameter {
*
*
* @return the value of the 'Type' attribute.
- * @see #setType(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setType(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getType();
+ QName getType();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.OperationParameter#getType Type}' attribute.
@@ -101,7 +103,7 @@ public interface OperationParameter {
* @see #getType()
* @generated
*/
- void setType(Object value);
+ void setType(QName value);
/**
* Returns the value of the 'Mode' attribute.
@@ -190,11 +192,11 @@ public interface OperationParameter {
*
*
* @return the value of the 'Item QName' attribute.
- * @see #setItemQName(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setItemQName(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getItemQName();
+ QName getItemQName();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.OperationParameter#getItemQName Item QName}' attribute.
@@ -204,6 +206,6 @@ public interface OperationParameter {
* @see #getItemQName()
* @generated
*/
- void setItemQName(Object value);
+ void setItemQName(QName value);
} // OperationParameter
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
index 5605ba91a..4fa0c464c 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
@@ -7,6 +7,7 @@
package org.apache.axis.model.wsdd;
import java.util.List;
+import javax.xml.namespace.QName;
/**
*
@@ -66,11 +67,11 @@ public interface Service extends DeployableItem {
*
*
* @return the value of the 'Provider' attribute.
- * @see #setProvider(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setProvider(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getProvider();
+ QName getProvider();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Service#getProvider Provider}' attribute.
@@ -80,7 +81,7 @@ public interface Service extends DeployableItem {
* @see #getProvider()
* @generated
*/
- void setProvider(Object value);
+ void setProvider(QName value);
/**
* Returns the value of the 'Use' attribute.
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Transport.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Transport.java
index 3652a218e..a05803992 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Transport.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Transport.java
@@ -6,6 +6,8 @@
*/
package org.apache.axis.model.wsdd;
+import javax.xml.namespace.QName;
+
/**
*
@@ -58,11 +60,11 @@ public interface Transport extends DeployableItem {
*
*
* @return the value of the 'Pivot' attribute.
- * @see #setPivot(Object)
- * @model dataType="org.eclipse.emf.ecore.xml.type.QName"
+ * @see #setPivot(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
* @generated
*/
- Object getPivot();
+ QName getPivot();
/**
* Sets the value of the '{@link org.apache.axis.model.wsdd.Transport#getPivot Pivot}' attribute.
@@ -72,6 +74,6 @@ public interface Transport extends DeployableItem {
* @see #getPivot()
* @generated
*/
- void setPivot(Object value);
+ void setPivot(QName value);
} // Transport
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java
index 3c1b72417..32f2bd983 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ArrayMappingImpl.java
@@ -6,6 +6,7 @@
*/
package org.apache.axis.model.wsdd.impl;
+import javax.xml.namespace.QName;
import org.apache.axis.model.wsdd.ArrayMapping;
import org.eclipse.emf.ecore.EClass;
@@ -32,7 +33,7 @@ public class ArrayMappingImpl extends MappingImpl implements ArrayMapping {
* @generated
* @ordered
*/
- protected static final Object INNER_TYPE_EDEFAULT = null;
+ protected static final QName INNER_TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getInnerType() Inner Type}' attribute.
@@ -42,7 +43,7 @@ public class ArrayMappingImpl extends MappingImpl implements ArrayMapping {
* @generated
* @ordered
*/
- protected Object innerType = INNER_TYPE_EDEFAULT;
+ protected QName innerType = INNER_TYPE_EDEFAULT;
/**
*
@@ -67,7 +68,7 @@ protected EClass eStaticClass() {
*
* @generated
*/
- public Object getInnerType() {
+ public QName getInnerType() {
return innerType;
}
@@ -76,7 +77,7 @@ public Object getInnerType() {
*
* @generated
*/
- public void setInnerType(Object newInnerType) {
+ public void setInnerType(QName newInnerType) {
innerType = newInnerType;
}
@@ -101,7 +102,7 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case WSDDPackageImpl.ARRAY_MAPPING__INNER_TYPE:
- setInnerType(newValue);
+ setInnerType((QName)newValue);
return;
}
super.eSet(featureID, newValue);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FaultImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FaultImpl.java
index e54cc7627..ba5b82cfc 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FaultImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/FaultImpl.java
@@ -6,6 +6,7 @@
*/
package org.apache.axis.model.wsdd.impl;
+import javax.xml.namespace.QName;
import org.apache.axis.model.wsdd.Fault;
import org.eclipse.emf.ecore.EClass;
@@ -57,7 +58,7 @@ public class FaultImpl extends EObjectImpl implements Fault {
* @generated
* @ordered
*/
- protected static final Object QNAME_EDEFAULT = null;
+ protected static final QName QNAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getQname() Qname}' attribute.
@@ -67,7 +68,7 @@ public class FaultImpl extends EObjectImpl implements Fault {
* @generated
* @ordered
*/
- protected Object qname = QNAME_EDEFAULT;
+ protected QName qname = QNAME_EDEFAULT;
/**
* The default value of the '{@link #getClass_() Class}' attribute.
@@ -97,7 +98,7 @@ public class FaultImpl extends EObjectImpl implements Fault {
* @generated
* @ordered
*/
- protected static final Object TYPE_EDEFAULT = null;
+ protected static final QName TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getType() Type}' attribute.
@@ -107,7 +108,7 @@ public class FaultImpl extends EObjectImpl implements Fault {
* @generated
* @ordered
*/
- protected Object type = TYPE_EDEFAULT;
+ protected QName type = TYPE_EDEFAULT;
/**
*
@@ -150,7 +151,7 @@ public void setName(String newName) {
*
* @generated
*/
- public Object getQname() {
+ public QName getQname() {
return qname;
}
@@ -159,7 +160,7 @@ public Object getQname() {
*
* @generated
*/
- public void setQname(Object newQname) {
+ public void setQname(QName newQname) {
qname = newQname;
}
@@ -186,7 +187,7 @@ public void setClass(String newClass) {
*
* @generated
*/
- public Object getType() {
+ public QName getType() {
return type;
}
@@ -195,7 +196,7 @@ public Object getType() {
*
* @generated
*/
- public void setType(Object newType) {
+ public void setType(QName newType) {
type = newType;
}
@@ -229,13 +230,13 @@ public void eSet(int featureID, Object newValue) {
setName((String)newValue);
return;
case WSDDPackageImpl.FAULT__QNAME:
- setQname(newValue);
+ setQname((QName)newValue);
return;
case WSDDPackageImpl.FAULT__CLASS:
setClass((String)newValue);
return;
case WSDDPackageImpl.FAULT__TYPE:
- setType(newValue);
+ setType((QName)newValue);
return;
}
super.eSet(featureID, newValue);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/HandlerImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/HandlerImpl.java
index e9aa4758d..fa7620670 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/HandlerImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/HandlerImpl.java
@@ -6,6 +6,7 @@
*/
package org.apache.axis.model.wsdd.impl;
+import javax.xml.namespace.QName;
import org.apache.axis.model.wsdd.Handler;
import org.eclipse.emf.ecore.EClass;
@@ -51,7 +52,7 @@ public class HandlerImpl extends ParameterizableImpl implements Handler {
* @generated
* @ordered
*/
- protected static final Object TYPE_EDEFAULT = null;
+ protected static final QName TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getType() Type}' attribute.
*
@@ -60,7 +61,7 @@ public class HandlerImpl extends ParameterizableImpl implements Handler {
* @generated
* @ordered
*/
- protected Object type = TYPE_EDEFAULT;
+ protected QName type = TYPE_EDEFAULT;
/**
*
@@ -103,7 +104,7 @@ public void setName(String newName) {
*
* @generated
*/
- public Object getType() {
+ public QName getType() {
return type;
}
@@ -112,7 +113,7 @@ public Object getType() {
*
* @generated
*/
- public void setType(Object newType) {
+ public void setType(QName newType) {
type = newType;
}
@@ -142,7 +143,7 @@ public void eSet(int featureID, Object newValue) {
setName((String)newValue);
return;
case WSDDPackageImpl.HANDLER__TYPE:
- setType(newValue);
+ setType((QName)newValue);
return;
}
super.eSet(featureID, newValue);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java
index 43a7db25a..f626a9ad4 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingImpl.java
@@ -6,6 +6,7 @@
*/
package org.apache.axis.model.wsdd.impl;
+import javax.xml.namespace.QName;
import org.apache.axis.model.wsdd.Mapping;
import org.eclipse.emf.ecore.EClass;
@@ -36,7 +37,7 @@ public abstract class MappingImpl extends EObjectImpl implements Mapping {
* @generated
* @ordered
*/
- protected static final Object QNAME_EDEFAULT = null;
+ protected static final QName QNAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getQname() Qname}' attribute.
@@ -46,7 +47,7 @@ public abstract class MappingImpl extends EObjectImpl implements Mapping {
* @generated
* @ordered
*/
- protected Object qname = QNAME_EDEFAULT;
+ protected QName qname = QNAME_EDEFAULT;
/**
* The default value of the '{@link #getType() Type}' attribute.
@@ -56,7 +57,7 @@ public abstract class MappingImpl extends EObjectImpl implements Mapping {
* @generated
* @ordered
*/
- protected static final Object TYPE_EDEFAULT = null;
+ protected static final QName TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getType() Type}' attribute.
@@ -66,7 +67,7 @@ public abstract class MappingImpl extends EObjectImpl implements Mapping {
* @generated
* @ordered
*/
- protected Object type = TYPE_EDEFAULT;
+ protected QName type = TYPE_EDEFAULT;
/**
* The default value of the '{@link #getEncodingStyle() Encoding Style}' attribute.
@@ -111,7 +112,7 @@ protected EClass eStaticClass() {
*
* @generated
*/
- public Object getQname() {
+ public QName getQname() {
return qname;
}
@@ -120,7 +121,7 @@ public Object getQname() {
*
* @generated
*/
- public void setQname(Object newQname) {
+ public void setQname(QName newQname) {
qname = newQname;
}
@@ -129,7 +130,7 @@ public void setQname(Object newQname) {
*
* @generated
*/
- public Object getType() {
+ public QName getType() {
return type;
}
@@ -138,7 +139,7 @@ public Object getType() {
*
* @generated
*/
- public void setType(Object newType) {
+ public void setType(QName newType) {
type = newType;
}
@@ -185,10 +186,10 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case WSDDPackageImpl.MAPPING__QNAME:
- setQname(newValue);
+ setQname((QName)newValue);
return;
case WSDDPackageImpl.MAPPING__TYPE:
- setType(newValue);
+ setType((QName)newValue);
return;
case WSDDPackageImpl.MAPPING__ENCODING_STYLE:
setEncodingStyle((String)newValue);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationImpl.java
index 85b9e4f1d..1f65151dc 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationImpl.java
@@ -9,6 +9,7 @@
import java.util.Collection;
import java.util.List;
+import javax.xml.namespace.QName;
import org.apache.axis.model.wsdd.Fault;
import org.apache.axis.model.wsdd.Operation;
import org.apache.axis.model.wsdd.OperationParameter;
@@ -77,7 +78,7 @@ public class OperationImpl extends EObjectImpl implements Operation {
* @generated
* @ordered
*/
- protected static final Object QNAME_EDEFAULT = null;
+ protected static final QName QNAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getQname() Qname}' attribute.
@@ -87,7 +88,7 @@ public class OperationImpl extends EObjectImpl implements Operation {
* @generated
* @ordered
*/
- protected Object qname = QNAME_EDEFAULT;
+ protected QName qname = QNAME_EDEFAULT;
/**
* The default value of the '{@link #getReturnQName() Return QName}' attribute.
@@ -97,7 +98,7 @@ public class OperationImpl extends EObjectImpl implements Operation {
* @generated
* @ordered
*/
- protected static final Object RETURN_QNAME_EDEFAULT = null;
+ protected static final QName RETURN_QNAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getReturnQName() Return QName}' attribute.
@@ -107,7 +108,7 @@ public class OperationImpl extends EObjectImpl implements Operation {
* @generated
* @ordered
*/
- protected Object returnQName = RETURN_QNAME_EDEFAULT;
+ protected QName returnQName = RETURN_QNAME_EDEFAULT;
/**
* The default value of the '{@link #getReturnType() Return Type}' attribute.
@@ -117,7 +118,7 @@ public class OperationImpl extends EObjectImpl implements Operation {
* @generated
* @ordered
*/
- protected static final Object RETURN_TYPE_EDEFAULT = null;
+ protected static final QName RETURN_TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getReturnType() Return Type}' attribute.
@@ -127,7 +128,7 @@ public class OperationImpl extends EObjectImpl implements Operation {
* @generated
* @ordered
*/
- protected Object returnType = RETURN_TYPE_EDEFAULT;
+ protected QName returnType = RETURN_TYPE_EDEFAULT;
/**
* The default value of the '{@link #getReturnItemQName() Return Item QName}' attribute.
@@ -137,7 +138,7 @@ public class OperationImpl extends EObjectImpl implements Operation {
* @generated
* @ordered
*/
- protected static final Object RETURN_ITEM_QNAME_EDEFAULT = null;
+ protected static final QName RETURN_ITEM_QNAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getReturnItemQName() Return Item QName}' attribute.
@@ -147,7 +148,7 @@ public class OperationImpl extends EObjectImpl implements Operation {
* @generated
* @ordered
*/
- protected Object returnItemQName = RETURN_ITEM_QNAME_EDEFAULT;
+ protected QName returnItemQName = RETURN_ITEM_QNAME_EDEFAULT;
/**
* The default value of the '{@link #getReturnItemType() Return Item Type}' attribute.
@@ -157,7 +158,7 @@ public class OperationImpl extends EObjectImpl implements Operation {
* @generated
* @ordered
*/
- protected static final Object RETURN_ITEM_TYPE_EDEFAULT = null;
+ protected static final QName RETURN_ITEM_TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getReturnItemType() Return Item Type}' attribute.
@@ -167,7 +168,7 @@ public class OperationImpl extends EObjectImpl implements Operation {
* @generated
* @ordered
*/
- protected Object returnItemType = RETURN_ITEM_TYPE_EDEFAULT;
+ protected QName returnItemType = RETURN_ITEM_TYPE_EDEFAULT;
/**
* The default value of the '{@link #getSoapAction() Soap Action}' attribute.
@@ -290,7 +291,7 @@ public void setName(String newName) {
*
* @generated
*/
- public Object getQname() {
+ public QName getQname() {
return qname;
}
@@ -299,7 +300,7 @@ public Object getQname() {
*
* @generated
*/
- public void setQname(Object newQname) {
+ public void setQname(QName newQname) {
qname = newQname;
}
@@ -308,7 +309,7 @@ public void setQname(Object newQname) {
*
* @generated
*/
- public Object getReturnQName() {
+ public QName getReturnQName() {
return returnQName;
}
@@ -317,7 +318,7 @@ public Object getReturnQName() {
*
* @generated
*/
- public void setReturnQName(Object newReturnQName) {
+ public void setReturnQName(QName newReturnQName) {
returnQName = newReturnQName;
}
@@ -326,7 +327,7 @@ public void setReturnQName(Object newReturnQName) {
*
* @generated
*/
- public Object getReturnType() {
+ public QName getReturnType() {
return returnType;
}
@@ -335,7 +336,7 @@ public Object getReturnType() {
*
* @generated
*/
- public void setReturnType(Object newReturnType) {
+ public void setReturnType(QName newReturnType) {
returnType = newReturnType;
}
@@ -344,7 +345,7 @@ public void setReturnType(Object newReturnType) {
*
* @generated
*/
- public Object getReturnItemQName() {
+ public QName getReturnItemQName() {
return returnItemQName;
}
@@ -353,7 +354,7 @@ public Object getReturnItemQName() {
*
* @generated
*/
- public void setReturnItemQName(Object newReturnItemQName) {
+ public void setReturnItemQName(QName newReturnItemQName) {
returnItemQName = newReturnItemQName;
}
@@ -362,7 +363,7 @@ public void setReturnItemQName(Object newReturnItemQName) {
*
* @generated
*/
- public Object getReturnItemType() {
+ public QName getReturnItemType() {
return returnItemType;
}
@@ -371,7 +372,7 @@ public Object getReturnItemType() {
*
* @generated
*/
- public void setReturnItemType(Object newReturnItemType) {
+ public void setReturnItemType(QName newReturnItemType) {
returnItemType = newReturnItemType;
}
@@ -512,19 +513,19 @@ public void eSet(int featureID, Object newValue) {
setName((String)newValue);
return;
case WSDDPackageImpl.OPERATION__QNAME:
- setQname(newValue);
+ setQname((QName)newValue);
return;
case WSDDPackageImpl.OPERATION__RETURN_QNAME:
- setReturnQName(newValue);
+ setReturnQName((QName)newValue);
return;
case WSDDPackageImpl.OPERATION__RETURN_TYPE:
- setReturnType(newValue);
+ setReturnType((QName)newValue);
return;
case WSDDPackageImpl.OPERATION__RETURN_ITEM_QNAME:
- setReturnItemQName(newValue);
+ setReturnItemQName((QName)newValue);
return;
case WSDDPackageImpl.OPERATION__RETURN_ITEM_TYPE:
- setReturnItemType(newValue);
+ setReturnItemType((QName)newValue);
return;
case WSDDPackageImpl.OPERATION__SOAP_ACTION:
setSoapAction((String)newValue);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationParameterImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationParameterImpl.java
index 62c7e5026..a1d396b7d 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationParameterImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/OperationParameterImpl.java
@@ -6,6 +6,7 @@
*/
package org.apache.axis.model.wsdd.impl;
+import javax.xml.namespace.QName;
import org.apache.axis.model.wsdd.OperationParameter;
import org.apache.axis.model.wsdd.ParameterMode;
@@ -61,7 +62,7 @@ public class OperationParameterImpl extends EObjectImpl implements OperationPara
* @generated
* @ordered
*/
- protected static final Object QNAME_EDEFAULT = null;
+ protected static final QName QNAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getQname() Qname}' attribute.
@@ -71,7 +72,7 @@ public class OperationParameterImpl extends EObjectImpl implements OperationPara
* @generated
* @ordered
*/
- protected Object qname = QNAME_EDEFAULT;
+ protected QName qname = QNAME_EDEFAULT;
/**
* The default value of the '{@link #getType() Type}' attribute.
@@ -81,7 +82,7 @@ public class OperationParameterImpl extends EObjectImpl implements OperationPara
* @generated
* @ordered
*/
- protected static final Object TYPE_EDEFAULT = null;
+ protected static final QName TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getType() Type}' attribute.
@@ -91,7 +92,7 @@ public class OperationParameterImpl extends EObjectImpl implements OperationPara
* @generated
* @ordered
*/
- protected Object type = TYPE_EDEFAULT;
+ protected QName type = TYPE_EDEFAULT;
/**
* The default value of the '{@link #getMode() Mode}' attribute.
@@ -161,7 +162,7 @@ public class OperationParameterImpl extends EObjectImpl implements OperationPara
* @generated
* @ordered
*/
- protected static final Object ITEM_QNAME_EDEFAULT = null;
+ protected static final QName ITEM_QNAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getItemQName() Item QName}' attribute.
@@ -171,7 +172,7 @@ public class OperationParameterImpl extends EObjectImpl implements OperationPara
* @generated
* @ordered
*/
- protected Object itemQName = ITEM_QNAME_EDEFAULT;
+ protected QName itemQName = ITEM_QNAME_EDEFAULT;
/**
*
@@ -214,7 +215,7 @@ public void setName(String newName) {
*
* @generated
*/
- public Object getQname() {
+ public QName getQname() {
return qname;
}
@@ -223,7 +224,7 @@ public Object getQname() {
*
* @generated
*/
- public void setQname(Object newQname) {
+ public void setQname(QName newQname) {
qname = newQname;
}
@@ -232,7 +233,7 @@ public void setQname(Object newQname) {
*
* @generated
*/
- public Object getType() {
+ public QName getType() {
return type;
}
@@ -241,7 +242,7 @@ public Object getType() {
*
* @generated
*/
- public void setType(Object newType) {
+ public void setType(QName newType) {
type = newType;
}
@@ -304,7 +305,7 @@ public void setOutHeader(Boolean newOutHeader) {
*
* @generated
*/
- public Object getItemQName() {
+ public QName getItemQName() {
return itemQName;
}
@@ -313,7 +314,7 @@ public Object getItemQName() {
*
* @generated
*/
- public void setItemQName(Object newItemQName) {
+ public void setItemQName(QName newItemQName) {
itemQName = newItemQName;
}
@@ -353,10 +354,10 @@ public void eSet(int featureID, Object newValue) {
setName((String)newValue);
return;
case WSDDPackageImpl.OPERATION_PARAMETER__QNAME:
- setQname(newValue);
+ setQname((QName)newValue);
return;
case WSDDPackageImpl.OPERATION_PARAMETER__TYPE:
- setType(newValue);
+ setType((QName)newValue);
return;
case WSDDPackageImpl.OPERATION_PARAMETER__MODE:
setMode((ParameterMode)newValue);
@@ -368,7 +369,7 @@ public void eSet(int featureID, Object newValue) {
setOutHeader((Boolean)newValue);
return;
case WSDDPackageImpl.OPERATION_PARAMETER__ITEM_QNAME:
- setItemQName(newValue);
+ setItemQName((QName)newValue);
return;
}
super.eSet(featureID, newValue);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
index 9b4f4b4cd..6a9adda68 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
@@ -9,6 +9,7 @@
import java.util.Collection;
import java.util.List;
+import javax.xml.namespace.QName;
import org.apache.axis.model.wsdd.ArrayMapping;
import org.apache.axis.model.wsdd.BeanMapping;
import org.apache.axis.model.wsdd.Operation;
@@ -77,7 +78,7 @@ public class ServiceImpl extends DeployableItemImpl implements Service {
* @generated
* @ordered
*/
- protected static final Object PROVIDER_EDEFAULT = null;
+ protected static final QName PROVIDER_EDEFAULT = null;
/**
* The cached value of the '{@link #getProvider() Provider}' attribute.
@@ -87,7 +88,7 @@ public class ServiceImpl extends DeployableItemImpl implements Service {
* @generated
* @ordered
*/
- protected Object provider = PROVIDER_EDEFAULT;
+ protected QName provider = PROVIDER_EDEFAULT;
/**
* The default value of the '{@link #getUse() Use}' attribute.
@@ -220,7 +221,7 @@ public void setName(String newName) {
*
* @generated
*/
- public Object getProvider() {
+ public QName getProvider() {
return provider;
}
@@ -229,7 +230,7 @@ public Object getProvider() {
*
* @generated
*/
- public void setProvider(Object newProvider) {
+ public void setProvider(QName newProvider) {
provider = newProvider;
}
@@ -388,7 +389,7 @@ public void eSet(int featureID, Object newValue) {
setName((String)newValue);
return;
case WSDDPackageImpl.SERVICE__PROVIDER:
- setProvider(newValue);
+ setProvider((QName)newValue);
return;
case WSDDPackageImpl.SERVICE__USE:
setUse((Use)newValue);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/TransportImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/TransportImpl.java
index be2dbbc45..71faa2e56 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/TransportImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/TransportImpl.java
@@ -6,6 +6,7 @@
*/
package org.apache.axis.model.wsdd.impl;
+import javax.xml.namespace.QName;
import org.apache.axis.model.wsdd.Transport;
import org.eclipse.emf.ecore.EClass;
@@ -53,7 +54,7 @@ public class TransportImpl extends DeployableItemImpl implements Transport {
* @generated
* @ordered
*/
- protected static final Object PIVOT_EDEFAULT = null;
+ protected static final QName PIVOT_EDEFAULT = null;
/**
* The cached value of the '{@link #getPivot() Pivot}' attribute.
@@ -63,7 +64,7 @@ public class TransportImpl extends DeployableItemImpl implements Transport {
* @generated
* @ordered
*/
- protected Object pivot = PIVOT_EDEFAULT;
+ protected QName pivot = PIVOT_EDEFAULT;
/**
*
@@ -106,7 +107,7 @@ public void setName(String newName) {
*
* @generated
*/
- public Object getPivot() {
+ public QName getPivot() {
return pivot;
}
@@ -115,7 +116,7 @@ public Object getPivot() {
*
* @generated
*/
- public void setPivot(Object newPivot) {
+ public void setPivot(QName newPivot) {
pivot = newPivot;
}
@@ -145,7 +146,7 @@ public void eSet(int featureID, Object newValue) {
setName((String)newValue);
return;
case WSDDPackageImpl.TRANSPORT__PIVOT:
- setPivot(newValue);
+ setPivot((QName)newValue);
return;
}
super.eSet(featureID, newValue);
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
index e26305492..d0a357979 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
@@ -27,6 +27,7 @@
import org.apache.axis.model.wsdd.Use;
import org.apache.axis.model.wsdd.WSDDFactory;
+import org.apache.axis.model.xml.impl.XmlPackageImpl;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
@@ -1241,14 +1242,16 @@ public static WSDDPackageImpl init() {
isInited = true;
- // Initialize simple dependencies
- XMLTypePackage.eINSTANCE.eClass();
+ // Obtain or create and register interdependencies
+ XmlPackageImpl theXmlPackage = (XmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XmlPackageImpl.eNS_URI) instanceof XmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XmlPackageImpl.eNS_URI) : XmlPackageImpl.eINSTANCE);
// Create package meta-data objects
theWSDDPackage.createPackageContents();
+ theXmlPackage.createPackageContents();
// Initialize created meta-data
theWSDDPackage.initializePackageContents();
+ theXmlPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theWSDDPackage.freeze();
@@ -2307,7 +2310,7 @@ public void initializePackageContents() {
setNsURI(eNS_URI);
// Obtain other dependent packages
- XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+ XmlPackageImpl theXmlPackage = (XmlPackageImpl)EPackage.Registry.INSTANCE.getEPackage(XmlPackageImpl.eNS_URI);
// Add supertypes to classes
typeMappingEClass.getESuperTypes().add(this.getMapping());
@@ -2325,8 +2328,8 @@ public void initializePackageContents() {
initEAttribute(getParameter_Value(), ecorePackage.getEString(), "value", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(mappingEClass, Mapping.class, "Mapping", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMapping_Qname(), theXMLTypePackage.getQName(), "qname", null, 0, 1, Mapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMapping_Type(), theXMLTypePackage.getQName(), "type", null, 0, 1, Mapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMapping_Qname(), theXmlPackage.getQName(), "qname", null, 0, 1, Mapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMapping_Type(), theXmlPackage.getQName(), "type", null, 0, 1, Mapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getMapping_EncodingStyle(), ecorePackage.getEString(), "encodingStyle", null, 0, 1, Mapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(typeMappingEClass, TypeMapping.class, "TypeMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
@@ -2334,32 +2337,32 @@ public void initializePackageContents() {
initEAttribute(getTypeMapping_Deserializer(), ecorePackage.getEString(), "deserializer", null, 0, 1, TypeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(arrayMappingEClass, ArrayMapping.class, "ArrayMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getArrayMapping_InnerType(), theXMLTypePackage.getQName(), "innerType", null, 0, 1, ArrayMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getArrayMapping_InnerType(), theXmlPackage.getQName(), "innerType", null, 0, 1, ArrayMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(beanMappingEClass, BeanMapping.class, "BeanMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(operationParameterEClass, OperationParameter.class, "OperationParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getOperationParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getOperationParameter_Qname(), theXMLTypePackage.getQName(), "qname", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getOperationParameter_Type(), theXMLTypePackage.getQName(), "type", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperationParameter_Qname(), theXmlPackage.getQName(), "qname", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperationParameter_Type(), theXmlPackage.getQName(), "type", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getOperationParameter_Mode(), this.getParameterMode(), "mode", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getOperationParameter_InHeader(), ecorePackage.getEBooleanObject(), "inHeader", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getOperationParameter_OutHeader(), ecorePackage.getEBooleanObject(), "outHeader", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getOperationParameter_ItemQName(), theXMLTypePackage.getQName(), "itemQName", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperationParameter_ItemQName(), theXmlPackage.getQName(), "itemQName", null, 0, 1, OperationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(faultEClass, Fault.class, "Fault", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getFault_Name(), ecorePackage.getEString(), "name", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getFault_Qname(), theXMLTypePackage.getQName(), "qname", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getFault_Qname(), theXmlPackage.getQName(), "qname", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getFault_Class(), ecorePackage.getEString(), "class", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getFault_Type(), theXMLTypePackage.getQName(), "type", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getFault_Type(), theXmlPackage.getQName(), "type", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(operationEClass, Operation.class, "Operation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getOperation_Name(), ecorePackage.getEString(), "name", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getOperation_Qname(), theXMLTypePackage.getQName(), "qname", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getOperation_ReturnQName(), theXMLTypePackage.getQName(), "returnQName", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getOperation_ReturnType(), theXMLTypePackage.getQName(), "returnType", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getOperation_ReturnItemQName(), theXMLTypePackage.getQName(), "returnItemQName", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getOperation_ReturnItemType(), theXMLTypePackage.getQName(), "returnItemType", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_Qname(), theXmlPackage.getQName(), "qname", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_ReturnQName(), theXmlPackage.getQName(), "returnQName", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_ReturnType(), theXmlPackage.getQName(), "returnType", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_ReturnItemQName(), theXmlPackage.getQName(), "returnItemQName", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOperation_ReturnItemType(), theXmlPackage.getQName(), "returnItemType", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getOperation_SoapAction(), ecorePackage.getEString(), "soapAction", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getOperation_Mep(), ecorePackage.getEString(), "mep", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getOperation_ReturnHeader(), ecorePackage.getEBooleanObject(), "returnHeader", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -2375,7 +2378,7 @@ public void initializePackageContents() {
initEClass(handlerEClass, Handler.class, "Handler", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getHandler_Name(), ecorePackage.getEString(), "name", null, 0, 1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getHandler_Type(), theXMLTypePackage.getQName(), "type", null, 0, 1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getHandler_Type(), theXmlPackage.getQName(), "type", null, 0, 1, Handler.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(flowEClass, Flow.class, "Flow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getFlow_Handlers(), this.getHandler(), null, "handlers", null, 0, -1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -2388,11 +2391,11 @@ public void initializePackageContents() {
initEClass(transportEClass, Transport.class, "Transport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getTransport_Name(), ecorePackage.getEString(), "name", null, 0, 1, Transport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTransport_Pivot(), theXMLTypePackage.getQName(), "pivot", null, 0, 1, Transport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTransport_Pivot(), theXmlPackage.getQName(), "pivot", null, 0, 1, Transport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(serviceEClass, Service.class, "Service", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getService_Name(), ecorePackage.getEString(), "name", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getService_Provider(), theXMLTypePackage.getQName(), "provider", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getService_Provider(), theXmlPackage.getQName(), "provider", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getService_Use(), this.getUse(), "use", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getService_Style(), this.getStyle(), "style", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getService_Namespaces(), ecorePackage.getEString(), "namespaces", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
diff --git a/axis-model/src/main/java/org/apache/axis/model/xml/XmlFactory.java b/axis-model/src/main/java/org/apache/axis/model/xml/XmlFactory.java
new file mode 100644
index 000000000..26276a52a
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/xml/XmlFactory.java
@@ -0,0 +1,26 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.xml;
+
+
+/**
+ *
+ * The Factory for the model.
+ * It provides a create method for each non-abstract class of the model.
+ *
+ * @generated
+ */
+public interface XmlFactory {
+ /**
+ * The singleton instance of the factory.
+ *
+ *
+ * @generated
+ */
+ XmlFactory INSTANCE = org.apache.axis.model.xml.impl.XmlFactoryImpl.eINSTANCE;
+
+} //XmlFactory
diff --git a/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlFactoryImpl.java b/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlFactoryImpl.java
new file mode 100644
index 000000000..a1f5194d0
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlFactoryImpl.java
@@ -0,0 +1,143 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.xml.impl;
+
+import javax.xml.namespace.QName;
+
+import org.apache.axis.model.xml.*;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+/**
+ *
+ * An implementation of the model Factory.
+ *
+ * @generated
+ */
+public class XmlFactoryImpl extends EFactoryImpl implements XmlFactory {
+ /**
+ * The singleton instance of the factory.
+ *
+ *
+ * @generated
+ */
+ public static final XmlFactoryImpl eINSTANCE = init();
+
+ /**
+ * Creates the default factory implementation.
+ *
+ *
+ * @generated
+ */
+ public static XmlFactoryImpl init() {
+ try {
+ XmlFactoryImpl theXmlFactory = (XmlFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http://axis.apache.org/emf/xml");
+ if (theXmlFactory != null) {
+ return theXmlFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new XmlFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ *
+ *
+ * @generated
+ */
+ public XmlFactoryImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch (eDataType.getClassifierID()) {
+ case XmlPackageImpl.QNAME:
+ return createQNameFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch (eDataType.getClassifierID()) {
+ case XmlPackageImpl.QNAME:
+ return convertQNameToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public QName createQNameFromString(EDataType eDataType, String initialValue) {
+ return (QName)super.createFromString(eDataType, initialValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertQNameToString(EDataType eDataType, Object instanceValue) {
+ return super.convertToString(eDataType, instanceValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public XmlPackageImpl getXmlPackage() {
+ return (XmlPackageImpl)getEPackage();
+ }
+
+ /**
+ *
+ *
+ * @deprecated
+ * @generated
+ */
+ public static XmlPackageImpl getPackage() {
+ return XmlPackageImpl.eINSTANCE;
+ }
+
+} //XmlFactoryImpl
diff --git a/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlPackageImpl.java b/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlPackageImpl.java
new file mode 100644
index 000000000..9e7f9c6b8
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlPackageImpl.java
@@ -0,0 +1,254 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.xml.impl;
+
+import javax.xml.namespace.QName;
+
+import org.apache.axis.model.wsdd.impl.WSDDPackageImpl;
+
+import org.apache.axis.model.xml.XmlFactory;
+
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+/**
+ *
+ * The Package for the model.
+ * It contains accessors for the meta objects to represent
+ *
+ *
each class,
+ *
each feature of each class,
+ *
each enum,
+ *
and each data type
+ *
+ *
+ * @see org.apache.axis.model.xml.XmlFactory
+ * @model kind="package"
+ * @generated
+ */
+public class XmlPackageImpl extends EPackageImpl {
+ /**
+ * The package name.
+ *
+ *
+ * @generated
+ */
+ public static final String eNAME = "xml";
+
+ /**
+ * The package namespace URI.
+ *
+ *
+ * @generated
+ */
+ public static final String eNS_URI = "http://axis.apache.org/emf/xml";
+
+ /**
+ * The package namespace name.
+ *
+ *
+ * @generated
+ */
+ public static final String eNS_PREFIX = "xsd";
+
+ /**
+ * The singleton instance of the package.
+ *
+ *
+ * @generated
+ */
+ public static final XmlPackageImpl eINSTANCE = org.apache.axis.model.xml.impl.XmlPackageImpl.init();
+
+ /**
+ * The meta object id for the 'QName' data type.
+ *
+ *
+ * @see javax.xml.namespace.QName
+ * @see org.apache.axis.model.xml.impl.XmlPackageImpl#getQName()
+ * @generated
+ */
+ public static final int QNAME = 0;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EDataType qNameEDataType = null;
+
+ /**
+ * Creates an instance of the model Package, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ *
Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ *
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.apache.axis.model.xml.impl.XmlPackageImpl#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private XmlPackageImpl() {
+ super(eNS_URI, ((EFactory)XmlFactory.INSTANCE));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
+ *
+ *
This method is used to initialize {@link XmlPackageImpl#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ *
+ *
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static XmlPackageImpl init() {
+ if (isInited) return (XmlPackageImpl)EPackage.Registry.INSTANCE.getEPackage(XmlPackageImpl.eNS_URI);
+
+ // Obtain or create and register package
+ XmlPackageImpl theXmlPackage = (XmlPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof XmlPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new XmlPackageImpl());
+
+ isInited = true;
+
+ // Obtain or create and register interdependencies
+ WSDDPackageImpl theWSDDPackage = (WSDDPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WSDDPackageImpl.eNS_URI) instanceof WSDDPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WSDDPackageImpl.eNS_URI) : WSDDPackageImpl.eINSTANCE);
+
+ // Create package meta-data objects
+ theXmlPackage.createPackageContents();
+ theWSDDPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theXmlPackage.initializePackageContents();
+ theWSDDPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theXmlPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(XmlPackageImpl.eNS_URI, theXmlPackage);
+ return theXmlPackage;
+ }
+
+
+ /**
+ * Returns the meta object for data type '{@link javax.xml.namespace.QName QName}'.
+ *
+ *
+ * @return the meta object for data type 'QName'.
+ * @see javax.xml.namespace.QName
+ * @model instanceClass="javax.xml.namespace.QName"
+ * @generated
+ */
+ public EDataType getQName() {
+ return qNameEDataType;
+ }
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ *
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ public XmlFactory getXmlFactory() {
+ return (XmlFactory)getEFactoryInstance();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ *
+ *
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create data types
+ qNameEDataType = createEDataType(QNAME);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ *
+ *
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Initialize data types
+ initEDataType(qNameEDataType, QName.class, "QName", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+ /**
+ *
+ * Defines literals for the meta objects that represent
+ *
+ *
each class,
+ *
each feature of each class,
+ *
each enum,
+ *
and each data type
+ *
+ *
+ * @generated
+ */
+ public interface Literals {
+ /**
+ * The meta object literal for the 'QName' data type.
+ *
+ *
+ * @see javax.xml.namespace.QName
+ * @see org.apache.axis.model.xml.impl.XmlPackageImpl#getQName()
+ * @generated
+ */
+ public static final EDataType QNAME = eINSTANCE.getQName();
+
+ }
+
+} //XmlPackageImpl
From 69b602d9aa0104cb05020036ce74e95c7374e8ea Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Thu, 6 Dec 2012 21:54:43 +0000
Subject: [PATCH 060/197] Reuse the Use and Style classes from the core.
---
.../axis/wsdl/toJava/JavaDeployWriter.java | 4 +-
axis-model/model/axis.genmodel | 14 +-
axis-model/model/soap.ecore | 8 +
axis-model/model/wsdd.ecore | 14 +-
axis-model/pom.xml | 3 +-
.../apache/axis/model/soap/SOAPFactory.java | 26 ++
.../axis/model/soap/impl/SOAPFactoryImpl.java | 146 +++++++++
.../axis/model/soap/impl/SOAPPackageImpl.java | 302 ++++++++++++++++++
.../org/apache/axis/model/wsdd/Service.java | 12 +-
.../org/apache/axis/model/wsdd/Style.java | 221 -------------
.../java/org/apache/axis/model/wsdd/Use.java | 167 ----------
.../model/wsdd/impl/DeployableItemImpl.java | 1 -
.../axis/model/wsdd/impl/ServiceImpl.java | 16 +-
.../axis/model/wsdd/impl/WSDDFactoryImpl.java | 48 ---
.../axis/model/wsdd/impl/WSDDPackageImpl.java | 105 +-----
.../axis/model/xml/impl/XmlPackageImpl.java | 4 +
16 files changed, 515 insertions(+), 576 deletions(-)
create mode 100644 axis-model/model/soap.ecore
create mode 100644 axis-model/src/main/java/org/apache/axis/model/soap/SOAPFactory.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/soap/impl/SOAPFactoryImpl.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/soap/impl/SOAPPackageImpl.java
delete mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java
delete mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
diff --git a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
index 0b94b7982..2de5905bb 100644
--- a/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
+++ b/axis-codegen/src/main/java/org/apache/axis/wsdl/toJava/JavaDeployWriter.java
@@ -340,8 +340,8 @@ protected void writeDeployPort(
org.apache.axis.model.wsdd.Service wsddService = WSDDFactory.INSTANCE.createService();
wsddService.setName(serviceName);
wsddService.setProvider(new QName(WSDDConstants.URI_WSDD_JAVA, "RPC"));
- wsddService.setStyle(org.apache.axis.model.wsdd.Style.get(style.getValue()));
- wsddService.setUse(org.apache.axis.model.wsdd.Use.get(use.getValue()));
+ wsddService.setStyle(style);
+ wsddService.setUse(use);
wsddService.setParameter("wsdlTargetNamespace", service.getQName().getNamespaceURI());
wsddService.setParameter("wsdlServiceElement", service.getQName().getLocalPart());
// MIME attachments don't work with multiref, so turn it off.
diff --git a/axis-model/model/axis.genmodel b/axis-model/model/axis.genmodel
index 267a0fc3d..c35ccfa73 100644
--- a/axis-model/model/axis.genmodel
+++ b/axis-model/model/axis.genmodel
@@ -12,16 +12,6 @@
wsdd.ecore
-
-
-
-
-
-
-
-
-
-
@@ -120,4 +110,8 @@
+
+
+
+
diff --git a/axis-model/model/soap.ecore b/axis-model/model/soap.ecore
new file mode 100644
index 000000000..b045613c7
--- /dev/null
+++ b/axis-model/model/soap.ecore
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/axis-model/model/wsdd.ecore b/axis-model/model/wsdd.ecore
index 316183f51..a9d14baf5 100644
--- a/axis-model/model/wsdd.ecore
+++ b/axis-model/model/wsdd.ecore
@@ -3,16 +3,6 @@
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="wsdd"
nsURI="http://xml.apache.org/axis/wsdd/" nsPrefix="wsdd">
-
-
-
-
-
-
-
-
-
-
@@ -119,8 +109,8 @@
-
-
+
+
diff --git a/axis-model/pom.xml b/axis-model/pom.xml
index fef72f7cf..a5532b1bd 100644
--- a/axis-model/pom.xml
+++ b/axis-model/pom.xml
@@ -29,9 +29,8 @@
EMF Model for WSDD Files
-
${project.groupId}
- axis-jaxrpc
+ axis-rt-core${project.version}
diff --git a/axis-model/src/main/java/org/apache/axis/model/soap/SOAPFactory.java b/axis-model/src/main/java/org/apache/axis/model/soap/SOAPFactory.java
new file mode 100644
index 000000000..cf4d7b093
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/soap/SOAPFactory.java
@@ -0,0 +1,26 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.soap;
+
+
+/**
+ *
+ * The Factory for the model.
+ * It provides a create method for each non-abstract class of the model.
+ *
+ * @generated
+ */
+public interface SOAPFactory {
+ /**
+ * The singleton instance of the factory.
+ *
+ *
+ * @generated
+ */
+ SOAPFactory INSTANCE = org.apache.axis.model.soap.impl.SOAPFactoryImpl.eINSTANCE;
+
+} //SOAPFactory
diff --git a/axis-model/src/main/java/org/apache/axis/model/soap/impl/SOAPFactoryImpl.java b/axis-model/src/main/java/org/apache/axis/model/soap/impl/SOAPFactoryImpl.java
new file mode 100644
index 000000000..1b8d0f15b
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/soap/impl/SOAPFactoryImpl.java
@@ -0,0 +1,146 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.soap.impl;
+
+import org.apache.axis.constants.Style;
+import org.apache.axis.constants.Use;
+
+import org.apache.axis.model.soap.*;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+/**
+ *
+ * An implementation of the model Factory.
+ *
+ * @generated
+ */
+public class SOAPFactoryImpl extends EFactoryImpl implements SOAPFactory {
+ /**
+ * The singleton instance of the factory.
+ *
+ *
+ * @generated
+ */
+ public static final SOAPFactoryImpl eINSTANCE = init();
+
+ /**
+ * Creates the default factory implementation.
+ *
+ *
+ * @generated
+ */
+ public static SOAPFactoryImpl init() {
+ try {
+ SOAPFactoryImpl theSOAPFactory = (SOAPFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http://axis.apache.org/emf/soap");
+ if (theSOAPFactory != null) {
+ return theSOAPFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new SOAPFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ *
+ *
+ * @generated
+ */
+ public SOAPFactoryImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch (eDataType.getClassifierID()) {
+ case SOAPPackageImpl.USE:
+ return createUseFromString(eDataType, initialValue);
+ case SOAPPackageImpl.STYLE:
+ return createStyleFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch (eDataType.getClassifierID()) {
+ case SOAPPackageImpl.USE:
+ return convertUseToString(eDataType, instanceValue);
+ case SOAPPackageImpl.STYLE:
+ return convertStyleToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ public Use createUseFromString(EDataType eDataType, String initialValue) {
+ return Use.getUse(initialValue);
+ }
+
+ public String convertUseToString(EDataType eDataType, Object instanceValue) {
+ return ((Use)instanceValue).getName();
+ }
+
+ public Style createStyleFromString(EDataType eDataType, String initialValue) {
+ return Style.getStyle(initialValue);
+ }
+
+ public String convertStyleToString(EDataType eDataType, Object instanceValue) {
+ return ((Style)instanceValue).getName();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public SOAPPackageImpl getSOAPPackage() {
+ return (SOAPPackageImpl)getEPackage();
+ }
+
+ /**
+ *
+ *
+ * @deprecated
+ * @generated
+ */
+ public static SOAPPackageImpl getPackage() {
+ return SOAPPackageImpl.eINSTANCE;
+ }
+
+} //SOAPFactoryImpl
diff --git a/axis-model/src/main/java/org/apache/axis/model/soap/impl/SOAPPackageImpl.java b/axis-model/src/main/java/org/apache/axis/model/soap/impl/SOAPPackageImpl.java
new file mode 100644
index 000000000..8a513fd24
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/soap/impl/SOAPPackageImpl.java
@@ -0,0 +1,302 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.soap.impl;
+
+import org.apache.axis.constants.Style;
+import org.apache.axis.constants.Use;
+
+import org.apache.axis.model.soap.SOAPFactory;
+
+import org.apache.axis.model.wsdd.impl.WSDDPackageImpl;
+
+import org.apache.axis.model.xml.impl.XmlPackageImpl;
+
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+/**
+ *
+ * The Package for the model.
+ * It contains accessors for the meta objects to represent
+ *
+ *
each class,
+ *
each feature of each class,
+ *
each enum,
+ *
and each data type
+ *
+ *
+ * @see org.apache.axis.model.soap.SOAPFactory
+ * @model kind="package"
+ * @generated
+ */
+public class SOAPPackageImpl extends EPackageImpl {
+ /**
+ * The package name.
+ *
+ *
+ * @generated
+ */
+ public static final String eNAME = "soap";
+
+ /**
+ * The package namespace URI.
+ *
+ *
+ * @generated
+ */
+ public static final String eNS_URI = "http://axis.apache.org/emf/soap";
+
+ /**
+ * The package namespace name.
+ *
+ *
+ * @generated
+ */
+ public static final String eNS_PREFIX = "soap";
+
+ /**
+ * The singleton instance of the package.
+ *
+ *
+ * @generated
+ */
+ public static final SOAPPackageImpl eINSTANCE = org.apache.axis.model.soap.impl.SOAPPackageImpl.init();
+
+ /**
+ * The meta object id for the 'Use' data type.
+ *
+ *
+ * @see org.apache.axis.constants.Use
+ * @see org.apache.axis.model.soap.impl.SOAPPackageImpl#getUse()
+ * @generated
+ */
+ public static final int USE = 0;
+
+ /**
+ * The meta object id for the 'Style' data type.
+ *
+ *
+ * @see org.apache.axis.constants.Style
+ * @see org.apache.axis.model.soap.impl.SOAPPackageImpl#getStyle()
+ * @generated
+ */
+ public static final int STYLE = 1;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EDataType useEDataType = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EDataType styleEDataType = null;
+
+ /**
+ * Creates an instance of the model Package, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ *
Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ *
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.apache.axis.model.soap.impl.SOAPPackageImpl#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private SOAPPackageImpl() {
+ super(eNS_URI, ((EFactory)SOAPFactory.INSTANCE));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
+ *
+ *
This method is used to initialize {@link SOAPPackageImpl#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ *
+ *
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static SOAPPackageImpl init() {
+ if (isInited) return (SOAPPackageImpl)EPackage.Registry.INSTANCE.getEPackage(SOAPPackageImpl.eNS_URI);
+
+ // Obtain or create and register package
+ SOAPPackageImpl theSOAPPackage = (SOAPPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SOAPPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SOAPPackageImpl());
+
+ isInited = true;
+
+ // Obtain or create and register interdependencies
+ WSDDPackageImpl theWSDDPackage = (WSDDPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WSDDPackageImpl.eNS_URI) instanceof WSDDPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WSDDPackageImpl.eNS_URI) : WSDDPackageImpl.eINSTANCE);
+ XmlPackageImpl theXmlPackage = (XmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XmlPackageImpl.eNS_URI) instanceof XmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XmlPackageImpl.eNS_URI) : XmlPackageImpl.eINSTANCE);
+
+ // Create package meta-data objects
+ theSOAPPackage.createPackageContents();
+ theWSDDPackage.createPackageContents();
+ theXmlPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theSOAPPackage.initializePackageContents();
+ theWSDDPackage.initializePackageContents();
+ theXmlPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theSOAPPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(SOAPPackageImpl.eNS_URI, theSOAPPackage);
+ return theSOAPPackage;
+ }
+
+
+ /**
+ * Returns the meta object for data type '{@link org.apache.axis.constants.Use Use}'.
+ *
+ *
+ * @return the meta object for data type 'Use'.
+ * @see org.apache.axis.constants.Use
+ * @model instanceClass="org.apache.axis.constants.Use"
+ * @generated
+ */
+ public EDataType getUse() {
+ return useEDataType;
+ }
+
+ /**
+ * Returns the meta object for data type '{@link org.apache.axis.constants.Style Style}'.
+ *
+ *
+ * @return the meta object for data type 'Style'.
+ * @see org.apache.axis.constants.Style
+ * @model instanceClass="org.apache.axis.constants.Style"
+ * @generated
+ */
+ public EDataType getStyle() {
+ return styleEDataType;
+ }
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ *
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ public SOAPFactory getSOAPFactory() {
+ return (SOAPFactory)getEFactoryInstance();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ *
+ *
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create data types
+ useEDataType = createEDataType(USE);
+ styleEDataType = createEDataType(STYLE);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ *
+ *
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Initialize data types
+ initEDataType(useEDataType, Use.class, "Use", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+ initEDataType(styleEDataType, Style.class, "Style", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+ /**
+ *
+ * Defines literals for the meta objects that represent
+ *
+ *
each class,
+ *
each feature of each class,
+ *
each enum,
+ *
and each data type
+ *
+ *
+ * @generated
+ */
+ public interface Literals {
+ /**
+ * The meta object literal for the 'Use' data type.
+ *
+ *
+ * @see org.apache.axis.constants.Use
+ * @see org.apache.axis.model.soap.impl.SOAPPackageImpl#getUse()
+ * @generated
+ */
+ public static final EDataType USE = eINSTANCE.getUse();
+
+ /**
+ * The meta object literal for the 'Style' data type.
+ *
+ *
+ * @see org.apache.axis.constants.Style
+ * @see org.apache.axis.model.soap.impl.SOAPPackageImpl#getStyle()
+ * @generated
+ */
+ public static final EDataType STYLE = eINSTANCE.getStyle();
+
+ }
+
+} //SOAPPackageImpl
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
index 4fa0c464c..e15265256 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
@@ -8,6 +8,8 @@
import java.util.List;
import javax.xml.namespace.QName;
+import org.apache.axis.constants.Style;
+import org.apache.axis.constants.Use;
/**
*
@@ -85,7 +87,6 @@ public interface Service extends DeployableItem {
/**
* Returns the value of the 'Use' attribute.
- * The literals are from the enumeration {@link org.apache.axis.model.wsdd.Use}.
*
*
* If the meaning of the 'Use' attribute isn't clear,
@@ -93,9 +94,8 @@ public interface Service extends DeployableItem {
*
*
* @return the value of the 'Use' attribute.
- * @see org.apache.axis.model.wsdd.Use
* @see #setUse(Use)
- * @model
+ * @model dataType="org.apache.axis.model.soap.Use"
* @generated
*/
Use getUse();
@@ -105,7 +105,6 @@ public interface Service extends DeployableItem {
*
*
* @param value the new value of the 'Use' attribute.
- * @see org.apache.axis.model.wsdd.Use
* @see #getUse()
* @generated
*/
@@ -113,7 +112,6 @@ public interface Service extends DeployableItem {
/**
* Returns the value of the 'Style' attribute.
- * The literals are from the enumeration {@link org.apache.axis.model.wsdd.Style}.
*
*
* If the meaning of the 'Style' attribute isn't clear,
@@ -121,9 +119,8 @@ public interface Service extends DeployableItem {
*
*
* @return the value of the 'Style' attribute.
- * @see org.apache.axis.model.wsdd.Style
* @see #setStyle(Style)
- * @model
+ * @model dataType="org.apache.axis.model.soap.Style"
* @generated
*/
Style getStyle();
@@ -133,7 +130,6 @@ public interface Service extends DeployableItem {
*
*
* @param value the new value of the 'Style' attribute.
- * @see org.apache.axis.model.wsdd.Style
* @see #getStyle()
* @generated
*/
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java
deleted file mode 100644
index 18e51fa4b..000000000
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Style.java
+++ /dev/null
@@ -1,221 +0,0 @@
-/**
- *
- *
- *
- * $Id$
- */
-package org.apache.axis.model.wsdd;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-/**
- *
- * A representation of the literals of the enumeration 'Style',
- * and utility methods for working with them.
- *
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
- * @model
- * @generated
- */
-public final class Style extends InternalStyle {
- /**
- * The 'RPC' literal value.
- *
- *
- * If the meaning of 'RPC' literal object isn't clear,
- * there really should be more of a description here...
- *
- *
- * @see #RPC_LITERAL
- * @model literal="rpc"
- * @generated
- * @ordered
- */
- public static final int RPC = 0;
-
- /**
- * The 'DOCUMENT' literal value.
- *
- *
- * If the meaning of 'DOCUMENT' literal object isn't clear,
- * there really should be more of a description here...
- *
- *
- * @see #DOCUMENT_LITERAL
- * @model literal="document"
- * @generated
- * @ordered
- */
- public static final int DOCUMENT = 1;
-
- /**
- * The 'WRAPPED' literal value.
- *
- *
- * If the meaning of 'WRAPPED' literal object isn't clear,
- * there really should be more of a description here...
- *
- *
- * @see #WRAPPED_LITERAL
- * @model literal="wrapped"
- * @generated
- * @ordered
- */
- public static final int WRAPPED = 2;
-
- /**
- * The 'MESSAGE' literal value.
- *
- *
- * If the meaning of 'MESSAGE' literal object isn't clear,
- * there really should be more of a description here...
- *
- *
- * @see #MESSAGE_LITERAL
- * @model literal="message"
- * @generated
- * @ordered
- */
- public static final int MESSAGE = 3;
-
- /**
- * The 'RPC' literal object.
- *
- *
- * @see #RPC
- * @generated
- * @ordered
- */
- public static final Style RPC_LITERAL = new Style(RPC, "RPC", "rpc");
-
- /**
- * The 'DOCUMENT' literal object.
- *
- *
- * @see #DOCUMENT
- * @generated
- * @ordered
- */
- public static final Style DOCUMENT_LITERAL = new Style(DOCUMENT, "DOCUMENT", "document");
-
- /**
- * The 'WRAPPED' literal object.
- *
- *
- * @see #WRAPPED
- * @generated
- * @ordered
- */
- public static final Style WRAPPED_LITERAL = new Style(WRAPPED, "WRAPPED", "wrapped");
-
- /**
- * The 'MESSAGE' literal object.
- *
- *
- * @see #MESSAGE
- * @generated
- * @ordered
- */
- public static final Style MESSAGE_LITERAL = new Style(MESSAGE, "MESSAGE", "message");
-
- /**
- * An array of all the 'Style' enumerators.
- *
- *
- * @generated
- */
- private static final Style[] VALUES_ARRAY =
- new Style[] {
- RPC_LITERAL,
- DOCUMENT_LITERAL,
- WRAPPED_LITERAL,
- MESSAGE_LITERAL,
- };
-
- /**
- * A public read-only list of all the 'Style' enumerators.
- *
- *
- * @generated
- */
- public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the 'Style' literal with the specified literal value.
- *
- *
- * @generated
- */
- public static Style get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- Style result = VALUES_ARRAY[i];
- if (result.toString().equals(literal)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'Style' literal with the specified name.
- *
- *
- * @generated
- */
- public static Style getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- Style result = VALUES_ARRAY[i];
- if (result.getName().equals(name)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'Style' literal with the specified integer value.
- *
- *
- * @generated
- */
- public static Style get(int value) {
- switch (value) {
- case RPC: return RPC_LITERAL;
- case DOCUMENT: return DOCUMENT_LITERAL;
- case WRAPPED: return WRAPPED_LITERAL;
- case MESSAGE: return MESSAGE_LITERAL;
- }
- return null;
- }
-
- /**
- * Only this class can construct instances.
- *
- *
- * @generated
- */
- private Style(int value, String name, String literal) {
- super(value, name, literal);
- }
-
-} //Style
-
-/**
- * A private implementation class to construct the instances.
- *
- *
- * @generated
- */
-class InternalStyle extends org.eclipse.emf.common.util.AbstractEnumerator {
- /**
- * Only this class can construct instances.
- *
- *
- * @generated
- */
- protected InternalStyle(int value, String name, String literal) {
- super(value, name, literal);
- }
-}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
deleted file mode 100644
index d1fe709bd..000000000
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Use.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/**
- *
- *
- *
- * $Id$
- */
-package org.apache.axis.model.wsdd;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-/**
- *
- * A representation of the literals of the enumeration 'Use',
- * and utility methods for working with them.
- *
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
- * @model
- * @generated
- */
-public final class Use extends InternalUse {
- /**
- * The 'ENCODED' literal value.
- *
- *
- * If the meaning of 'ENCODED' literal object isn't clear,
- * there really should be more of a description here...
- *
- *
- * @see #ENCODED_LITERAL
- * @model literal="encoded"
- * @generated
- * @ordered
- */
- public static final int ENCODED = 0;
-
- /**
- * The 'LITERAL' literal value.
- *
- *
- * If the meaning of 'LITERAL' literal object isn't clear,
- * there really should be more of a description here...
- *
- *
- * @see #LITERAL_LITERAL
- * @model literal="literal"
- * @generated
- * @ordered
- */
- public static final int LITERAL = 1;
-
- /**
- * The 'ENCODED' literal object.
- *
- *
- * @see #ENCODED
- * @generated
- * @ordered
- */
- public static final Use ENCODED_LITERAL = new Use(ENCODED, "ENCODED", "encoded");
-
- /**
- * The 'LITERAL' literal object.
- *
- *
- * @see #LITERAL
- * @generated
- * @ordered
- */
- public static final Use LITERAL_LITERAL = new Use(LITERAL, "LITERAL", "literal");
-
- /**
- * An array of all the 'Use' enumerators.
- *
- *
- * @generated
- */
- private static final Use[] VALUES_ARRAY =
- new Use[] {
- ENCODED_LITERAL,
- LITERAL_LITERAL,
- };
-
- /**
- * A public read-only list of all the 'Use' enumerators.
- *
- *
- * @generated
- */
- public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the 'Use' literal with the specified literal value.
- *
- *
- * @generated
- */
- public static Use get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- Use result = VALUES_ARRAY[i];
- if (result.toString().equals(literal)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'Use' literal with the specified name.
- *
- *
- * @generated
- */
- public static Use getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- Use result = VALUES_ARRAY[i];
- if (result.getName().equals(name)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'Use' literal with the specified integer value.
- *
- *
- * @generated
- */
- public static Use get(int value) {
- switch (value) {
- case ENCODED: return ENCODED_LITERAL;
- case LITERAL: return LITERAL_LITERAL;
- }
- return null;
- }
-
- /**
- * Only this class can construct instances.
- *
- *
- * @generated
- */
- private Use(int value, String name, String literal) {
- super(value, name, literal);
- }
-
-} //Use
-
-/**
- * A private implementation class to construct the instances.
- *
- *
- * @generated
- */
-class InternalUse extends org.eclipse.emf.common.util.AbstractEnumerator {
- /**
- * Only this class can construct instances.
- *
- *
- * @generated
- */
- protected InternalUse(int value, String name, String literal) {
- super(value, name, literal);
- }
-}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
index 3686490f6..0aa4b27f5 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeployableItemImpl.java
@@ -12,7 +12,6 @@
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.InternalEObject;
/**
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
index 6a9adda68..6218a74a0 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ServiceImpl.java
@@ -10,13 +10,13 @@
import java.util.List;
import javax.xml.namespace.QName;
+import org.apache.axis.constants.Style;
+import org.apache.axis.constants.Use;
import org.apache.axis.model.wsdd.ArrayMapping;
import org.apache.axis.model.wsdd.BeanMapping;
import org.apache.axis.model.wsdd.Operation;
import org.apache.axis.model.wsdd.Service;
-import org.apache.axis.model.wsdd.Style;
import org.apache.axis.model.wsdd.TypeMapping;
-import org.apache.axis.model.wsdd.Use;
import org.eclipse.emf.common.notify.NotificationChain;
@@ -98,7 +98,7 @@ public class ServiceImpl extends DeployableItemImpl implements Service {
* @generated
* @ordered
*/
- protected static final Use USE_EDEFAULT = Use.ENCODED_LITERAL;
+ protected static final Use USE_EDEFAULT = null;
/**
* The cached value of the '{@link #getUse() Use}' attribute.
@@ -118,7 +118,7 @@ public class ServiceImpl extends DeployableItemImpl implements Service {
* @generated
* @ordered
*/
- protected static final Style STYLE_EDEFAULT = Style.RPC_LITERAL;
+ protected static final Style STYLE_EDEFAULT = null;
/**
* The cached value of the '{@link #getStyle() Style}' attribute.
@@ -249,7 +249,7 @@ public Use getUse() {
* @generated
*/
public void setUse(Use newUse) {
- use = newUse == null ? USE_EDEFAULT : newUse;
+ use = newUse;
}
/**
@@ -267,7 +267,7 @@ public Style getStyle() {
* @generated
*/
public void setStyle(Style newStyle) {
- style = newStyle == null ? STYLE_EDEFAULT : newStyle;
+ style = newStyle;
}
/**
@@ -471,9 +471,9 @@ public boolean eIsSet(int featureID) {
case WSDDPackageImpl.SERVICE__PROVIDER:
return PROVIDER_EDEFAULT == null ? provider != null : !PROVIDER_EDEFAULT.equals(provider);
case WSDDPackageImpl.SERVICE__USE:
- return use != USE_EDEFAULT;
+ return USE_EDEFAULT == null ? use != null : !USE_EDEFAULT.equals(use);
case WSDDPackageImpl.SERVICE__STYLE:
- return style != STYLE_EDEFAULT;
+ return STYLE_EDEFAULT == null ? style != null : !STYLE_EDEFAULT.equals(style);
case WSDDPackageImpl.SERVICE__NAMESPACES:
return namespaces != null && !namespaces.isEmpty();
case WSDDPackageImpl.SERVICE__OPERATIONS:
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
index a8e62eec7..78acc4eaf 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDFactoryImpl.java
@@ -94,10 +94,6 @@ public EObject create(EClass eClass) {
*/
public Object createFromString(EDataType eDataType, String initialValue) {
switch (eDataType.getClassifierID()) {
- case WSDDPackageImpl.USE:
- return createUseFromString(eDataType, initialValue);
- case WSDDPackageImpl.STYLE:
- return createStyleFromString(eDataType, initialValue);
case WSDDPackageImpl.PARAMETER_MODE:
return createParameterModeFromString(eDataType, initialValue);
default:
@@ -112,10 +108,6 @@ public Object createFromString(EDataType eDataType, String initialValue) {
*/
public String convertToString(EDataType eDataType, Object instanceValue) {
switch (eDataType.getClassifierID()) {
- case WSDDPackageImpl.USE:
- return convertUseToString(eDataType, instanceValue);
- case WSDDPackageImpl.STYLE:
- return convertStyleToString(eDataType, instanceValue);
case WSDDPackageImpl.PARAMETER_MODE:
return convertParameterModeToString(eDataType, instanceValue);
default:
@@ -263,46 +255,6 @@ public Deployment createDeployment() {
return deployment;
}
- /**
- *
- *
- * @generated
- */
- public Use createUseFromString(EDataType eDataType, String initialValue) {
- Use result = Use.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- *
- *
- * @generated
- */
- public String convertUseToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- *
- *
- * @generated
- */
- public Style createStyleFromString(EDataType eDataType, String initialValue) {
- Style result = Style.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- *
- *
- * @generated
- */
- public String convertStyleToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
/**
*
*
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
index d0a357979..b0d255ece 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
@@ -6,6 +6,7 @@
*/
package org.apache.axis.model.wsdd.impl;
+import org.apache.axis.model.soap.impl.SOAPPackageImpl;
import org.apache.axis.model.wsdd.ArrayMapping;
import org.apache.axis.model.wsdd.BeanMapping;
import org.apache.axis.model.wsdd.DeployableItem;
@@ -21,10 +22,8 @@
import org.apache.axis.model.wsdd.ParameterMode;
import org.apache.axis.model.wsdd.Parameterizable;
import org.apache.axis.model.wsdd.Service;
-import org.apache.axis.model.wsdd.Style;
import org.apache.axis.model.wsdd.Transport;
import org.apache.axis.model.wsdd.TypeMapping;
-import org.apache.axis.model.wsdd.Use;
import org.apache.axis.model.wsdd.WSDDFactory;
import org.apache.axis.model.xml.impl.XmlPackageImpl;
@@ -38,8 +37,6 @@
import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-
/**
*
* An implementation of the model Package.
@@ -1033,26 +1030,6 @@ public class WSDDPackageImpl extends EPackageImpl {
*/
public static final int DEPLOYMENT_FEATURE_COUNT = 5;
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.Use Use}' enum.
- *
- *
- * @see org.apache.axis.model.wsdd.Use
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
- * @generated
- */
- public static final int USE = 16;
-
- /**
- * The meta object id for the '{@link org.apache.axis.model.wsdd.Style Style}' enum.
- *
- *
- * @see org.apache.axis.model.wsdd.Style
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
- * @generated
- */
- public static final int STYLE = 17;
-
/**
* The meta object id for the '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}' enum.
*
@@ -1061,7 +1038,7 @@ public class WSDDPackageImpl extends EPackageImpl {
* @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getParameterMode()
* @generated
*/
- public static final int PARAMETER_MODE = 18;
+ public static final int PARAMETER_MODE = 16;
/**
*
@@ -1175,20 +1152,6 @@ public class WSDDPackageImpl extends EPackageImpl {
*/
private EClass deploymentEClass = null;
- /**
- *
- *
- * @generated
- */
- private EEnum useEEnum = null;
-
- /**
- *
- *
- * @generated
- */
- private EEnum styleEEnum = null;
-
/**
*
*
@@ -1244,14 +1207,17 @@ public static WSDDPackageImpl init() {
// Obtain or create and register interdependencies
XmlPackageImpl theXmlPackage = (XmlPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XmlPackageImpl.eNS_URI) instanceof XmlPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XmlPackageImpl.eNS_URI) : XmlPackageImpl.eINSTANCE);
+ SOAPPackageImpl theSOAPPackage = (SOAPPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SOAPPackageImpl.eNS_URI) instanceof SOAPPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SOAPPackageImpl.eNS_URI) : SOAPPackageImpl.eINSTANCE);
// Create package meta-data objects
theWSDDPackage.createPackageContents();
theXmlPackage.createPackageContents();
+ theSOAPPackage.createPackageContents();
// Initialize created meta-data
theWSDDPackage.initializePackageContents();
theXmlPackage.initializePackageContents();
+ theSOAPPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theWSDDPackage.freeze();
@@ -2130,30 +2096,6 @@ public EReference getDeployment_Services() {
return (EReference)deploymentEClass.getEStructuralFeatures().get(4);
}
- /**
- * Returns the meta object for enum '{@link org.apache.axis.model.wsdd.Use Use}'.
- *
- *
- * @return the meta object for enum 'Use'.
- * @see org.apache.axis.model.wsdd.Use
- * @generated
- */
- public EEnum getUse() {
- return useEEnum;
- }
-
- /**
- * Returns the meta object for enum '{@link org.apache.axis.model.wsdd.Style Style}'.
- *
- *
- * @return the meta object for enum 'Style'.
- * @see org.apache.axis.model.wsdd.Style
- * @generated
- */
- public EEnum getStyle() {
- return styleEEnum;
- }
-
/**
* Returns the meta object for enum '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}'.
*
@@ -2281,8 +2223,6 @@ public void createPackageContents() {
createEReference(deploymentEClass, DEPLOYMENT__SERVICES);
// Create enums
- useEEnum = createEEnum(USE);
- styleEEnum = createEEnum(STYLE);
parameterModeEEnum = createEEnum(PARAMETER_MODE);
}
@@ -2311,6 +2251,7 @@ public void initializePackageContents() {
// Obtain other dependent packages
XmlPackageImpl theXmlPackage = (XmlPackageImpl)EPackage.Registry.INSTANCE.getEPackage(XmlPackageImpl.eNS_URI);
+ SOAPPackageImpl theSOAPPackage = (SOAPPackageImpl)EPackage.Registry.INSTANCE.getEPackage(SOAPPackageImpl.eNS_URI);
// Add supertypes to classes
typeMappingEClass.getESuperTypes().add(this.getMapping());
@@ -2396,8 +2337,8 @@ public void initializePackageContents() {
initEClass(serviceEClass, Service.class, "Service", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getService_Name(), ecorePackage.getEString(), "name", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getService_Provider(), theXmlPackage.getQName(), "provider", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getService_Use(), this.getUse(), "use", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getService_Style(), this.getStyle(), "style", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getService_Use(), theSOAPPackage.getUse(), "use", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getService_Style(), theSOAPPackage.getStyle(), "style", null, 0, 1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getService_Namespaces(), ecorePackage.getEString(), "namespaces", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getService_Operations(), this.getOperation(), null, "operations", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getService_TypeMappings(), this.getTypeMapping(), null, "typeMappings", null, 0, -1, Service.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -2415,16 +2356,6 @@ public void initializePackageContents() {
addEParameter(op, this.getDeployment(), "other", 1, 1);
// Initialize enums and add enum literals
- initEEnum(useEEnum, Use.class, "Use");
- addEEnumLiteral(useEEnum, Use.ENCODED_LITERAL);
- addEEnumLiteral(useEEnum, Use.LITERAL_LITERAL);
-
- initEEnum(styleEEnum, Style.class, "Style");
- addEEnumLiteral(styleEEnum, Style.RPC_LITERAL);
- addEEnumLiteral(styleEEnum, Style.DOCUMENT_LITERAL);
- addEEnumLiteral(styleEEnum, Style.WRAPPED_LITERAL);
- addEEnumLiteral(styleEEnum, Style.MESSAGE_LITERAL);
-
initEEnum(parameterModeEEnum, ParameterMode.class, "ParameterMode");
addEEnumLiteral(parameterModeEEnum, ParameterMode.IN_LITERAL);
addEEnumLiteral(parameterModeEEnum, ParameterMode.OUT_LITERAL);
@@ -3140,26 +3071,6 @@ public interface Literals {
*/
public static final EReference DEPLOYMENT__SERVICES = eINSTANCE.getDeployment_Services();
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.Use Use}' enum.
- *
- *
- * @see org.apache.axis.model.wsdd.Use
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getUse()
- * @generated
- */
- public static final EEnum USE = eINSTANCE.getUse();
-
- /**
- * The meta object literal for the '{@link org.apache.axis.model.wsdd.Style Style}' enum.
- *
- *
- * @see org.apache.axis.model.wsdd.Style
- * @see org.apache.axis.model.wsdd.impl.WSDDPackageImpl#getStyle()
- * @generated
- */
- public static final EEnum STYLE = eINSTANCE.getStyle();
-
/**
* The meta object literal for the '{@link org.apache.axis.model.wsdd.ParameterMode Parameter Mode}' enum.
*
diff --git a/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlPackageImpl.java b/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlPackageImpl.java
index 9e7f9c6b8..e6d436e7f 100644
--- a/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlPackageImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlPackageImpl.java
@@ -8,6 +8,7 @@
import javax.xml.namespace.QName;
+import org.apache.axis.model.soap.impl.SOAPPackageImpl;
import org.apache.axis.model.wsdd.impl.WSDDPackageImpl;
import org.apache.axis.model.xml.XmlFactory;
@@ -131,14 +132,17 @@ public static XmlPackageImpl init() {
// Obtain or create and register interdependencies
WSDDPackageImpl theWSDDPackage = (WSDDPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WSDDPackageImpl.eNS_URI) instanceof WSDDPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WSDDPackageImpl.eNS_URI) : WSDDPackageImpl.eINSTANCE);
+ SOAPPackageImpl theSOAPPackage = (SOAPPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SOAPPackageImpl.eNS_URI) instanceof SOAPPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SOAPPackageImpl.eNS_URI) : SOAPPackageImpl.eINSTANCE);
// Create package meta-data objects
theXmlPackage.createPackageContents();
theWSDDPackage.createPackageContents();
+ theSOAPPackage.createPackageContents();
// Initialize created meta-data
theXmlPackage.initializePackageContents();
theWSDDPackage.initializePackageContents();
+ theSOAPPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theXmlPackage.freeze();
From 0e59c531525f6c8ed7732c021d1abff2de8e998e Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Thu, 6 Dec 2012 22:46:35 +0000
Subject: [PATCH 061/197] Fixed WSDD serialization.
---
axis-model/model/wsdd.ecore | 24 +++++++++--
.../apache/axis/model/util/AxisXMLHelper.java | 41 +++++++++++++++++++
.../axis/model/util/AxisXMLResource.java | 34 +++++++++++++++
.../axis/model/wsdd/DeployableItem.java | 2 +
.../apache/axis/model/wsdd/Deployment.java | 1 +
.../org/apache/axis/model/wsdd/WSDDUtil.java | 1 +
.../axis/model/wsdd/impl/WSDDPackageImpl.java | 24 +++++++++++
.../axis/model/xml/impl/XmlFactoryImpl.java | 15 ++-----
8 files changed, 127 insertions(+), 15 deletions(-)
diff --git a/axis-model/model/wsdd.ecore b/axis-model/model/wsdd.ecore
index a9d14baf5..b45cc822f 100644
--- a/axis-model/model/wsdd.ecore
+++ b/axis-model/model/wsdd.ecore
@@ -97,9 +97,21 @@
+ containment="true">
+
+
+
+
+
+
+ containment="true">
+
+
+
+
+
+
@@ -162,7 +174,13 @@
+ containment="true">
+
+
+
+
+
+
diff --git a/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLHelper.java b/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLHelper.java
index d81be19f7..3b834c1c9 100644
--- a/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLHelper.java
+++ b/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLHelper.java
@@ -18,8 +18,11 @@
*/
package org.apache.axis.model.util;
+import java.util.Map;
+
import javax.xml.namespace.QName;
+import org.apache.axis.model.xml.impl.XmlPackageImpl;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EFactory;
import org.eclipse.emf.ecore.EPackage;
@@ -37,10 +40,48 @@
*/
// TODO: this is actually not entirely correct; Axis may generate QNames that are not strictly valid (such as "ns:>fault") and they should be represented using a specific class
public class AxisXMLHelper extends XMLHelperImpl {
+ private String ignoreNamespaceForUnqualifiedQName;
+
public AxisXMLHelper(XMLResource resource) {
super(resource);
}
+ public void setOptions(Map options) {
+ super.setOptions(options);
+ ignoreNamespaceForUnqualifiedQName = (String)options.get(AxisXMLResource.OPTION_IGNORE_NAMESPACE_FOR_UNQUALIFIED_QNAME);
+ }
+
+ protected Object createFromString(EFactory eFactory, EDataType eDataType, String value) {
+ if (eDataType == XmlPackageImpl.eINSTANCE.getQName()) {
+ String prefix;
+ String localName;
+ int idx = value.indexOf(':');
+ if (idx == -1) {
+ prefix = "";
+ localName = value;
+ } else {
+ prefix = value.substring(0, idx);
+ localName = value.substring(idx+1);
+ }
+ String namespaceURI = getURI(prefix);
+ if (namespaceURI == null) {
+ if (prefix.length() == 0) {
+ namespaceURI = "";
+ } else {
+ throw new IllegalArgumentException("The prefix '" + prefix + "' is not declared for the QName '" + value + "'");
+ }
+ }
+ if (prefix.length() == 0 && namespaceURI.equals(ignoreNamespaceForUnqualifiedQName)) {
+ // TODO: emit warning here
+ // TODO: add unit test for this case
+ namespaceURI = "";
+ }
+ return new QName(namespaceURI, localName, prefix);
+ } else {
+ return super.createFromString(eFactory, eDataType, value);
+ }
+ }
+
protected String updateQNamePrefix(EFactory factory, EDataType dataType, Object value, boolean list) {
if (!list && value instanceof QName) {
QName qname = (QName)value;
diff --git a/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLResource.java b/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLResource.java
index a8fb67420..f5a87116e 100644
--- a/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLResource.java
+++ b/axis-model/src/main/java/org/apache/axis/model/util/AxisXMLResource.java
@@ -27,6 +27,40 @@
* @author Andreas Veithen
*/
public class AxisXMLResource extends XMLResourceImpl {
+ /**
+ * Option to specify a namespace that will be ignored if it is used in an unqualified
+ * xsd:QName literal.
+ *
+ * Axis 1.4 incorrectly assumes that xsd:QName literals that have no prefix don't
+ * belong to any namespace. This is incorrect: values of type xsd:QName are resolved in
+ * the same way as element names. An unqualified literal therefore belongs to the default
+ * namespace in scope where the xsd:QName appears.
+ *
+ *
+ * If the type attribute is assumed to be of type xsd:QName, then the
+ * URLMapper literal actually resolves to
+ * {http://xml.apache.org/axis/wsdd/}URLMapper. However, Axis 1.4 incorrectly assumes
+ * that it has no namespace because it is unprefixed.
+ *
+ * This option allows to preserve compatibility with Axis 1.4 by specifying a namespace that
+ * will be ignored if it is encountered in the resolution of a xsd:QName literal
+ * without prefix.
+ */
+ public static final String OPTION_IGNORE_NAMESPACE_FOR_UNQUALIFIED_QNAME = "IGNORE_NAMESPACE_FOR_UNQUALIFIED_QNAME";
+
protected XMLHelper createXMLHelper() {
return new AxisXMLHelper(this);
}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
index 4b3502f55..b1743edf1 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/DeployableItem.java
@@ -34,6 +34,7 @@ public interface DeployableItem extends Parameterizable {
* @return the value of the 'Request Flow' containment reference.
* @see #setRequestFlow(Flow)
* @model containment="true"
+ * extendedMetaData="kind='element' name='requestFlow' namespace='##targetNamespace'"
* @generated
*/
Flow getRequestFlow();
@@ -59,6 +60,7 @@ public interface DeployableItem extends Parameterizable {
* @return the value of the 'Response Flow' containment reference.
* @see #setResponseFlow(Flow)
* @model containment="true"
+ * extendedMetaData="kind='element' name='responseFlow' namespace='##targetNamespace'"
* @generated
*/
Flow getResponseFlow();
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
index 040f46370..827362b8a 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
@@ -64,6 +64,7 @@ public interface Deployment {
* @return the value of the 'Global Configuration' containment reference.
* @see #setGlobalConfiguration(GlobalConfiguration)
* @model containment="true"
+ * extendedMetaData="kind='element' name='globalConfiguration' namespace='##targetNamespace'"
* @generated
*/
GlobalConfiguration getGlobalConfiguration();
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
index e2012d92c..47e5e6f8f 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
@@ -39,6 +39,7 @@ public static Deployment load(InputSource is) throws IOException {
AxisXMLResource resource = new AxisXMLResource();
Map options = new HashMap();
options.put(XMLResource.OPTION_EXTENDED_META_DATA, ExtendedMetaData.INSTANCE);
+ options.put(AxisXMLResource.OPTION_IGNORE_NAMESPACE_FOR_UNQUALIFIED_QNAME, WSDDPackageImpl.eNS_URI);
resource.load(is, options);
return (Deployment)resource.getContents().get(0);
}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
index b0d255ece..7a0ff58dc 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/WSDDPackageImpl.java
@@ -2409,6 +2409,22 @@ protected void createExtendedMetaDataAnnotations() {
"kind", "element",
"namespace", "##targetNamespace"
});
+ addAnnotation
+ (getDeployableItem_RequestFlow(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "requestFlow",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getDeployableItem_ResponseFlow(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "responseFlow",
+ "namespace", "##targetNamespace"
+ });
addAnnotation
(getService_Namespaces(),
source,
@@ -2456,6 +2472,14 @@ protected void createExtendedMetaDataAnnotations() {
"name", "deployment",
"kind", "element"
});
+ addAnnotation
+ (getDeployment_GlobalConfiguration(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "globalConfiguration",
+ "namespace", "##targetNamespace"
+ });
addAnnotation
(getDeployment_Handlers(),
source,
diff --git a/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlFactoryImpl.java b/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlFactoryImpl.java
index a1f5194d0..cde19fabd 100644
--- a/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlFactoryImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/xml/impl/XmlFactoryImpl.java
@@ -8,6 +8,7 @@
import javax.xml.namespace.QName;
+import org.apache.axis.model.util.AxisXMLResource;
import org.apache.axis.model.xml.*;
import org.eclipse.emf.ecore.EClass;
@@ -103,22 +104,12 @@ public String convertToString(EDataType eDataType, Object instanceValue) {
}
}
- /**
- *
- *
- * @generated
- */
public QName createQNameFromString(EDataType eDataType, String initialValue) {
- return (QName)super.createFromString(eDataType, initialValue);
+ throw new UnsupportedOperationException("Please use " + AxisXMLResource.class.getName() + " to load the model from XML");
}
- /**
- *
- *
- * @generated
- */
public String convertQNameToString(EDataType eDataType, Object instanceValue) {
- return super.convertToString(eDataType, instanceValue);
+ throw new UnsupportedOperationException("Please use " + AxisXMLResource.class.getName() + " to save the model to XML");
}
/**
From 6c0dce25ccdeaeb50710109c28641a79e9d56aad Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Fri, 7 Dec 2012 06:19:00 +0000
Subject: [PATCH 062/197] Use the WSDD file produced by maven-wsdd-plugin.
---
tests/spring-compat-tests/pom.xml | 6 +
.../main/webapp/WEB-INF/server-config.wsdd | 104 ------------------
2 files changed, 6 insertions(+), 104 deletions(-)
delete mode 100644 tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd
diff --git a/tests/spring-compat-tests/pom.xml b/tests/spring-compat-tests/pom.xml
index 76c6e097e..7ea7f3b92 100644
--- a/tests/spring-compat-tests/pom.xml
+++ b/tests/spring-compat-tests/pom.xml
@@ -123,6 +123,12 @@
${test.httpPort}
+
+
+ src/main/webapp
+ ${project.build.directory}/webapp
+
+
diff --git a/tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd b/tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd
deleted file mode 100644
index e1eec5c3b..000000000
--- a/tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd
+++ /dev/null
@@ -1,104 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- http://xml.apache.org/axis/wsdd/
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
From 109d416edaf8a895f53636cec275300923e23718 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Fri, 7 Dec 2012 08:27:24 +0000
Subject: [PATCH 063/197] Fixed a build failure on Windows.
---
.../axis/tools/maven/wsdl2java/JavaServiceIfaceWriterEx.java | 2 +-
.../axis/tools/maven/wsdl2java/JavaServiceImplWriterEx.java | 2 +-
.../org/apache/axis/tools/maven/wsdl2java/JavaStubWriterEx.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaServiceIfaceWriterEx.java b/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaServiceIfaceWriterEx.java
index b2085b988..d19a96c4a 100644
--- a/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaServiceIfaceWriterEx.java
+++ b/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaServiceIfaceWriterEx.java
@@ -35,7 +35,7 @@ protected String getFileName() {
if (clientOutputDirectory == null) {
return super.getFileName();
} else {
- return clientOutputDirectory + File.separator + packageName.replaceAll("\\.", File.separator) + File.separator + className + ".java";
+ return clientOutputDirectory + File.separator + packageName.replace('.', File.separatorChar) + File.separator + className + ".java";
}
}
}
diff --git a/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaServiceImplWriterEx.java b/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaServiceImplWriterEx.java
index a4bf45019..d4eb7ac9c 100644
--- a/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaServiceImplWriterEx.java
+++ b/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaServiceImplWriterEx.java
@@ -35,7 +35,7 @@ protected String getFileName() {
if (clientOutputDirectory == null) {
return super.getFileName();
} else {
- return clientOutputDirectory + File.separator + packageName.replaceAll("\\.", File.separator) + File.separator + className + ".java";
+ return clientOutputDirectory + File.separator + packageName.replace('.', File.separatorChar) + File.separator + className + ".java";
}
}
}
diff --git a/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaStubWriterEx.java b/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaStubWriterEx.java
index d5ca80383..defff71c7 100644
--- a/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaStubWriterEx.java
+++ b/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/JavaStubWriterEx.java
@@ -35,7 +35,7 @@ protected String getFileName() {
if (clientOutputDirectory == null) {
return super.getFileName();
} else {
- return clientOutputDirectory + File.separator + packageName.replaceAll("\\.", File.separator) + File.separator + className + ".java";
+ return clientOutputDirectory + File.separator + packageName.replace('.', File.separatorChar) + File.separator + className + ".java";
}
}
}
From 7e8720aa5ee4a77ab0d7514204ae9daedeceeef6 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Fri, 7 Dec 2012 09:04:34 +0000
Subject: [PATCH 064/197] Fixed a build failure.
---
tests/spring-compat-tests/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/spring-compat-tests/pom.xml b/tests/spring-compat-tests/pom.xml
index 7ea7f3b92..21b3a1a4e 100644
--- a/tests/spring-compat-tests/pom.xml
+++ b/tests/spring-compat-tests/pom.xml
@@ -125,7 +125,7 @@
- src/main/webapp
+ ${basedir}/src/main/webapp${project.build.directory}/webapp
From 0466c15606e9100b3196777609d56083df116d51 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Fri, 7 Dec 2012 16:40:06 +0000
Subject: [PATCH 065/197] Prevent the echo-sample tests from creating a
server-config.wsdd file in the source tree without changing the working
directory.
---
.../tools/maven/wsdd/GenerateWSDDMojo.java | 23 +++++++++++--------
samples/echo-sample/pom.xml | 23 +++++++++++++++++--
2 files changed, 34 insertions(+), 12 deletions(-)
diff --git a/maven/maven-wsdd-plugin/src/main/java/org/apache/axis/tools/maven/wsdd/GenerateWSDDMojo.java b/maven/maven-wsdd-plugin/src/main/java/org/apache/axis/tools/maven/wsdd/GenerateWSDDMojo.java
index f05434d82..f2fba7d46 100644
--- a/maven/maven-wsdd-plugin/src/main/java/org/apache/axis/tools/maven/wsdd/GenerateWSDDMojo.java
+++ b/maven/maven-wsdd-plugin/src/main/java/org/apache/axis/tools/maven/wsdd/GenerateWSDDMojo.java
@@ -71,10 +71,11 @@ public class GenerateWSDDMojo extends AbstractMojo {
private String type;
/**
- *
+ * A set of WSDD files (typically generated by maven-wsdl2java-plugin) to be merged into the
+ * output WSDD. If this parameter is not set, then the plug-in will just generate a default
+ * configuration file.
*
* @parameter
- * @required
*/
private File[] files;
@@ -148,14 +149,16 @@ public void execute() throws MojoExecutionException, MojoFailureException {
}
}
- // Load WSDD files from plug-in configuration
- for (int i=0; i
+
+ ${project.groupId}
+ maven-wsdd-plugin
+ ${project.version}
+
+
+
+ generate-test-sources
+
+ generate-wsdd
+
+
+ server
+
+
+
+
+ maven-surefire-plugindefault-test
-
- ${project.build.directory}/work
+
+ ${project.build.directory}/server-config.wsdd
+
From 9e16c3376ccf88df9dafa30b68e2ca7405355756 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Fri, 7 Dec 2012 17:02:31 +0000
Subject: [PATCH 066/197] Simplified unit tests. Surefire/failsafe correctly
sets the current working directory by default, so that we don't need to check
the basedir system property. Ensure that we use the default everywhere.
---
.../ant/wsdl/CustomGeneratorFactoryTest.java | 2 +-
.../test/wsdl/clash/VerifyFilesTestCase.java | 3 +--
.../test/wsdl/extra/ExtraClassesTestCase.java | 3 +--
.../test/wsdl/filegen/AllOptionTestCase.java | 3 +--
.../test/wsdl/filegen/FileGenTestCase.java | 3 +--
.../java/test/wsdl/groups/GroupsTestCase.java | 3 +--
.../test/wsdl/header/VerifyFilesTestCase.java | 3 +--
.../SalesRankNPrice_ServiceTestCase.java | 3 +--
.../multibinding/VerifyFilesTestCase.java | 3 +--
.../schemaImport/SchemaImportTestCase.java | 3 +--
.../java/test/wsdl/split/SplitTestCase.java | 3 +--
.../test/java/test/utils/TestMessages.java | 3 +--
.../test/java/test/utils/TestSrcContent.java | 3 +--
.../test/java/test/utils/TestXMLUtils.java | 2 +-
.../java/test/functional/TestAutoTypes.java | 4 ++--
.../wsdl/query/FileGenWrappedTestCase.java | 3 +--
.../test/wsdl/types/DynamicProxyTestCase.java | 4 +++-
.../functional/TestAttachmentsSample.java | 10 ++++-----
.../java/test/functional/TestEchoSample.java | 2 +-
.../example1/VerifyFilesTest.java | 2 +-
.../example2/VerifyFilesTest.java | 2 +-
samples/transport-sample/pom.xml | 21 +++++++++++++++++--
.../functional/TestTCPTransportSample.java | 2 +-
.../test/functional/TestTransportSample.java | 2 +-
24 files changed, 49 insertions(+), 43 deletions(-)
diff --git a/axis-ant/src/test/java/org/apache/axis/tools/ant/wsdl/CustomGeneratorFactoryTest.java b/axis-ant/src/test/java/org/apache/axis/tools/ant/wsdl/CustomGeneratorFactoryTest.java
index d76c49616..e73afa950 100644
--- a/axis-ant/src/test/java/org/apache/axis/tools/ant/wsdl/CustomGeneratorFactoryTest.java
+++ b/axis-ant/src/test/java/org/apache/axis/tools/ant/wsdl/CustomGeneratorFactoryTest.java
@@ -26,7 +26,7 @@
public class CustomGeneratorFactoryTest extends TestCase {
public void test() throws Exception {
- File file = new File(System.getProperty("basedir", "."), "target/work/com/example/stockquote_wsdl/StockQuoteServiceLocator.java");
+ File file = new File("target/work/com/example/stockquote_wsdl/StockQuoteServiceLocator.java");
assertTrue(FileUtils.readFileToString(file).contains("My header comment"));
}
}
\ No newline at end of file
diff --git a/axis-ant/src/test/java/test/wsdl/clash/VerifyFilesTestCase.java b/axis-ant/src/test/java/test/wsdl/clash/VerifyFilesTestCase.java
index 29983c463..5b5e8f790 100644
--- a/axis-ant/src/test/java/test/wsdl/clash/VerifyFilesTestCase.java
+++ b/axis-ant/src/test/java/test/wsdl/clash/VerifyFilesTestCase.java
@@ -66,8 +66,7 @@ protected Set mayExist() {
* The directory containing the files that should exist.
*/
protected String rootDir() {
- return System.getProperty("basedir", ".") + File.separator +
- "target" + File.separator + "work" + File.separator +
+ return "target" + File.separator + "work" + File.separator +
"test" + File.separator + "wsdl" + File.separator +
"clash";
} // rootDir
diff --git a/axis-ant/src/test/java/test/wsdl/extra/ExtraClassesTestCase.java b/axis-ant/src/test/java/test/wsdl/extra/ExtraClassesTestCase.java
index 8216feb74..d4afa27a3 100644
--- a/axis-ant/src/test/java/test/wsdl/extra/ExtraClassesTestCase.java
+++ b/axis-ant/src/test/java/test/wsdl/extra/ExtraClassesTestCase.java
@@ -59,8 +59,7 @@ protected Set mayExist() {
* The directory containing the files that should exist.
*/
protected String rootDir() {
- return System.getProperty("basedir", ".") + File.separator +
- "target" + File.separator + "work" + File.separator +
+ return "target" + File.separator + "work" + File.separator +
"test" + File.separator + "wsdl" + File.separator +
"extra";
} // rootDir
diff --git a/axis-ant/src/test/java/test/wsdl/filegen/AllOptionTestCase.java b/axis-ant/src/test/java/test/wsdl/filegen/AllOptionTestCase.java
index 50ba645c0..c58244c42 100644
--- a/axis-ant/src/test/java/test/wsdl/filegen/AllOptionTestCase.java
+++ b/axis-ant/src/test/java/test/wsdl/filegen/AllOptionTestCase.java
@@ -48,8 +48,7 @@ protected Set shouldExist() {
* The directory containing the files that should exist.
*/
protected String rootDir() {
- return System.getProperty("basedir", ".") + File.separator +
- "target" + File.separator + "work" + File.separator +
+ return "target" + File.separator + "work" + File.separator +
"test" + File.separator + "wsdl" + File.separator +
"filegenAll";
} // rootDir
diff --git a/axis-ant/src/test/java/test/wsdl/filegen/FileGenTestCase.java b/axis-ant/src/test/java/test/wsdl/filegen/FileGenTestCase.java
index 6dae4483d..ec18f6fa4 100644
--- a/axis-ant/src/test/java/test/wsdl/filegen/FileGenTestCase.java
+++ b/axis-ant/src/test/java/test/wsdl/filegen/FileGenTestCase.java
@@ -62,8 +62,7 @@ protected Set mayExist() {
* The directory containing the files that should exist.
*/
protected String rootDir() {
- return System.getProperty("basedir", ".") + File.separator +
- "target" + File.separator + "work" + File.separator +
+ return "target" + File.separator + "work" + File.separator +
"test" + File.separator + "wsdl" + File.separator +
"filegen";
}
diff --git a/axis-ant/src/test/java/test/wsdl/groups/GroupsTestCase.java b/axis-ant/src/test/java/test/wsdl/groups/GroupsTestCase.java
index 3bee29918..adfcb75a0 100644
--- a/axis-ant/src/test/java/test/wsdl/groups/GroupsTestCase.java
+++ b/axis-ant/src/test/java/test/wsdl/groups/GroupsTestCase.java
@@ -56,8 +56,7 @@ protected Set shouldNotExist() {
* The directory containing the files that should exist.
*/
protected String rootDir() {
- return System.getProperty("basedir", ".") + File.separator +
- "target" + File.separator + "work" + File.separator +
+ return "target" + File.separator + "work" + File.separator +
"test" + File.separator + "wsdl" + File.separator +
"groups";
}
diff --git a/axis-ant/src/test/java/test/wsdl/header/VerifyFilesTestCase.java b/axis-ant/src/test/java/test/wsdl/header/VerifyFilesTestCase.java
index 4d3edb471..e4a1db31d 100644
--- a/axis-ant/src/test/java/test/wsdl/header/VerifyFilesTestCase.java
+++ b/axis-ant/src/test/java/test/wsdl/header/VerifyFilesTestCase.java
@@ -58,8 +58,7 @@ protected Set shouldExist() {
* The directory containing the files that should exist.
*/
protected String rootDir() {
- return System.getProperty("basedir", ".") + File.separator +
- "target" + File.separator + "work" + File.separator +
+ return "target" + File.separator + "work" + File.separator +
"test" + File.separator + "wsdl" + File.separator +
"header";
} // rootDir
diff --git a/axis-ant/src/test/java/test/wsdl/literal/SalesRankNPrice_ServiceTestCase.java b/axis-ant/src/test/java/test/wsdl/literal/SalesRankNPrice_ServiceTestCase.java
index 33eec8267..64bbdb9e5 100644
--- a/axis-ant/src/test/java/test/wsdl/literal/SalesRankNPrice_ServiceTestCase.java
+++ b/axis-ant/src/test/java/test/wsdl/literal/SalesRankNPrice_ServiceTestCase.java
@@ -54,8 +54,7 @@ public class SalesRankNPrice_ServiceTestCase extends junit.framework.TestCase {
};
public void testFileGen() throws IOException {
- String rootDir = System.getProperty("basedir", ".") + File.separator +
- "target" + File.separator + "work" + File.separator +
+ String rootDir = "target" + File.separator + "work" + File.separator +
"test" + File.separator + "wsdl" + File.separator + "literal";
// open up the output directory and check what files exist.
File outputDir = new File(rootDir);
diff --git a/axis-ant/src/test/java/test/wsdl/multibinding/VerifyFilesTestCase.java b/axis-ant/src/test/java/test/wsdl/multibinding/VerifyFilesTestCase.java
index 9521f6a49..ad40882b3 100644
--- a/axis-ant/src/test/java/test/wsdl/multibinding/VerifyFilesTestCase.java
+++ b/axis-ant/src/test/java/test/wsdl/multibinding/VerifyFilesTestCase.java
@@ -58,8 +58,7 @@ protected Set shouldExist() {
* The directory containing the files that should exist.
*/
protected String rootDir() {
- return System.getProperty("basedir", ".") + File.separator +
- "target" + File.separator + "work" + File.separator +
+ return "target" + File.separator + "work" + File.separator +
"test" + File.separator + "wsdl" + File.separator +
"multibinding";
} // rootDir
diff --git a/axis-ant/src/test/java/test/wsdl/schemaImport/SchemaImportTestCase.java b/axis-ant/src/test/java/test/wsdl/schemaImport/SchemaImportTestCase.java
index 689bc1889..cb82eec65 100644
--- a/axis-ant/src/test/java/test/wsdl/schemaImport/SchemaImportTestCase.java
+++ b/axis-ant/src/test/java/test/wsdl/schemaImport/SchemaImportTestCase.java
@@ -42,8 +42,7 @@ public SchemaImportTestCase(String name) {
}
public void testSchemaImport() {
- String path = System.getProperty("basedir", ".") + File.separator +
- "target" + File.separator + "work" + File.separator +
+ String path = "target" + File.separator + "work" + File.separator +
"test" + File.separator + "wsdl" + File.separator +
"schemaImport" + File.separator + "foo.wsdl";
Document doc = null;
diff --git a/axis-ant/src/test/java/test/wsdl/split/SplitTestCase.java b/axis-ant/src/test/java/test/wsdl/split/SplitTestCase.java
index 784aab8f9..bc6fe1e04 100644
--- a/axis-ant/src/test/java/test/wsdl/split/SplitTestCase.java
+++ b/axis-ant/src/test/java/test/wsdl/split/SplitTestCase.java
@@ -33,8 +33,7 @@
public class SplitTestCase extends TestCase {
public void testValidateWSDL() throws Exception {
WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
- Definition definition = reader.readWSDL(new File(System.getProperty("basedir", ".")
- + "/target/work/test/wsdl/split/SplitTestImpl.wsdl").toURI().toString());
+ Definition definition = reader.readWSDL(new File("target/work/test/wsdl/split/SplitTestImpl.wsdl").getAbsoluteFile().toURI().toString());
Service service = definition.getService(new QName("http://split.wsdl.test", "MyPortTypeService"));
Port port = service.getPort("SplitTest");
// This is the critical part: the binding is defined in the imported WSDL
diff --git a/axis-rt-core/src/test/java/test/utils/TestMessages.java b/axis-rt-core/src/test/java/test/utils/TestMessages.java
index 8ffcd473a..dc32db794 100644
--- a/axis-rt-core/src/test/java/test/utils/TestMessages.java
+++ b/axis-rt-core/src/test/java/test/utils/TestMessages.java
@@ -125,9 +125,8 @@ public void testTestExtendedMessages() {
* matches the excpected number of parameters (in the source code).
*/
public void testForMissingMessages() {
- String baseDir = System.getProperty("basedir");
char sep = File.separatorChar;
- String srcDirStr = baseDir + sep + "src" + sep + "main" + sep + "java";
+ String srcDirStr = "src" + sep + "main" + sep + "java";
File srcDir = new File(srcDirStr);
if (srcDir.exists()) {
diff --git a/axis-rt-core/src/test/java/test/utils/TestSrcContent.java b/axis-rt-core/src/test/java/test/utils/TestSrcContent.java
index a9e731552..89c29b4fd 100644
--- a/axis-rt-core/src/test/java/test/utils/TestSrcContent.java
+++ b/axis-rt-core/src/test/java/test/utils/TestSrcContent.java
@@ -44,8 +44,7 @@ public class TestSrcContent extends TestCase {
* tree (xml-axis/java/src), calling checkFile for each file.
*/
public void testSourceFiles() {
- String baseDir = System.getProperty("basedir");
- File srcDir = new File(baseDir, "src/main/java");
+ File srcDir = new File("src/main/java");
if (srcDir.exists()) {
walkTree(srcDir);
diff --git a/axis-rt-core/src/test/java/test/utils/TestXMLUtils.java b/axis-rt-core/src/test/java/test/utils/TestXMLUtils.java
index fe38606bc..4f0e9bb36 100644
--- a/axis-rt-core/src/test/java/test/utils/TestXMLUtils.java
+++ b/axis-rt-core/src/test/java/test/utils/TestXMLUtils.java
@@ -303,7 +303,7 @@ public void testDOMXXE() throws Exception
String msg = "" +
"" +
+ "" +
"]>" +
"
+
+ ${project.groupId}
+ maven-wsdd-plugin
+ ${project.version}
+
+
+
+ pre-integration-test
+
+ generate-wsdd
+
+
+ server
+
+
+
+
+ maven-failsafe-plugin
@@ -115,9 +133,8 @@
**/Test*.java
-
- ${project.build.directory}/work
+ ${project.build.directory}/server-config.wsdd${test.functional.TCPListenerPort}
diff --git a/samples/transport-sample/src/test/java/test/functional/TestTCPTransportSample.java b/samples/transport-sample/src/test/java/test/functional/TestTCPTransportSample.java
index 8de7b5e2f..da7c322e0 100644
--- a/samples/transport-sample/src/test/java/test/functional/TestTCPTransportSample.java
+++ b/samples/transport-sample/src/test/java/test/functional/TestTCPTransportSample.java
@@ -48,7 +48,7 @@ public TestTCPTransportSample(String name) {
}
public void doTestDeploy () throws Exception {
- String[] args = { "-l" + uri, System.getProperty("basedir", ".") + "/src/main/wsdd/deploy.wsdd" };
+ String[] args = { "-l" + uri, "src/main/wsdd/deploy.wsdd" };
AdminClient.main(args);
}
diff --git a/samples/transport-sample/src/test/java/test/functional/TestTransportSample.java b/samples/transport-sample/src/test/java/test/functional/TestTransportSample.java
index 6ada54094..d45efde1f 100644
--- a/samples/transport-sample/src/test/java/test/functional/TestTransportSample.java
+++ b/samples/transport-sample/src/test/java/test/functional/TestTransportSample.java
@@ -35,7 +35,7 @@ public TestTransportSample(String name) {
}
public void doTestDeploy () throws Exception {
- String[] args = { "-llocal:", System.getProperty("basedir") + "/src/main/wsdd/deploy.wsdd" };
+ String[] args = { "-llocal:", "src/main/wsdd/deploy.wsdd" };
AdminClient.main(args);
}
From 851431baa0235f4e1095ec272ccb8ae631e53268 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Fri, 7 Dec 2012 18:54:39 +0000
Subject: [PATCH 067/197] Added a Maven profile to make it easier to generate
Eclipse project metadata and to work around an issue that occurs when
maven-eclipse-plugin and maven-shade-plugin are used together.
---
pom.xml | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/pom.xml b/pom.xml
index c410f0c84..3029a347a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -227,6 +227,10 @@
maven-shade-plugin2.0
+
+ maven-eclipse-plugin
+ 2.9
+
@@ -306,6 +310,38 @@
+
+
+
+ eclipse
+
+ true
+
+
+ install
+
+
+ maven-eclipse-plugin
+
+
+
+ prepare-package
+
+ eclipse
+
+
+ true
+
+
+
+
+
+
+
+
From e78e99fcdef2da3c2b1e2f8b36148b481b839470 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sat, 8 Dec 2012 15:38:24 +0000
Subject: [PATCH 068/197] Mavenized the JMS sample and added the necessary
stuff to perform an integration test with ActiveMQ.
---
.../apache/axis/testutils/daemon/Daemon.java | 24 +-
.../axis/testutils/daemon/Launcher.java | 56 +++++
distribution/src/main/assembly/bin.xml | 12 +
.../server/AbstractStartProcessMojo.java | 5 +-
...ion.java => AxisServerProcessControl.java} | 14 +-
.../maven/server/DaemonProcessControl.java | 74 ++++++
.../maven/server/DefaultProcessManager.java | 10 +-
.../tools/maven/server/ManagedProcess.java | 10 +-
...essStopAction.java => ProcessControl.java} | 32 ++-
.../tools/maven/server/ProcessManager.java | 2 +-
.../tools/maven/server/StartDaemonMojo.java | 77 +++++++
.../tools/maven/server/StartProcessMojo.java | 10 +-
.../tools/maven/server/StartServerMojo.java | 7 +-
.../wsdl2java/AbstractWsdl2JavaMojo.java | 9 +-
samples/jms-sample/pom.xml | 213 ++++++++++++++++++
.../src/main/java}/samples/jms/JMSTest.java | 1 +
.../java}/samples/jms/dii/JMSURLTest.java | 29 +--
.../samples/jms/stub/JMSURLStubTest.java | 21 +-
.../src/main/wsdd}/client-config.wsdd | 0
.../src/main/wsdd}/server-config.wsdd | 0
.../jms-sample/src/main/wsdl}/GetQuote.wsdl | 0
.../activemq-connection-factory.properties | 3 +
.../test/java/samples/jms/ActiveMQDaemon.java | 28 +--
samples/pom.xml | 1 +
24 files changed, 546 insertions(+), 92 deletions(-)
rename maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AxisServerStopAction.java => axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Daemon.java (54%)
create mode 100644 axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Launcher.java
rename maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/{AxisServerStartAction.java => AxisServerProcessControl.java} (82%)
create mode 100644 maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/DaemonProcessControl.java
rename maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/{ProcessStopAction.java => ProcessControl.java} (62%)
create mode 100644 maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java
create mode 100644 samples/jms-sample/pom.xml
rename {distribution/src/main/files => samples/jms-sample/src/main/java}/samples/jms/JMSTest.java (99%)
rename {distribution/src/main/files => samples/jms-sample/src/main/java}/samples/jms/dii/JMSURLTest.java (84%)
rename {distribution/src/main/files => samples/jms-sample/src/main/java}/samples/jms/stub/JMSURLStubTest.java (87%)
rename {distribution/src/main/files/samples/jms => samples/jms-sample/src/main/wsdd}/client-config.wsdd (100%)
rename {distribution/src/main/files/samples/jms => samples/jms-sample/src/main/wsdd}/server-config.wsdd (100%)
rename {distribution/src/main/files/samples/jms/stub => samples/jms-sample/src/main/wsdl}/GetQuote.wsdl (100%)
create mode 100644 samples/jms-sample/src/test/conf/activemq-connection-factory.properties
rename maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessStartAction.java => samples/jms-sample/src/test/java/samples/jms/ActiveMQDaemon.java (60%)
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AxisServerStopAction.java b/axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Daemon.java
similarity index 54%
rename from maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AxisServerStopAction.java
rename to axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Daemon.java
index 51b08ce7b..4ac087046 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AxisServerStopAction.java
+++ b/axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Daemon.java
@@ -16,25 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.axis.tools.maven.server;
+package org.apache.axis.testutils.daemon;
-import java.io.File;
-
-import org.apache.axis.client.AdminClient;
-import org.codehaus.plexus.logging.Logger;
-
-public class AxisServerStopAction implements ProcessStopAction {
- private final AdminClient adminClient;
- private final File[] undeployments;
-
- public AxisServerStopAction(AdminClient adminClient, File[] undeployments) {
- this.adminClient = adminClient;
- this.undeployments = undeployments;
- }
-
- public int execute(Logger logger) throws Exception {
- AdminClientUtils.process(logger, adminClient, undeployments);
- adminClient.quit();
- return STOPPING;
- }
+public interface Daemon {
+ void start(String[] args) throws Exception;
+ void stop() throws Exception;
}
diff --git a/axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Launcher.java b/axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Launcher.java
new file mode 100644
index 000000000..36bb2c6eb
--- /dev/null
+++ b/axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Launcher.java
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.testutils.daemon;
+
+import java.io.BufferedReader;
+import java.io.InputStreamReader;
+import java.io.OutputStreamWriter;
+import java.io.Writer;
+import java.net.InetAddress;
+import java.net.InetSocketAddress;
+import java.net.ServerSocket;
+import java.net.Socket;
+
+public class Launcher {
+ public static void main(String[] args) throws Exception {
+ String daemonClass = args[0];
+ int controlPort = Integer.parseInt(args[1]);
+ String[] daemonArgs = new String[args.length-2];
+ System.arraycopy(args, 2, daemonArgs, 0, args.length-2);
+ ServerSocket controlServerSocket = new ServerSocket();
+ controlServerSocket.bind(new InetSocketAddress(InetAddress.getByName("localhost"), controlPort));
+ Socket controlSocket = controlServerSocket.accept();
+ BufferedReader controlIn = new BufferedReader(new InputStreamReader(controlSocket.getInputStream(), "ASCII"));
+ Writer controlOut = new OutputStreamWriter(controlSocket.getOutputStream(), "ASCII");
+ Daemon daemon = (Daemon)Class.forName(daemonClass).newInstance();
+ daemon.start(daemonArgs);
+ controlOut.write("READY\r\n");
+ controlOut.flush();
+ String request = controlIn.readLine();
+ if (request == null) {
+ System.err.println("Control connection unexpectedly closed");
+ } else if (request.equals("STOP")) {
+ daemon.stop();
+ controlOut.write("STOPPED\r\n");
+ controlOut.flush();
+ } else {
+ System.err.println("Unexpected request: " + request);
+ }
+ }
+}
diff --git a/distribution/src/main/assembly/bin.xml b/distribution/src/main/assembly/bin.xml
index 175ad2588..49a7f3a18 100644
--- a/distribution/src/main/assembly/bin.xml
+++ b/distribution/src/main/assembly/bin.xml
@@ -112,6 +112,18 @@
../samples/jaxrpc-sample/src/main/wsddsamples/jaxrpc
+
+ ../samples/jms-sample/src/main/java
+ /
+
+
+ ../samples/jms-sample/src/main/wsdl
+ samples/jms/stub
+
+
+ ../samples/jms-sample/src/main/wsdd
+ samples/jms
+ ../samples/message-sample/src/main/java/
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java
index 7dd6f75e8..49bd75d32 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java
@@ -102,7 +102,7 @@ protected boolean isDebug() {
return debug;
}
- protected void startJavaProcess(String description, String mainClass, String[] args, File workDir, ProcessStartAction startAction, ProcessStopAction stopAction) throws MojoExecutionException, MojoFailureException {
+ protected void startJavaProcess(String description, String mainClass, String[] args, File workDir, ProcessControl processControl) throws MojoExecutionException, MojoFailureException {
Log log = getLog();
// Locate java executable to use
@@ -155,8 +155,7 @@ protected void startJavaProcess(String description, String mainClass, String[] a
description,
(String[])cmdline.toArray(new String[cmdline.size()]),
workDir,
- startAction,
- stopAction);
+ processControl);
} catch (Exception ex) {
throw new MojoFailureException("Failed to start server", ex);
}
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AxisServerStartAction.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AxisServerProcessControl.java
similarity index 82%
rename from maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AxisServerStartAction.java
rename to maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AxisServerProcessControl.java
index a937f8158..b4a8b147a 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AxisServerStartAction.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AxisServerProcessControl.java
@@ -28,20 +28,22 @@
import org.apache.axis.client.Call;
import org.codehaus.plexus.logging.Logger;
-public class AxisServerStartAction implements ProcessStartAction {
+public class AxisServerProcessControl implements ProcessControl {
private final int port;
private final AdminClient adminClient;
private final File[] deployments;
+ private final File[] undeployments;
private final int timeout;
- public AxisServerStartAction(int port, AdminClient adminClient, File[] deployments, int timeout) {
+ public AxisServerProcessControl(int port, AdminClient adminClient, File[] deployments, File[] undeployments, int timeout) {
this.port = port;
this.adminClient = adminClient;
this.deployments = deployments;
+ this.undeployments = undeployments;
this.timeout = timeout;
}
- public void execute(Logger logger, Process process) throws Exception {
+ public void initializeProcess(Logger logger, Process process) throws Exception {
// Wait for server to become ready
String versionUrl = "http://localhost:" + port + "/axis/services/Version";
Call call = new Call(new URL(versionUrl));
@@ -70,4 +72,10 @@ public void execute(Logger logger, Process process) throws Exception {
// Deploy services
AdminClientUtils.process(logger, adminClient, deployments);
}
+
+ public int shutdownProcess(Logger logger) throws Exception {
+ AdminClientUtils.process(logger, adminClient, undeployments);
+ adminClient.quit();
+ return STOPPING;
+ }
}
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/DaemonProcessControl.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/DaemonProcessControl.java
new file mode 100644
index 000000000..2e0767239
--- /dev/null
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/DaemonProcessControl.java
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.tools.maven.server;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.OutputStreamWriter;
+import java.io.Writer;
+import java.net.InetAddress;
+import java.net.Socket;
+
+import org.codehaus.plexus.logging.Logger;
+
+public class DaemonProcessControl implements ProcessControl {
+ private final int controlPort;
+ private BufferedReader controlIn;
+ private Writer controlOut;
+
+ public DaemonProcessControl(int controlPort) {
+ this.controlPort = controlPort;
+ }
+
+ public void initializeProcess(Logger logger, Process process) throws Exception {
+ logger.debug("Attempting to establish control connection on port " + controlPort);
+ Socket controlSocket;
+ while (true) {
+ try {
+ controlSocket = new Socket(InetAddress.getByName("localhost"), controlPort);
+ break;
+ } catch (IOException ex) {
+ Thread.sleep(100);
+ }
+ }
+ logger.debug("Control connection established");
+ controlIn = new BufferedReader(new InputStreamReader(controlSocket.getInputStream(), "ASCII"));
+ controlOut = new OutputStreamWriter(controlSocket.getOutputStream(), "ASCII");
+ logger.debug("Waiting for daemon to become ready");
+ expectStatus("READY");
+ logger.debug("Daemon is ready");
+ }
+
+ public int shutdownProcess(Logger logger) throws Exception {
+ controlOut.write("STOP\r\n");
+ controlOut.flush();
+ expectStatus("STOPPED");
+ return STOPPING;
+ }
+
+ private void expectStatus(String expectedStatus) throws IOException {
+ String status = controlIn.readLine();
+ if (status == null) {
+ throw new IllegalStateException("Control connection unexpectedly closed");
+ } else if (!status.equals(expectedStatus)) {
+ throw new IllegalStateException("Unexpected status: " + status);
+ }
+ }
+}
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/DefaultProcessManager.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/DefaultProcessManager.java
index 14046b0ab..7b8bc79b0 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/DefaultProcessManager.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/DefaultProcessManager.java
@@ -36,15 +36,15 @@ public void enableLogging(Logger logger) {
this.logger = logger;
}
- public void startProcess(String description, String[] cmdline, File workDir, ProcessStartAction startAction, ProcessStopAction stopAction) throws Exception {
+ public void startProcess(String description, String[] cmdline, File workDir, ProcessControl processControl) throws Exception {
if (logger.isDebugEnabled()) {
logger.debug("Starting process with command line: " + Arrays.asList(cmdline));
}
Process process = Runtime.getRuntime().exec(cmdline, null, workDir);
- managedProcesses.add(new ManagedProcess(process, description, stopAction));
+ managedProcesses.add(new ManagedProcess(process, description, processControl));
new Thread(new StreamPump(process.getInputStream(), System.out)).start();
new Thread(new StreamPump(process.getErrorStream(), System.err)).start();
- startAction.execute(logger, process);
+ processControl.initializeProcess(logger, process);
}
public void stopAll() throws Exception {
@@ -54,7 +54,7 @@ public void stopAll() throws Exception {
int result;
logger.debug("Executing stop action");
try {
- result = managedProcess.getStopAction().execute(logger);
+ result = managedProcess.getProcessControl().shutdownProcess(logger);
} catch (Exception ex) {
if (savedException == null) {
savedException = ex;
@@ -64,7 +64,7 @@ public void stopAll() throws Exception {
if (logger.isDebugEnabled()) {
logger.debug("result = " + result);
}
- if (result == ProcessStopAction.STOPPING) {
+ if (result == ProcessControl.STOPPING) {
managedProcess.getProcess().waitFor();
} else {
managedProcess.getProcess().destroy();
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ManagedProcess.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ManagedProcess.java
index e8d7d23cb..2237691a4 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ManagedProcess.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ManagedProcess.java
@@ -21,12 +21,12 @@
public class ManagedProcess {
private final Process process;
private final String description;
- private final ProcessStopAction stopAction;
+ private final ProcessControl processControl;
- public ManagedProcess(Process process, String description, ProcessStopAction stopAction) {
+ public ManagedProcess(Process process, String description, ProcessControl processControl) {
this.process = process;
this.description = description;
- this.stopAction = stopAction;
+ this.processControl = processControl;
}
public Process getProcess() {
@@ -37,7 +37,7 @@ public String getDescription() {
return description;
}
- public ProcessStopAction getStopAction() {
- return stopAction;
+ public ProcessControl getProcessControl() {
+ return processControl;
}
}
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessStopAction.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessControl.java
similarity index 62%
rename from maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessStopAction.java
rename to maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessControl.java
index 299c8da75..4eb70bc40 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessStopAction.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessControl.java
@@ -21,18 +21,12 @@
import org.codehaus.plexus.logging.Logger;
/**
- * Action to be executed when a process is stopped. Typically (but not necessarily) this involves
- * sending a request to initiate a clean shutdown of the process.
+ * Defines the actions to be executed after a given process has been started and when a process is
+ * stopped.
*
* @author Andreas Veithen
*/
-public interface ProcessStopAction {
- ProcessStopAction NOP = new ProcessStopAction() {
- public int execute(Logger logger) throws Exception {
- return RUNNING;
- }
- };
-
+public interface ProcessControl {
/**
* Indicates that the process is expected to be still running after the action is completed.
*/
@@ -44,5 +38,23 @@ public int execute(Logger logger) throws Exception {
*/
int STOPPING = 2;
- int execute(Logger logger) throws Exception;
+ /**
+ * Initialize the process. This typically involves waiting for the process to be completely
+ * started and to configure the server process, e.g. to deploy services.
+ *
+ * @param logger
+ * @param process
+ * @throws Exception
+ */
+ void initializeProcess(Logger logger, Process process) throws Exception;
+
+ /**
+ * Prepare the process for shutdown. Typically (but not necessarily) this involves sending a
+ * request to initiate a clean shutdown of the process.
+ *
+ * @param logger
+ * @return
+ * @throws Exception
+ */
+ int shutdownProcess(Logger logger) throws Exception;
}
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessManager.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessManager.java
index cfa7db04e..d0ffadea5 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessManager.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessManager.java
@@ -21,6 +21,6 @@
import java.io.File;
public interface ProcessManager {
- void startProcess(String description, String[] cmdline, File workDir, ProcessStartAction startAction, ProcessStopAction stopAction) throws Exception;
+ void startProcess(String description, String[] cmdline, File workDir, ProcessControl processControl) throws Exception;
void stopAll() throws Exception;
}
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java
new file mode 100644
index 000000000..286b57f03
--- /dev/null
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.tools.maven.server;
+
+import java.io.File;
+import java.io.IOException;
+import java.net.ServerSocket;
+
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+
+/**
+ * Start a daemon.
+ *
+ * @goal start-daemon
+ * @phase pre-integration-test
+ * @requiresDependencyResolution test
+ */
+public class StartDaemonMojo extends AbstractStartProcessMojo {
+ /**
+ * The daemon class.
+ *
+ * @parameter
+ * @required
+ */
+ private String daemonClass;
+
+ /**
+ * The arguments to be passed to the main class.
+ *
+ * @parameter
+ */
+ private String[] args;
+
+ /**
+ * The working directory for the process.
+ *
+ * @parameter default-value="${project.build.directory}/work"
+ * @required
+ */
+ private File workDir;
+
+ protected void doExecute() throws MojoExecutionException, MojoFailureException {
+ int controlPort;
+ try {
+ ServerSocket ss = new ServerSocket(0);
+ controlPort = ss.getLocalPort();
+ ss.close();
+ } catch (IOException ex) {
+ throw new MojoFailureException("Failed to allocate port number", ex);
+ }
+ workDir.mkdirs();
+ String[] vmArgs = new String[args != null ? args.length + 2 : 2];
+ vmArgs[0] = daemonClass;
+ vmArgs[1] = String.valueOf(controlPort);
+ if (args != null) {
+ System.arraycopy(args, 0, vmArgs, 2, args.length);
+ }
+ startJavaProcess(daemonClass, "org.apache.axis.testutils.daemon.Launcher", vmArgs, workDir, new DaemonProcessControl(controlPort));
+ }
+}
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java
index 3777a9e0f..b9e5993e1 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java
@@ -22,6 +22,7 @@
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
+import org.codehaus.plexus.logging.Logger;
/**
* Start an arbitrary Java process.
@@ -56,6 +57,13 @@ public class StartProcessMojo extends AbstractStartProcessMojo {
protected void doExecute() throws MojoExecutionException, MojoFailureException {
workDir.mkdirs();
- startJavaProcess(mainClass, mainClass, args != null ? args : new String[0], workDir, ProcessStartAction.NOP, ProcessStopAction.NOP);
+ startJavaProcess(mainClass, mainClass, args != null ? args : new String[0], workDir, new ProcessControl() {
+ public void initializeProcess(Logger logger, Process process) throws Exception {
+ }
+
+ public int shutdownProcess(Logger logger) throws Exception {
+ return RUNNING;
+ }
+ });
}
}
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartServerMojo.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartServerMojo.java
index f0953d4b0..e986eb0bd 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartServerMojo.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartServerMojo.java
@@ -219,11 +219,10 @@ protected void doExecute() throws MojoExecutionException, MojoFailureException {
"org.apache.axis.server.standalone.StandaloneAxisServer",
(String[])args.toArray(new String[args.size()]),
workDir,
- new AxisServerStartAction(actualPort, adminClient,
+ new AxisServerProcessControl(actualPort, adminClient,
(File[])deployments.toArray(new File[deployments.size()]),
- isDebug() || foreground ? Integer.MAX_VALUE : 20000),
- new AxisServerStopAction(adminClient,
- (File[])undeployments.toArray(new File[undeployments.size()])));
+ (File[])undeployments.toArray(new File[undeployments.size()]),
+ isDebug() || foreground ? Integer.MAX_VALUE : 20000));
} catch (Exception ex) {
throw new MojoFailureException("Failed to start server", ex);
}
diff --git a/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/AbstractWsdl2JavaMojo.java b/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/AbstractWsdl2JavaMojo.java
index cfbebaea2..21f83c89c 100644
--- a/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/AbstractWsdl2JavaMojo.java
+++ b/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/AbstractWsdl2JavaMojo.java
@@ -179,6 +179,13 @@ public abstract class AbstractWsdl2JavaMojo extends AbstractMojo {
*/
private boolean helperGen;
+ /**
+ *
+ *
+ * @parameter default-value="false"
+ */
+ private boolean allowInvalidURL;
+
/**
* The location of the deployment WSDD file to be generated. This parameter is ignored if
* {@link #generate} is set to client. If this parameter is not specified, then no
@@ -269,7 +276,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
// emitter.setQuiet(quiet);
emitter.setTypeMappingVersion(typeMappingVersion);
emitter.setNowrap(noWrapped);
-// emitter.setAllowInvalidURL(allowInvalidURL);
+ emitter.setAllowInvalidURL(allowInvalidURL);
emitter.setWrapArrays(wrapArrays);
// if (namespaceMappingFile != null) {
// emitter.setNStoPkg(namespaceMappingFile.toString());
diff --git a/samples/jms-sample/pom.xml b/samples/jms-sample/pom.xml
new file mode 100644
index 000000000..fb2038bf7
--- /dev/null
+++ b/samples/jms-sample/pom.xml
@@ -0,0 +1,213 @@
+
+
+
+ 4.0.0
+
+ org.apache.axis
+ samples
+ 1.4.1-SNAPSHOT
+ ../pom.xml
+
+ jms-sample
+ JMS Sample
+
+
+ ${project.groupId}
+ axis-rt-core
+ ${project.version}
+
+
+ ${project.groupId}
+ axis-rt-transport-jms
+ ${project.version}
+
+
+ ${project.groupId}
+ stock-sample
+ ${project.version}
+
+
+ junit
+ junit
+
+
+ org.apache.activemq
+ activemq-core
+ 5.6.0
+ test
+
+
+ org.slf4j
+ slf4j-simple
+ 1.6.4
+
+
+ ${project.groupId}
+ axis-testutils
+ ${project.version}
+ test
+
+
+
+
+
+ ${project.groupId}
+ maven-wsdl2java-plugin
+ ${project.version}
+
+
+
+ generate-sources
+
+
+ src/main/wsdl/GetQuote.wsdl
+ client
+ 1.1
+ session
+ true
+
+
+ urn:xmltoday-delayed-quotes
+ samples.jms.stub.xmltoday_delayed_quotes
+
+
+ urn:xmltoday-delayed-quotes
+ samples.jms.stub.xmltoday_delayed_quotes
+
+
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ pre-integration-test
+
+ reserve-network-port
+
+
+
+ test.brokerPort
+
+
+
+
+
+
+ maven-resources-plugin
+
+
+ pre-integration-test
+
+ copy-resources
+
+
+
+
+ src/test/conf
+ true
+
+
+ ${project.build.directory}/conf
+
+
+
+
+
+ ${project.groupId}
+ maven-axis-server-plugin
+ ${project.version}
+
+
+ start-broker
+
+ start-daemon
+
+
+ samples.jms.ActiveMQDaemon
+
+ ${test.brokerPort}
+
+
+
+
+ stop-broker
+
+ stop-all
+
+
+
+
+
+ maven-antrun-plugin
+
+
+ integration-test
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/distribution/src/main/files/samples/jms/JMSTest.java b/samples/jms-sample/src/main/java/samples/jms/JMSTest.java
similarity index 99%
rename from distribution/src/main/files/samples/jms/JMSTest.java
rename to samples/jms-sample/src/main/java/samples/jms/JMSTest.java
index 07389e0c0..45adbc657 100644
--- a/distribution/src/main/files/samples/jms/JMSTest.java
+++ b/samples/jms-sample/src/main/java/samples/jms/JMSTest.java
@@ -120,6 +120,7 @@ public static void main(String args[]) throws Exception {
catch(AxisFault af)
{
System.out.println(af.dumpToString());
+ System.exit(1);
}
}
diff --git a/distribution/src/main/files/samples/jms/dii/JMSURLTest.java b/samples/jms-sample/src/main/java/samples/jms/dii/JMSURLTest.java
similarity index 84%
rename from distribution/src/main/files/samples/jms/dii/JMSURLTest.java
rename to samples/jms-sample/src/main/java/samples/jms/dii/JMSURLTest.java
index 31b12cd1e..409ba464e 100644
--- a/distribution/src/main/files/samples/jms/dii/JMSURLTest.java
+++ b/samples/jms-sample/src/main/java/samples/jms/dii/JMSURLTest.java
@@ -6,7 +6,6 @@
import org.apache.axis.configuration.XMLStringProvider;
import org.apache.axis.deployment.wsdd.WSDDConstants;
import org.apache.axis.encoding.XMLType;
-import org.apache.axis.transport.jms.JMSConstants;
import org.apache.axis.transport.jms.JMSTransport;
import org.apache.axis.transport.jms.SimpleJMSListener;
import org.apache.axis.utils.Options;
@@ -36,24 +35,7 @@ public class JMSURLTest {
"";
// the JMS URL target endpoint address
- static String sampleJmsUrl = "jms:/MyQ?" +
- "vendor=JNDI" +
- "&java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory" +
- "&java.naming.provider.url=file:///c:/JNDIStore" +
- "&ConnectionFactoryJNDIName=MyCF" +
- "&deliveryMode=persistent" +
- "&priority=5" +
- "&ttl=10000" +
- "&debug=true";
- /*
- // example using Sonic
- static String sampleJmsUrl = "jms:/SampleQ1?" +
- "vendor=SonicMQ" +
- "&brokerURL=localhost:2506" +
- "&deliveryMode=persistent" +
- "&priority=5" +
- "&ttl=10000";
- */
+ static String sampleJmsUrl;
public static void main(String args[]) throws Exception {
Options opts = new Options( args );
@@ -69,6 +51,11 @@ public static void main(String args[]) throws Exception {
HashMap cfMap = SimpleJMSListener.createCFMap(opts);
String destination = opts.isValueSet('d');
+ sampleJmsUrl = opts.isValueSet('e');
+ if (sampleJmsUrl == null) {
+ printUsage();
+ }
+
// create the jms listener
SimpleJMSListener listener = new SimpleJMSListener(connectorMap,
cfMap,
@@ -92,6 +79,7 @@ public static void main(String args[]) throws Exception {
catch(AxisFault af)
{
System.out.println(af.dumpToString());
+ System.exit(1);
}
}
@@ -102,7 +90,7 @@ public static void main(String args[]) throws Exception {
// note: this is optional, as all connectors will be closed upon exit
JMSTransport.closeMatchingJMSConnectors(sampleJmsUrl, username, password);
- System.exit(1);
+ System.exit(0);
}
public static Float getQuote(String ticker, String username, String password)
@@ -151,6 +139,7 @@ public static void printUsage()
System.out.println(" -c connection factory properties filename");
System.out.println(" -d destination");
System.out.println(" -t topic [absence of -t indicates queue]");
+ System.out.println(" -e the JMS endpoint URL to use for the client");
System.out.println();
System.out.println(" -u username");
System.out.println(" -w password");
diff --git a/distribution/src/main/files/samples/jms/stub/JMSURLStubTest.java b/samples/jms-sample/src/main/java/samples/jms/stub/JMSURLStubTest.java
similarity index 87%
rename from distribution/src/main/files/samples/jms/stub/JMSURLStubTest.java
rename to samples/jms-sample/src/main/java/samples/jms/stub/JMSURLStubTest.java
index 58814a4ca..be4402dad 100644
--- a/distribution/src/main/files/samples/jms/stub/JMSURLStubTest.java
+++ b/samples/jms-sample/src/main/java/samples/jms/stub/JMSURLStubTest.java
@@ -25,6 +25,8 @@
import junit.framework.AssertionFailedError;
import junit.framework.TestCase;
+import java.net.MalformedURLException;
+import java.net.URL;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
@@ -44,17 +46,23 @@ public JMSURLStubTest(String name) {
super(name);
}
- public static Float getQuote(String ticker) throws AxisFault {
+ public static Float getQuote(String endptAddr, String ticker) throws AxisFault {
float quote = -1.0F;
GetQuoteServiceLocator locator = new GetQuoteServiceLocator();
GetQuote getQuote;
+ if (endptAddr == null) {
+ endptAddr = locator.getGetQuoteAddress();
+ }
+
try {
- getQuote = locator.getGetQuote();
+ getQuote = locator.getGetQuote(new URL(endptAddr));
}
catch (ServiceException e) {
throw new AxisFault("JAX-RPC ServiceException caught: ", e);
+ } catch (MalformedURLException e) {
+ throw new AxisFault("MalformedURLException caught: ", e);
}
assertTrue("getQuote is null", getQuote != null);
@@ -64,7 +72,6 @@ public static Float getQuote(String ticker) throws AxisFault {
// close matching connectors
// note: this is optional, as all connectors will be closed upon exit
- String endptAddr = locator.getGetQuoteAddress();
JMSTransport.closeMatchingJMSConnectors(endptAddr, null, null);
}
catch (RemoteException e) {
@@ -82,6 +89,7 @@ public static void printUsage()
System.out.println(" -c connection factory properties filename");
System.out.println(" -d destination");
System.out.println(" -t topic [absence of -t indicates queue]");
+ System.out.println(" -e the JMS endpoint URL to use for the client");
System.out.println();
System.out.println(" -u username");
System.out.println(" -w password");
@@ -110,6 +118,8 @@ public static void main(String[] args) throws Exception
HashMap cfMap = SimpleJMSListener.createCFMap(opts);
String destination = opts.isValueSet('d');
+ String endptAddr = opts.isValueSet('e');
+
args = opts.getRemainingArgs();
if ( args == null || args.length == 0)
printUsage();
@@ -129,17 +139,18 @@ public static void main(String[] args) throws Exception
{
try
{
- Float quote = stubTest.getQuote(args[i]);
+ Float quote = stubTest.getQuote(endptAddr, args[i]);
System.out.println(args[i] + ": " + quote);
}
catch(AxisFault af)
{
System.out.println(af.dumpToString());
+ System.exit(1);
}
}
listener.shutdown();
- System.exit(1);
+ System.exit(0);
}
}
diff --git a/distribution/src/main/files/samples/jms/client-config.wsdd b/samples/jms-sample/src/main/wsdd/client-config.wsdd
similarity index 100%
rename from distribution/src/main/files/samples/jms/client-config.wsdd
rename to samples/jms-sample/src/main/wsdd/client-config.wsdd
diff --git a/distribution/src/main/files/samples/jms/server-config.wsdd b/samples/jms-sample/src/main/wsdd/server-config.wsdd
similarity index 100%
rename from distribution/src/main/files/samples/jms/server-config.wsdd
rename to samples/jms-sample/src/main/wsdd/server-config.wsdd
diff --git a/distribution/src/main/files/samples/jms/stub/GetQuote.wsdl b/samples/jms-sample/src/main/wsdl/GetQuote.wsdl
similarity index 100%
rename from distribution/src/main/files/samples/jms/stub/GetQuote.wsdl
rename to samples/jms-sample/src/main/wsdl/GetQuote.wsdl
diff --git a/samples/jms-sample/src/test/conf/activemq-connection-factory.properties b/samples/jms-sample/src/test/conf/activemq-connection-factory.properties
new file mode 100644
index 000000000..e00afa0de
--- /dev/null
+++ b/samples/jms-sample/src/test/conf/activemq-connection-factory.properties
@@ -0,0 +1,3 @@
+java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
+java.naming.provider.url=tcp://localhost:${test.brokerPort}
+transport.jms.ConnectionFactoryJNDIName=ConnectionFactory
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessStartAction.java b/samples/jms-sample/src/test/java/samples/jms/ActiveMQDaemon.java
similarity index 60%
rename from maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessStartAction.java
rename to samples/jms-sample/src/test/java/samples/jms/ActiveMQDaemon.java
index 3dddd0790..ea790354e 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/ProcessStartAction.java
+++ b/samples/jms-sample/src/test/java/samples/jms/ActiveMQDaemon.java
@@ -16,21 +16,21 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.axis.tools.maven.server;
+package samples.jms;
-import org.codehaus.plexus.logging.Logger;
+import org.apache.activemq.broker.BrokerFactory;
+import org.apache.activemq.broker.BrokerService;
+import org.apache.axis.testutils.daemon.Daemon;
-/**
- * Action to be executed after a given process has been started. This is typically used to configure
- * the server process, e.g. to deploy services.
- *
- * @author Andreas Veithen
- */
-public interface ProcessStartAction {
- ProcessStartAction NOP = new ProcessStartAction() {
- public void execute(Logger logger, Process process) throws Exception {
- }
- };
+public class ActiveMQDaemon implements Daemon {
+ private BrokerService broker;
- void execute(Logger logger, Process process) throws Exception;
+ public void start(String[] args) throws Exception {
+ broker = BrokerFactory.createBroker("broker:(tcp://localhost:" + args[0] + ")?useJmx=false&persistent=false");
+ broker.start();
+ }
+
+ public void stop() throws Exception {
+ broker.stop();
+ }
}
diff --git a/samples/pom.xml b/samples/pom.xml
index 92da41690..9c7d2908e 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -42,6 +42,7 @@
integrationguide-samplejaxm-samplejaxrpc-sample
+ jms-samplemessage-samplemtomstub-samplemisc-sample
From 27fb034a11d4cdfea6679702da8d1e02722da0a2 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sat, 8 Dec 2012 18:25:02 +0000
Subject: [PATCH 069/197] Fixed some build issues.
---
samples/jms-sample/pom.xml | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/samples/jms-sample/pom.xml b/samples/jms-sample/pom.xml
index fb2038bf7..b63d9e3f0 100644
--- a/samples/jms-sample/pom.xml
+++ b/samples/jms-sample/pom.xml
@@ -50,14 +50,9 @@
org.apache.activemqactivemq-core
- 5.6.0
+ 5.4.3test
-
- org.slf4j
- slf4j-simple
- 1.6.4
- ${project.groupId}axis-testutils
@@ -167,7 +162,7 @@
run
-
+
From a170c458754dddb24b4d53b433c396c63798f332 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sun, 9 Dec 2012 09:45:08 +0000
Subject: [PATCH 070/197] Let maven-axis-server-plugin automatically add
axis-standalone-server to the classpath so that it is no longer required to
declare it as a dependency.
---
axis-rt-transport-http-javanet/pom.xml | 6 -
integration/pom.xml | 6 -
.../server/AbstractStartProcessMojo.java | 133 +++++++++++++++++-
.../tools/maven/server/StartDaemonMojo.java | 2 +-
.../tools/maven/server/StartProcessMojo.java | 2 +-
.../tools/maven/server/StartServerMojo.java | 13 ++
samples/addr-sample/pom.xml | 6 -
samples/attachments-sample/pom.xml | 5 -
samples/bidbuy-sample/pom.xml | 5 -
samples/encoding-sample/pom.xml | 5 -
samples/faults-sample/pom.xml | 5 -
samples/handler-sample/pom.xml | 5 -
samples/jaxrpc-sample/pom.xml | 5 -
samples/message-sample/pom.xml | 5 -
samples/misc-sample/pom.xml | 5 -
samples/proxy-sample/pom.xml | 5 -
samples/stock-sample/pom.xml | 5 -
17 files changed, 142 insertions(+), 76 deletions(-)
diff --git a/axis-rt-transport-http-javanet/pom.xml b/axis-rt-transport-http-javanet/pom.xml
index d23c1c8e0..4a68e9089 100644
--- a/axis-rt-transport-http-javanet/pom.xml
+++ b/axis-rt-transport-http-javanet/pom.xml
@@ -51,12 +51,6 @@
junittest
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
- test
- ${project.groupId}interop-mock
diff --git a/integration/pom.xml b/integration/pom.xml
index d61c89c9a..1875db263 100644
--- a/integration/pom.xml
+++ b/integration/pom.xml
@@ -43,12 +43,6 @@
axis-codegen${project.version}
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
- test
- ${project.groupId}axis-testutils
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java
index 49bd75d32..7f7674871 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java
@@ -21,19 +21,37 @@
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
import java.util.List;
+import java.util.Set;
-import org.apache.maven.artifact.DependencyResolutionRequiredException;
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.factory.ArtifactFactory;
+import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
+import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.artifact.resolver.ArtifactCollector;
+import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
+import org.apache.maven.artifact.resolver.ArtifactResolutionException;
+import org.apache.maven.artifact.resolver.ArtifactResolver;
+import org.apache.maven.artifact.resolver.DebugResolutionListener;
+import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugin.logging.Log;
import org.apache.maven.project.MavenProject;
+import org.apache.maven.project.MavenProjectBuilder;
+import org.apache.maven.project.ProjectBuildingException;
+import org.apache.maven.project.artifact.InvalidDependencyVersionException;
import org.apache.maven.toolchain.Toolchain;
import org.apache.maven.toolchain.ToolchainManager;
+import org.codehaus.plexus.logging.LogEnabled;
+import org.codehaus.plexus.logging.Logger;
import org.codehaus.plexus.util.StringUtils;
-public abstract class AbstractStartProcessMojo extends AbstractServerMojo {
+public abstract class AbstractStartProcessMojo extends AbstractServerMojo implements LogEnabled {
/**
* The maven project.
*
@@ -52,6 +70,49 @@ public abstract class AbstractStartProcessMojo extends AbstractServerMojo {
*/
private MavenSession session;
+ /**
+ * @component
+ */
+ private MavenProjectBuilder projectBuilder;
+
+ /**
+ * Local maven repository.
+ *
+ * @parameter expression="${localRepository}"
+ * @required
+ * @readonly
+ */
+ private ArtifactRepository localRepository;
+
+ /**
+ * Remote repositories.
+ *
+ * @parameter expression="${project.remoteArtifactRepositories}"
+ * @required
+ * @readonly
+ */
+ private List remoteArtifactRepositories;
+
+ /**
+ * @component
+ */
+ protected ArtifactFactory artifactFactory;
+
+ /**
+ * @component
+ */
+ private ArtifactResolver artifactResolver;
+
+ /**
+ * @component
+ */
+ private ArtifactCollector artifactCollector;
+
+ /**
+ * @component
+ */
+ private ArtifactMetadataSource artifactMetadataSource;
+
/**
* @component
*/
@@ -98,11 +159,71 @@ public abstract class AbstractStartProcessMojo extends AbstractServerMojo {
*/
private String argLine;
+ private Logger logger;
+
+ public void enableLogging(Logger logger) {
+ this.logger = logger;
+ }
+
protected boolean isDebug() {
return debug;
}
- protected void startJavaProcess(String description, String mainClass, String[] args, File workDir, ProcessControl processControl) throws MojoExecutionException, MojoFailureException {
+ private List/**/ buildClasspath(Set/**/ additionalArtifacts) throws ProjectBuildingException, InvalidDependencyVersionException, ArtifactResolutionException, ArtifactNotFoundException {
+ final Log log = getLog();
+
+ // We need dependencies in scope test. Since this is the largest scope, we don't need
+ // to do any additional filtering based on dependency scope.
+ Set projectDependencies = project.getArtifacts();
+
+ final Set artifacts = new HashSet(projectDependencies);
+
+ if (additionalArtifacts != null) {
+ for (Iterator it = additionalArtifacts.iterator(); it.hasNext(); ) {
+ Artifact a = (Artifact)it.next();
+ if (log.isDebugEnabled()) {
+ log.debug("Resolving artifact to be added to classpath: " + a);
+ }
+ ArtifactFilter filter = new ArtifactFilter() {
+ public boolean include(Artifact artifact) {
+ String id = artifact.getDependencyConflictId();
+ for (Iterator it = artifacts.iterator(); it.hasNext(); ) {
+ if (id.equals(((Artifact)it.next()).getDependencyConflictId())) {
+ return false;
+ }
+ }
+ return true;
+ }
+ };
+ MavenProject p = projectBuilder.buildFromRepository(a, remoteArtifactRepositories, localRepository);
+ if (filter.include(p.getArtifact())) {
+ Set s = p.createArtifacts(artifactFactory, Artifact.SCOPE_RUNTIME, filter);
+ artifacts.addAll(artifactCollector.collect(s,
+ p.getArtifact(), p.getManagedVersionMap(),
+ localRepository, remoteArtifactRepositories, artifactMetadataSource, filter,
+ Collections.singletonList(new DebugResolutionListener(logger))).getArtifacts());
+ artifacts.add(p.getArtifact());
+ }
+ }
+ }
+
+ List/**/ cp = new ArrayList();
+ cp.add(project.getBuild().getTestOutputDirectory());
+ cp.add(project.getBuild().getOutputDirectory());
+ for (Iterator it = artifacts.iterator(); it.hasNext(); ) {
+ Artifact a = (Artifact)it.next();
+ if (a.getArtifactHandler().isAddedToClasspath()) {
+ if (a.getFile() == null) {
+ artifactResolver.resolve(a, remoteArtifactRepositories, localRepository);
+ }
+ cp.add(a.getFile());
+ }
+ }
+
+ return cp;
+ }
+
+ protected final void startJavaProcess(String description, String mainClass, Set additionalDependencies, String[] args, File workDir, ProcessControl processControl) throws MojoExecutionException, MojoFailureException {
Log log = getLog();
// Locate java executable to use
@@ -120,9 +241,9 @@ protected void startJavaProcess(String description, String mainClass, String[] a
// Get class path
List classpath;
try {
- classpath = project.getTestClasspathElements();
- } catch (DependencyResolutionRequiredException ex) {
- throw new MojoExecutionException("Unexpected exception", ex);
+ classpath = buildClasspath(additionalDependencies);
+ } catch (Exception ex) {
+ throw new MojoExecutionException("Failed to build classpath", ex);
}
if (log.isDebugEnabled()) {
log.debug("Class path elements: " + classpath);
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java
index 286b57f03..3b95b18f0 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java
@@ -72,6 +72,6 @@ protected void doExecute() throws MojoExecutionException, MojoFailureException {
if (args != null) {
System.arraycopy(args, 0, vmArgs, 2, args.length);
}
- startJavaProcess(daemonClass, "org.apache.axis.testutils.daemon.Launcher", vmArgs, workDir, new DaemonProcessControl(controlPort));
+ startJavaProcess(daemonClass, "org.apache.axis.testutils.daemon.Launcher", null, vmArgs, workDir, new DaemonProcessControl(controlPort));
}
}
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java
index b9e5993e1..33935f8b4 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java
@@ -57,7 +57,7 @@ public class StartProcessMojo extends AbstractStartProcessMojo {
protected void doExecute() throws MojoExecutionException, MojoFailureException {
workDir.mkdirs();
- startJavaProcess(mainClass, mainClass, args != null ? args : new String[0], workDir, new ProcessControl() {
+ startJavaProcess(mainClass, mainClass, null, args != null ? args : new String[0], workDir, new ProcessControl() {
public void initializeProcess(Logger logger, Process process) throws Exception {
}
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartServerMojo.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartServerMojo.java
index e986eb0bd..9edf7a6eb 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartServerMojo.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartServerMojo.java
@@ -22,7 +22,9 @@
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
+import java.util.HashSet;
import java.util.List;
+import java.util.Set;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
@@ -30,6 +32,7 @@
import org.apache.axis.client.AdminClient;
import org.apache.axis.deployment.wsdd.WSDDConstants;
+import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugin.logging.Log;
@@ -47,6 +50,13 @@
* @requiresDependencyResolution test
*/
public class StartServerMojo extends AbstractStartProcessMojo {
+ /**
+ * @parameter default-value="${plugin.version}"
+ * @required
+ * @readonly
+ */
+ private String axisVersion;
+
/**
* @parameter default-value="${project.build.directory}/axis-server"
* @required
@@ -214,9 +224,12 @@ protected void doExecute() throws MojoExecutionException, MojoFailureException {
try {
AdminClient adminClient = new AdminClient(true);
adminClient.setTargetEndpointAddress(new URL("http://localhost:" + actualPort + "/axis/services/AdminService"));
+ Set additionalDependencies = new HashSet();
+ additionalDependencies.add(artifactFactory.createArtifact("org.apache.axis", "axis-standalone-server", axisVersion, Artifact.SCOPE_TEST, "jar"));
startJavaProcess(
"Server on port " + actualPort,
"org.apache.axis.server.standalone.StandaloneAxisServer",
+ additionalDependencies,
(String[])args.toArray(new String[args.size()]),
workDir,
new AxisServerProcessControl(actualPort, adminClient,
diff --git a/samples/addr-sample/pom.xml b/samples/addr-sample/pom.xml
index 4c859bfa6..6194ef949 100644
--- a/samples/addr-sample/pom.xml
+++ b/samples/addr-sample/pom.xml
@@ -38,12 +38,6 @@
junittest
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
- test
-
diff --git a/samples/attachments-sample/pom.xml b/samples/attachments-sample/pom.xml
index d4c434337..7cb2b3da6 100644
--- a/samples/attachments-sample/pom.xml
+++ b/samples/attachments-sample/pom.xml
@@ -38,11 +38,6 @@
junittest
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
-
diff --git a/samples/bidbuy-sample/pom.xml b/samples/bidbuy-sample/pom.xml
index 878bb3815..835d27fd4 100644
--- a/samples/bidbuy-sample/pom.xml
+++ b/samples/bidbuy-sample/pom.xml
@@ -38,11 +38,6 @@
junittest
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
-
diff --git a/samples/encoding-sample/pom.xml b/samples/encoding-sample/pom.xml
index d9edb8b7b..7821b8722 100644
--- a/samples/encoding-sample/pom.xml
+++ b/samples/encoding-sample/pom.xml
@@ -38,11 +38,6 @@
junittest
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
-
diff --git a/samples/faults-sample/pom.xml b/samples/faults-sample/pom.xml
index 2e07be096..ceaceca9e 100644
--- a/samples/faults-sample/pom.xml
+++ b/samples/faults-sample/pom.xml
@@ -38,11 +38,6 @@
junittest
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
-
diff --git a/samples/handler-sample/pom.xml b/samples/handler-sample/pom.xml
index 8e2f55979..ab4e7e5f7 100644
--- a/samples/handler-sample/pom.xml
+++ b/samples/handler-sample/pom.xml
@@ -38,11 +38,6 @@
junittest
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
-
diff --git a/samples/jaxrpc-sample/pom.xml b/samples/jaxrpc-sample/pom.xml
index c73141415..c4d2bd0bd 100644
--- a/samples/jaxrpc-sample/pom.xml
+++ b/samples/jaxrpc-sample/pom.xml
@@ -38,11 +38,6 @@
junittest
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
- ${project.groupId}stock-sample
diff --git a/samples/message-sample/pom.xml b/samples/message-sample/pom.xml
index d14d8d562..9721884d5 100644
--- a/samples/message-sample/pom.xml
+++ b/samples/message-sample/pom.xml
@@ -38,11 +38,6 @@
junittest
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
-
diff --git a/samples/misc-sample/pom.xml b/samples/misc-sample/pom.xml
index 5e16a465e..7dd9b8477 100644
--- a/samples/misc-sample/pom.xml
+++ b/samples/misc-sample/pom.xml
@@ -38,11 +38,6 @@
junittest
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
-
diff --git a/samples/proxy-sample/pom.xml b/samples/proxy-sample/pom.xml
index b54470db9..964fd727f 100644
--- a/samples/proxy-sample/pom.xml
+++ b/samples/proxy-sample/pom.xml
@@ -49,11 +49,6 @@
${project.version}test
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
-
diff --git a/samples/stock-sample/pom.xml b/samples/stock-sample/pom.xml
index f6d1c8295..e924835a4 100644
--- a/samples/stock-sample/pom.xml
+++ b/samples/stock-sample/pom.xml
@@ -43,11 +43,6 @@
junittest
-
- ${project.groupId}
- axis-standalone-server
- ${project.version}
-
From 86a2ef39dfe3a5ebe73d6ce991243ed66e0a234a Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sun, 9 Dec 2012 12:08:15 +0000
Subject: [PATCH 071/197] * Use the Daemon interface defined by commons-daemon
instead of our own Daemon interface. * Improved the management of the child
process lifecycle.
---
.../axis/testutils/daemon/Launcher.java | 56 ----------
daemon-launcher/pom.xml | 50 +++++++++
.../tools/daemon/ControlConnectionReader.java | 76 +++++++++++++
.../axis/tools/daemon/DaemonContextImpl.java | 38 +++++++
.../apache/axis/tools/daemon/Launcher.java | 101 ++++++++++++++++++
.../axis/tools/daemon/LauncherException.java | 11 +-
maven/maven-axis-server-plugin/pom.xml | 17 +++
.../tools/maven/server/StartDaemonMojo.java | 14 ++-
pom.xml | 6 ++
samples/jms-sample/pom.xml | 5 +-
.../test/java/samples/jms/ActiveMQDaemon.java | 15 ++-
11 files changed, 322 insertions(+), 67 deletions(-)
delete mode 100644 axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Launcher.java
create mode 100644 daemon-launcher/pom.xml
create mode 100644 daemon-launcher/src/main/java/org/apache/axis/tools/daemon/ControlConnectionReader.java
create mode 100644 daemon-launcher/src/main/java/org/apache/axis/tools/daemon/DaemonContextImpl.java
create mode 100644 daemon-launcher/src/main/java/org/apache/axis/tools/daemon/Launcher.java
rename axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Daemon.java => daemon-launcher/src/main/java/org/apache/axis/tools/daemon/LauncherException.java (77%)
diff --git a/axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Launcher.java b/axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Launcher.java
deleted file mode 100644
index 36bb2c6eb..000000000
--- a/axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Launcher.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.axis.testutils.daemon;
-
-import java.io.BufferedReader;
-import java.io.InputStreamReader;
-import java.io.OutputStreamWriter;
-import java.io.Writer;
-import java.net.InetAddress;
-import java.net.InetSocketAddress;
-import java.net.ServerSocket;
-import java.net.Socket;
-
-public class Launcher {
- public static void main(String[] args) throws Exception {
- String daemonClass = args[0];
- int controlPort = Integer.parseInt(args[1]);
- String[] daemonArgs = new String[args.length-2];
- System.arraycopy(args, 2, daemonArgs, 0, args.length-2);
- ServerSocket controlServerSocket = new ServerSocket();
- controlServerSocket.bind(new InetSocketAddress(InetAddress.getByName("localhost"), controlPort));
- Socket controlSocket = controlServerSocket.accept();
- BufferedReader controlIn = new BufferedReader(new InputStreamReader(controlSocket.getInputStream(), "ASCII"));
- Writer controlOut = new OutputStreamWriter(controlSocket.getOutputStream(), "ASCII");
- Daemon daemon = (Daemon)Class.forName(daemonClass).newInstance();
- daemon.start(daemonArgs);
- controlOut.write("READY\r\n");
- controlOut.flush();
- String request = controlIn.readLine();
- if (request == null) {
- System.err.println("Control connection unexpectedly closed");
- } else if (request.equals("STOP")) {
- daemon.stop();
- controlOut.write("STOPPED\r\n");
- controlOut.flush();
- } else {
- System.err.println("Unexpected request: " + request);
- }
- }
-}
diff --git a/daemon-launcher/pom.xml b/daemon-launcher/pom.xml
new file mode 100644
index 000000000..20b600295
--- /dev/null
+++ b/daemon-launcher/pom.xml
@@ -0,0 +1,50 @@
+
+
+
+ 4.0.0
+
+ org.apache.axis
+ axis-project
+ 1.4.1-SNAPSHOT
+ ../pom.xml
+
+ daemon-launcher
+ Daemon Launcher
+
+ Used by maven-axis-server-plugin to launch a Commons Daemon implementation.
+
+
+
+ commons-daemon
+ commons-daemon
+
+
+
+
+
+ maven-site-plugin
+
+ true
+ true
+
+
+
+
+
diff --git a/daemon-launcher/src/main/java/org/apache/axis/tools/daemon/ControlConnectionReader.java b/daemon-launcher/src/main/java/org/apache/axis/tools/daemon/ControlConnectionReader.java
new file mode 100644
index 000000000..da8f3417a
--- /dev/null
+++ b/daemon-launcher/src/main/java/org/apache/axis/tools/daemon/ControlConnectionReader.java
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.tools.daemon;
+
+import java.io.BufferedReader;
+import java.io.Reader;
+import java.util.LinkedList;
+
+import org.apache.commons.daemon.Daemon;
+
+/**
+ * Reads messages from the control connection. The main purpose of this is to detect as soon as
+ * possible when the control connection is closed by the parent process and to terminate the child
+ * process if that is unexpected. To achieve this we need to read the messages eagerly and place
+ * them into a queue. In particular this covers the case where the child process has received a
+ * STOP message and {@link Daemon#stop()} or {@link Daemon#destroy()} hangs. In this case,
+ * if the parent process is terminated (or stops waiting for the STOPPED message and closes
+ * the control connection), we can stop the child process immediately.
+ *
+ * @author Andreas Veithen
+ */
+final class ControlConnectionReader implements Runnable {
+ private final BufferedReader in;
+ private final LinkedList queue = new LinkedList();
+ private boolean expectClose;
+
+ ControlConnectionReader(Reader in) {
+ this.in = new BufferedReader(in);
+ }
+
+ synchronized String awaitMessage() throws InterruptedException {
+ while (queue.isEmpty()) {
+ wait();
+ }
+ return (String)queue.removeFirst();
+ }
+
+ synchronized void expectClose() {
+ this.expectClose = true;
+ }
+
+ public void run() {
+ try {
+ String message;
+ while ((message = in.readLine()) != null) {
+ synchronized (this) {
+ queue.add(message);
+ notify();
+ }
+ }
+ if (!expectClose) {
+ System.err.println("Control connection unexpectedly closed; terminating.");
+ System.exit(1);
+ }
+ } catch (Throwable ex) {
+ ex.printStackTrace();
+ System.exit(1);
+ }
+ }
+}
diff --git a/daemon-launcher/src/main/java/org/apache/axis/tools/daemon/DaemonContextImpl.java b/daemon-launcher/src/main/java/org/apache/axis/tools/daemon/DaemonContextImpl.java
new file mode 100644
index 000000000..414690a7e
--- /dev/null
+++ b/daemon-launcher/src/main/java/org/apache/axis/tools/daemon/DaemonContextImpl.java
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.tools.daemon;
+
+import org.apache.commons.daemon.DaemonContext;
+import org.apache.commons.daemon.DaemonController;
+
+final class DaemonContextImpl implements DaemonContext {
+ private final String[] args;
+
+ public DaemonContextImpl(String[] args) {
+ this.args = args;
+ }
+
+ public DaemonController getController() {
+ throw new UnsupportedOperationException();
+ }
+
+ public String[] getArguments() {
+ return args;
+ }
+}
diff --git a/daemon-launcher/src/main/java/org/apache/axis/tools/daemon/Launcher.java b/daemon-launcher/src/main/java/org/apache/axis/tools/daemon/Launcher.java
new file mode 100644
index 000000000..35c15f5b0
--- /dev/null
+++ b/daemon-launcher/src/main/java/org/apache/axis/tools/daemon/Launcher.java
@@ -0,0 +1,101 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.tools.daemon;
+
+import java.io.InputStreamReader;
+import java.io.OutputStreamWriter;
+import java.io.Writer;
+import java.net.InetAddress;
+import java.net.InetSocketAddress;
+import java.net.ServerSocket;
+import java.net.Socket;
+
+import org.apache.commons.daemon.Daemon;
+import org.apache.commons.daemon.DaemonContext;
+
+/**
+ * Main class to launch and control a {@link Daemon} implementation. This class is typically
+ * executed in a child JVM and allows the parent process to control the lifecycle of the daemon
+ * instance. The main method takes the following arguments:
+ *
+ *
The class name of the {@link Daemon} implementation.
+ *
A TCP port number to use for the control connection.
+ *
+ * All remaining arguments are passed to the {@link Daemon} implementation.
+ *
+ * The class uses the following protocol to allow the parent process to control the lifecycle of the
+ * daemon:
+ *
+ *
The parent process spawns a new child JVM with this class as main class. It passes the class
+ * name of the {@link Daemon} implementation and the control port as arguments (see above).
+ *
The child process opens the specified TCP port and waits for the control connection to be
+ * established.
+ *
The parent process connects to the control port.
+ *
The child process {@link Daemon#init(DaemonContext) initializes} and {@link Daemon#start()
+ * starts} the daemon.
+ *
The child process sends a READY message over the control connection to the parent
+ * process.
+ *
When the parent process no longer needs the daemon, it sends a STOP message to the
+ * child process.
+ *
The child process {@link Daemon#stop() stops} and {@link Daemon#destroy() destroys} the
+ * daemon.
+ *
The child process sends a STOPPED message to the parent process, closes the control
+ * connection and terminates itself.
+ *
The parent process closes the control connection.
+ *
+ *
+ * @author Andreas Veithen
+ */
+public class Launcher {
+ public static void main(String[] args) {
+ try {
+ String daemonClass = args[0];
+ int controlPort = Integer.parseInt(args[1]);
+ String[] daemonArgs = new String[args.length-2];
+ System.arraycopy(args, 2, daemonArgs, 0, args.length-2);
+ ServerSocket controlServerSocket = new ServerSocket();
+ controlServerSocket.bind(new InetSocketAddress(InetAddress.getByName("localhost"), controlPort));
+ Socket controlSocket = controlServerSocket.accept();
+ // We only accept a single connection; therefore we can close the ServerSocket here
+ controlServerSocket.close();
+ ControlConnectionReader controlIn = new ControlConnectionReader(new InputStreamReader(controlSocket.getInputStream(), "ASCII"));
+ new Thread(controlIn).start();
+ Writer controlOut = new OutputStreamWriter(controlSocket.getOutputStream(), "ASCII");
+ Daemon daemon = (Daemon)Class.forName(daemonClass).newInstance();
+ daemon.init(new DaemonContextImpl(daemonArgs));
+ daemon.start();
+ controlOut.write("READY\r\n");
+ controlOut.flush();
+ String request = controlIn.awaitMessage();
+ if (request.equals("STOP")) {
+ daemon.stop();
+ daemon.destroy();
+ controlIn.expectClose();
+ controlOut.write("STOPPED\r\n");
+ controlOut.flush();
+ System.exit(0);
+ } else {
+ throw new LauncherException("Unexpected request: " + request);
+ }
+ } catch (Throwable ex) {
+ ex.printStackTrace();
+ System.exit(1);
+ }
+ }
+}
diff --git a/axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Daemon.java b/daemon-launcher/src/main/java/org/apache/axis/tools/daemon/LauncherException.java
similarity index 77%
rename from axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Daemon.java
rename to daemon-launcher/src/main/java/org/apache/axis/tools/daemon/LauncherException.java
index 4ac087046..5d177c273 100644
--- a/axis-testutils/src/main/java/org/apache/axis/testutils/daemon/Daemon.java
+++ b/daemon-launcher/src/main/java/org/apache/axis/tools/daemon/LauncherException.java
@@ -16,9 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.axis.testutils.daemon;
+package org.apache.axis.tools.daemon;
-public interface Daemon {
- void start(String[] args) throws Exception;
- void stop() throws Exception;
+final class LauncherException extends Exception {
+ private static final long serialVersionUID = 9049901854635661634L;
+
+ public LauncherException(String msg) {
+ super(msg);
+ }
}
diff --git a/maven/maven-axis-server-plugin/pom.xml b/maven/maven-axis-server-plugin/pom.xml
index 95b149834..099c4eacb 100644
--- a/maven/maven-axis-server-plugin/pom.xml
+++ b/maven/maven-axis-server-plugin/pom.xml
@@ -60,6 +60,23 @@
maven-toolchain1.0
+
+
+
+ ${project.groupId}
+ daemon-launcher
+ ${project.version}
+ pom
+
+
+ ${project.groupId}
+ axis-standalone-server
+ ${project.version}
+ pom
+
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java
index 3b95b18f0..fedcac2dd 100644
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java
+++ b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartDaemonMojo.java
@@ -21,7 +21,10 @@
import java.io.File;
import java.io.IOException;
import java.net.ServerSocket;
+import java.util.HashSet;
+import java.util.Set;
+import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
@@ -33,6 +36,13 @@
* @requiresDependencyResolution test
*/
public class StartDaemonMojo extends AbstractStartProcessMojo {
+ /**
+ * @parameter default-value="${plugin.version}"
+ * @required
+ * @readonly
+ */
+ private String axisVersion;
+
/**
* The daemon class.
*
@@ -72,6 +82,8 @@ protected void doExecute() throws MojoExecutionException, MojoFailureException {
if (args != null) {
System.arraycopy(args, 0, vmArgs, 2, args.length);
}
- startJavaProcess(daemonClass, "org.apache.axis.testutils.daemon.Launcher", null, vmArgs, workDir, new DaemonProcessControl(controlPort));
+ Set additionalDependencies = new HashSet();
+ additionalDependencies.add(artifactFactory.createArtifact("org.apache.axis", "daemon-launcher", axisVersion, Artifact.SCOPE_TEST, "jar"));
+ startJavaProcess(daemonClass, "org.apache.axis.tools.daemon.Launcher", additionalDependencies, vmArgs, workDir, new DaemonProcessControl(controlPort));
}
}
diff --git a/pom.xml b/pom.xml
index 3029a347a..43ec7afc5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,6 +79,7 @@
axis-testutilsaxis-toolsaxis-war
+ daemon-launcherdistributionintegrationinterop-mock
@@ -131,6 +132,11 @@
commons-lang2.6
+
+ commons-daemon
+ commons-daemon
+ 1.0.10
+
diff --git a/samples/jms-sample/pom.xml b/samples/jms-sample/pom.xml
index b63d9e3f0..485a45caa 100644
--- a/samples/jms-sample/pom.xml
+++ b/samples/jms-sample/pom.xml
@@ -54,9 +54,8 @@
test
- ${project.groupId}
- axis-testutils
- ${project.version}
+ commons-daemon
+ commons-daemontest
diff --git a/samples/jms-sample/src/test/java/samples/jms/ActiveMQDaemon.java b/samples/jms-sample/src/test/java/samples/jms/ActiveMQDaemon.java
index ea790354e..db1978294 100644
--- a/samples/jms-sample/src/test/java/samples/jms/ActiveMQDaemon.java
+++ b/samples/jms-sample/src/test/java/samples/jms/ActiveMQDaemon.java
@@ -20,17 +20,26 @@
import org.apache.activemq.broker.BrokerFactory;
import org.apache.activemq.broker.BrokerService;
-import org.apache.axis.testutils.daemon.Daemon;
+import org.apache.commons.daemon.Daemon;
+import org.apache.commons.daemon.DaemonContext;
+import org.apache.commons.daemon.DaemonInitException;
public class ActiveMQDaemon implements Daemon {
private BrokerService broker;
- public void start(String[] args) throws Exception {
- broker = BrokerFactory.createBroker("broker:(tcp://localhost:" + args[0] + ")?useJmx=false&persistent=false");
+ public void init(DaemonContext context) throws DaemonInitException, Exception {
+ broker = BrokerFactory.createBroker("broker:(tcp://localhost:" + context.getArguments()[0] + ")?useJmx=false&persistent=false");
+ }
+
+ public void start() throws Exception {
broker.start();
}
public void stop() throws Exception {
broker.stop();
}
+
+ public void destroy() {
+ broker = null;
+ }
}
From 00847d6e706ce200029bc271afe1dde5b16198c2 Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sun, 9 Dec 2012 13:32:22 +0000
Subject: [PATCH 072/197] Removed the start-process goal and always use a
Daemon implementation. This ensures that the process is fully initialized
when the integration tests start.
---
.../tools/maven/server/StartProcessMojo.java | 69 -------------------
samples/transport-sample/pom.xml | 9 ++-
.../samples/transport/tcp/TCPListener.java | 6 +-
.../transport/tcp/TCPListenerDaemon.java | 43 ++++++++++++
4 files changed, 55 insertions(+), 72 deletions(-)
delete mode 100644 maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java
create mode 100644 samples/transport-sample/src/test/java/samples/transport/tcp/TCPListenerDaemon.java
diff --git a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java b/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java
deleted file mode 100644
index 33935f8b4..000000000
--- a/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/StartProcessMojo.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.axis.tools.maven.server;
-
-import java.io.File;
-
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
-import org.codehaus.plexus.logging.Logger;
-
-/**
- * Start an arbitrary Java process.
- *
- * @goal start-process
- * @phase pre-integration-test
- * @requiresDependencyResolution test
- */
-public class StartProcessMojo extends AbstractStartProcessMojo {
- /**
- * The main class.
- *
- * @parameter
- * @required
- */
- private String mainClass;
-
- /**
- * The arguments to be passed to the main class.
- *
- * @parameter
- */
- private String[] args;
-
- /**
- * The working directory for the process.
- *
- * @parameter default-value="${project.build.directory}/work"
- * @required
- */
- private File workDir;
-
- protected void doExecute() throws MojoExecutionException, MojoFailureException {
- workDir.mkdirs();
- startJavaProcess(mainClass, mainClass, null, args != null ? args : new String[0], workDir, new ProcessControl() {
- public void initializeProcess(Logger logger, Process process) throws Exception {
- }
-
- public int shutdownProcess(Logger logger) throws Exception {
- return RUNNING;
- }
- });
- }
-}
diff --git a/samples/transport-sample/pom.xml b/samples/transport-sample/pom.xml
index 8d1b15524..591c975ad 100644
--- a/samples/transport-sample/pom.xml
+++ b/samples/transport-sample/pom.xml
@@ -44,6 +44,11 @@
${project.version}test
+
+ commons-daemon
+ commons-daemon
+ test
+
@@ -84,10 +89,10 @@
start-server
- start-process
+ start-daemon
- samples.transport.tcp.TCPListener
+ samples.transport.tcp.TCPListenerDaemon-p${test.functional.TCPListenerPort}
diff --git a/samples/transport-sample/src/main/java/samples/transport/tcp/TCPListener.java b/samples/transport-sample/src/main/java/samples/transport/tcp/TCPListener.java
index 35b517d4c..9035184df 100644
--- a/samples/transport-sample/src/main/java/samples/transport/tcp/TCPListener.java
+++ b/samples/transport-sample/src/main/java/samples/transport/tcp/TCPListener.java
@@ -59,7 +59,7 @@ public class TCPListener implements Runnable {
private AxisEngine engine = null ;
// becomes true when we want to quit
- private boolean done = false;
+ private volatile boolean done = false;
static final String wsdd =
"
Date: Sun, 9 Dec 2012 17:22:05 +0000
Subject: [PATCH 073/197] Added support for the deprecated languageSpecificType
attribute.
---
.../axis/model/wsdd/WSDDExtendedMetaData.java | 37 ++++++++++++
.../org/apache/axis/model/wsdd/WSDDUtil.java | 58 ++++++++++++++++++-
.../axis/model/wsdd/DeprecationTest.java | 35 +++++++++++
.../axis/model/wsdd/languageSpecificType.wsdd | 8 +++
4 files changed, 136 insertions(+), 2 deletions(-)
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDExtendedMetaData.java
create mode 100644 axis-model/src/test/java/org/apache/axis/model/wsdd/DeprecationTest.java
create mode 100644 axis-model/src/test/resources/org/apache/axis/model/wsdd/languageSpecificType.wsdd
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDExtendedMetaData.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDExtendedMetaData.java
new file mode 100644
index 000000000..1f5f4726e
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDExtendedMetaData.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.model.wsdd;
+
+import org.apache.axis.model.wsdd.impl.WSDDPackageImpl;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.util.BasicExtendedMetaData;
+
+final class WSDDExtendedMetaData extends BasicExtendedMetaData {
+ private static final EClass mapping = WSDDPackageImpl.eINSTANCE.getMapping();
+
+ public EStructuralFeature getAttribute(EClass eClass, String namespace, String name) {
+ if (mapping.isSuperTypeOf(eClass) && namespace == null && name.equals("languageSpecificType")) {
+ // TODO: emit warning
+ return mapping.getEStructuralFeature(WSDDPackageImpl.MAPPING__TYPE);
+ } else {
+ return super.getAttribute(eClass, namespace, name);
+ }
+ }
+}
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
index 47e5e6f8f..86d71e57c 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDUtil.java
@@ -19,31 +19,85 @@
package org.apache.axis.model.wsdd;
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
import java.io.Writer;
+import java.net.URL;
+import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
+import org.apache.axis.components.logger.LogFactory;
+import org.apache.axis.configuration.DefaultConfiguration;
import org.apache.axis.model.util.AxisXMLResource;
import org.apache.axis.model.wsdd.impl.WSDDPackageImpl;
-import org.eclipse.emf.ecore.util.ExtendedMetaData;
+import org.apache.commons.logging.Log;
import org.eclipse.emf.ecore.xmi.XMLResource;
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
import org.xml.sax.InputSource;
public final class WSDDUtil {
+ private static final Log log = LogFactory.getLog(WSDDUtil.class.getName());
+
private WSDDUtil() {}
public static Deployment load(InputSource is) throws IOException {
WSDDPackageImpl.eINSTANCE.eClass();
AxisXMLResource resource = new AxisXMLResource();
Map options = new HashMap();
- options.put(XMLResource.OPTION_EXTENDED_META_DATA, ExtendedMetaData.INSTANCE);
+ options.put(XMLResource.OPTION_EXTENDED_META_DATA, new WSDDExtendedMetaData());
options.put(AxisXMLResource.OPTION_IGNORE_NAMESPACE_FOR_UNQUALIFIED_QNAME, WSDDPackageImpl.eNS_URI);
resource.load(is, options);
return (Deployment)resource.getContents().get(0);
}
+ /**
+ * Load the default Axis configuration. This method implements the same algorithm as
+ * {@link DefaultConfiguration}.
+ *
+ * @param cl
+ * the class loader to load the configuration from
+ * @param type
+ * the type of configuration (client or server)
+ * @return the default configuration
+ * @throws IOException
+ */
+ public static Deployment buildDefaultConfiguration(ClassLoader cl, String type) throws IOException {
+ // Load the base configuration
+ String resourceName = "org/apache/axis/" + type + "/" + type + "-config.wsdd";
+ InputStream in = cl.getResourceAsStream(resourceName);
+ if (in == null) {
+ throw new IOException("Resource " + resourceName + " not found");
+ }
+ if (log.isDebugEnabled()) {
+ log.debug("Loading resource " + resourceName);
+ }
+ Deployment deployment;
+ try {
+ deployment = WSDDUtil.load(new InputSource(in));
+ } finally {
+ in.close();
+ }
+
+ // Discover and load additional default configuration fragments
+ resourceName = "META-INF/axis/default-" + type + "-config.wsdd";
+ Enumeration resources = cl.getResources(resourceName);
+ while (resources.hasMoreElements()) {
+ URL url = (URL)resources.nextElement();
+ if (log.isDebugEnabled()) {
+ log.debug("Loading " + url);
+ }
+ in = url.openStream();
+ try {
+ deployment.merge(WSDDUtil.load(new InputSource(in)));
+ } finally {
+ in.close();
+ }
+ }
+
+ return deployment;
+ }
+
public static void save(Deployment deployment, OutputStream out) throws IOException {
AxisXMLResource resource = new AxisXMLResource();
XMLProcessor processor = new XMLProcessor();
diff --git a/axis-model/src/test/java/org/apache/axis/model/wsdd/DeprecationTest.java b/axis-model/src/test/java/org/apache/axis/model/wsdd/DeprecationTest.java
new file mode 100644
index 000000000..cd805b4c4
--- /dev/null
+++ b/axis-model/src/test/java/org/apache/axis/model/wsdd/DeprecationTest.java
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.model.wsdd;
+
+import javax.xml.namespace.QName;
+
+import junit.framework.TestCase;
+
+import org.apache.axis.deployment.wsdd.WSDDConstants;
+import org.xml.sax.InputSource;
+
+public class DeprecationTest extends TestCase {
+ public void testLanguageSpecificType() throws Exception {
+ Deployment deployment = WSDDUtil.load(new InputSource(DeprecationTest.class.getResource("languageSpecificType.wsdd").toString()));
+ Service service = (Service)deployment.getServices().get(0);
+ BeanMapping beanMapping = (BeanMapping)service.getBeanMappings().get(0);
+ assertEquals(new QName(WSDDConstants.URI_WSDD_JAVA, "test.rpc.Bean"), beanMapping.getType());
+ }
+}
diff --git a/axis-model/src/test/resources/org/apache/axis/model/wsdd/languageSpecificType.wsdd b/axis-model/src/test/resources/org/apache/axis/model/wsdd/languageSpecificType.wsdd
new file mode 100644
index 000000000..13fcaf49f
--- /dev/null
+++ b/axis-model/src/test/resources/org/apache/axis/model/wsdd/languageSpecificType.wsdd
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
From c8c4a20860f206d3be4e9883d1cd245d795d6bff Mon Sep 17 00:00:00 2001
From: Andreas Veithen
Date: Sun, 9 Dec 2012 18:17:44 +0000
Subject: [PATCH 074/197] Added support for globally defined type mappings.
---
axis-model/model/wsdd.ecore | 54 +--
.../apache/axis/model/wsdd/Deployment.java | 2 +-
.../axis/model/wsdd/MappingContainer.java | 77 ++++
.../org/apache/axis/model/wsdd/Service.java | 53 +--
.../apache/axis/model/wsdd/WSDDFactory.java | 9 +
.../axis/model/wsdd/impl/DeploymentImpl.java | 4 +-
.../model/wsdd/impl/MappingContainerImpl.java | 223 +++++++++++
.../axis/model/wsdd/impl/ServiceImpl.java | 171 +++++----
.../axis/model/wsdd/impl/WSDDFactoryImpl.java | 11 +
.../axis/model/wsdd/impl/WSDDPackageImpl.java | 363 ++++++++++++------
axis-model/src/test/wsdd/bidbuy.wsdd | 23 ++
11 files changed, 713 insertions(+), 277 deletions(-)
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/MappingContainer.java
create mode 100644 axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingContainerImpl.java
create mode 100644 axis-model/src/test/wsdd/bidbuy.wsdd
diff --git a/axis-model/model/wsdd.ecore b/axis-model/model/wsdd.ecore
index b45cc822f..42df32adb 100644
--- a/axis-model/model/wsdd.ecore
+++ b/axis-model/model/wsdd.ecore
@@ -25,6 +25,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -118,7 +144,7 @@
-
+
@@ -139,32 +165,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
index 827362b8a..3efe9fb8d 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Deployment.java
@@ -27,7 +27,7 @@
* @model extendedMetaData="name='deployment' kind='element'"
* @generated
*/
-public interface Deployment {
+public interface Deployment extends MappingContainer {
/**
* Returns the value of the 'Name' attribute.
*
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/MappingContainer.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/MappingContainer.java
new file mode 100644
index 000000000..93f83221e
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/MappingContainer.java
@@ -0,0 +1,77 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd;
+
+import java.util.List;
+
+/**
+ *
+ * A representation of the model object 'Mapping Container'.
+ *
+ *
+ *
+ * The following features are supported:
+ *
+ *
{@link org.apache.axis.model.wsdd.MappingContainer#getTypeMappings Type Mappings}
+ *
+ *
+ * @model
+ * @generated
+ */
+public interface MappingContainer {
+ /**
+ * Returns the value of the 'Type Mappings' containment reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.TypeMapping}.
+ *
+ *
+ * If the meaning of the 'Type Mappings' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Type Mappings' containment reference list.
+ * @model type="org.apache.axis.model.wsdd.TypeMapping" containment="true"
+ * extendedMetaData="kind='element' name='typeMapping' namespace='##targetNamespace'"
+ * @generated
+ */
+ List getTypeMappings();
+
+ /**
+ * Returns the value of the 'Bean Mappings' containment reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.BeanMapping}.
+ *
+ *
+ * If the meaning of the 'Bean Mappings' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Bean Mappings' containment reference list.
+ * @model type="org.apache.axis.model.wsdd.BeanMapping" containment="true"
+ * extendedMetaData="kind='element' name='beanMapping' namespace='##targetNamespace'"
+ * @generated
+ */
+ List getBeanMappings();
+
+ /**
+ * Returns the value of the 'Array Mappings' containment reference list.
+ * The list contents are of type {@link org.apache.axis.model.wsdd.ArrayMapping}.
+ *
+ *
+ * If the meaning of the 'Array Mappings' containment reference list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Array Mappings' containment reference list.
+ * @model type="org.apache.axis.model.wsdd.ArrayMapping" containment="true"
+ * extendedMetaData="kind='element' name='arrayMapping' namespace='##targetNamespace'"
+ * @generated
+ */
+ List getArrayMappings();
+
+} // MappingContainer
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
index e15265256..3146ae25c 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/Service.java
@@ -25,16 +25,13 @@
*
*
*
*
* @model
* @generated
*/
-public interface Service extends DeployableItem {
+public interface Service extends DeployableItem, MappingContainer {
/**
* Returns the value of the 'Name' attribute.
*
@@ -166,52 +163,4 @@ public interface Service extends DeployableItem {
*/
List getOperations();
- /**
- * Returns the value of the 'Type Mappings' containment reference list.
- * The list contents are of type {@link org.apache.axis.model.wsdd.TypeMapping}.
- *
- *
- * If the meaning of the 'Type Mappings' containment reference list isn't clear,
- * there really should be more of a description here...
- *
- *
- * @return the value of the 'Type Mappings' containment reference list.
- * @model type="org.apache.axis.model.wsdd.TypeMapping" containment="true"
- * extendedMetaData="kind='element' name='typeMapping' namespace='##targetNamespace'"
- * @generated
- */
- List getTypeMappings();
-
- /**
- * Returns the value of the 'Bean Mappings' containment reference list.
- * The list contents are of type {@link org.apache.axis.model.wsdd.BeanMapping}.
- *
- *
- * If the meaning of the 'Bean Mappings' containment reference list isn't clear,
- * there really should be more of a description here...
- *
- *
- * @return the value of the 'Bean Mappings' containment reference list.
- * @model type="org.apache.axis.model.wsdd.BeanMapping" containment="true"
- * extendedMetaData="kind='element' name='beanMapping' namespace='##targetNamespace'"
- * @generated
- */
- List getBeanMappings();
-
- /**
- * Returns the value of the 'Array Mappings' containment reference list.
- * The list contents are of type {@link org.apache.axis.model.wsdd.ArrayMapping}.
- *
- *
- * If the meaning of the 'Array Mappings' containment reference list isn't clear,
- * there really should be more of a description here...
- *
- *
- * @return the value of the 'Array Mappings' containment reference list.
- * @model type="org.apache.axis.model.wsdd.ArrayMapping" containment="true"
- * extendedMetaData="kind='element' name='arrayMapping' namespace='##targetNamespace'"
- * @generated
- */
- List getArrayMappings();
-
} // Service
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
index aea67e665..466fb79a0 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/WSDDFactory.java
@@ -66,6 +66,15 @@ public interface WSDDFactory {
*/
BeanMapping createBeanMapping();
+ /**
+ * Returns a new object of class 'Mapping Container'.
+ *
+ *
+ * @return a new object of class 'Mapping Container'.
+ * @generated
+ */
+ MappingContainer createMappingContainer();
+
/**
* Returns a new object of class 'Operation Parameter'.
*
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java
index 6f6452a19..aa4fae9d9 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/DeploymentImpl.java
@@ -22,8 +22,6 @@
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
import org.eclipse.emf.ecore.util.BasicInternalEList;
import org.eclipse.emf.ecore.util.InternalEList;
@@ -44,7 +42,7 @@
*
* @generated
*/
-public class DeploymentImpl extends EObjectImpl implements Deployment {
+public class DeploymentImpl extends MappingContainerImpl implements Deployment {
/**
* The default value of the '{@link #getName() Name}' attribute.
*
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingContainerImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingContainerImpl.java
new file mode 100644
index 000000000..ec705b905
--- /dev/null
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/MappingContainerImpl.java
@@ -0,0 +1,223 @@
+/**
+ *
+ *
+ *
+ * $Id$
+ */
+package org.apache.axis.model.wsdd.impl;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.axis.model.wsdd.ArrayMapping;
+import org.apache.axis.model.wsdd.BeanMapping;
+import org.apache.axis.model.wsdd.MappingContainer;
+import org.apache.axis.model.wsdd.TypeMapping;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.BasicInternalEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ *
+ * An implementation of the model object 'Mapping Container'.
+ *
+ *
+ * The following features are implemented:
+ *
+ *
{@link org.apache.axis.model.wsdd.impl.MappingContainerImpl#getTypeMappings Type Mappings}
*
@@ -26,6 +29,56 @@
*/
public interface Chain {
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Chain#getName Name}' attribute.
+ *
+ *
+ * @param value the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Type' attribute.
+ *
+ *
+ * If the meaning of the 'Type' attribute isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Type' attribute.
+ * @see #setType(QName)
+ * @model dataType="org.apache.axis.model.xml.QName"
+ * @generated
+ */
+ QName getType();
+
+ /**
+ * Sets the value of the '{@link org.apache.axis.model.wsdd.Chain#getType Type}' attribute.
+ *
+ *
+ * @param value the new value of the 'Type' attribute.
+ * @see #getType()
+ * @generated
+ */
+ void setType(QName value);
+
/**
* Returns the value of the 'Handlers' containment reference list.
* The list contents are of type {@link org.apache.axis.model.wsdd.Handler}.
diff --git a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ChainImpl.java b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ChainImpl.java
index 93b3fad1c..76afa77b4 100644
--- a/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ChainImpl.java
+++ b/axis-model/src/main/java/org/apache/axis/model/wsdd/impl/ChainImpl.java
@@ -8,6 +8,7 @@
import java.util.Collection;
import java.util.List;
+import javax.xml.namespace.QName;
import org.apache.axis.model.wsdd.Chain;
import org.apache.axis.model.wsdd.Handler;
@@ -27,6 +28,8 @@
*