You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/09/15 21:07:03 UTC

svn commit: r289289 [114/134] - in /webservices/axis2/trunk/java: ./ etc/ modules/addressing/ modules/addressing/src/META-INF/ modules/addressing/src/org/apache/axis2/handlers/addressing/ modules/addressing/test-resources/ modules/addressing/test/org/a...

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLBindingOperationImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLBindingOperationImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLBindingOperationImpl.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLBindingOperationImpl.java Thu Sep 15 11:52:11 2005
@@ -1,173 +1,173 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.wsdl.impl;
-
-import org.apache.wsdl.WSDLBindingFault;
-import org.apache.wsdl.WSDLBindingMessageReference;
-import org.apache.wsdl.WSDLBindingOperation;
-import org.apache.wsdl.WSDLOperation;
-
-import javax.xml.namespace.QName;
-import java.util.LinkedList;
-import java.util.List;
-
-/**
- * @author chathura@opensource.lk
- */
-public class WSDLBindingOperationImpl extends ExtensibleComponentImpl
-        implements WSDLBindingOperation {
-
-
-    /**
-     * Field name
-     */
-    private QName name;
-
-
-    /**
-     * Field infaults
-     */
-    private List infaults = new LinkedList();
-
-    /**
-     * Field outfaults
-     */
-    private List outfaults = new LinkedList();
-
-    /**
-     * Field operation
-     */
-    private WSDLOperation operation;
-
-    /**
-     * Field input
-     */
-    private WSDLBindingMessageReference input;
-
-    /**
-     * Field output
-     */
-    private WSDLBindingMessageReference output;
-
-    /**
-     * Method getInput
-     *
-     * @return message reference
-     */
-    public WSDLBindingMessageReference getInput() {
-        return input;
-    }
-
-
-
-    /**
-     * Method setInput
-     *
-     * @param input
-     */
-    public void setInput(WSDLBindingMessageReference input) {
-        this.input = input;
-    }
-
-    /**
-     * Method getOperation
-     *
-     * @return operation
-     */
-    public WSDLOperation getOperation() {
-        return operation;
-    }
-
-    /**
-     * Method setOperation
-     *
-     * @param operation
-     */
-    public void setOperation(WSDLOperation operation) {
-        this.operation = operation;
-    }
-
-    /**
-     * Method getOutput
-     *
-     * @return message reference
-     */
-    public WSDLBindingMessageReference getOutput() {
-        return output;
-    }
-
-    /**
-     * Method setOutput
-     *
-     * @param output
-     */
-    public void setOutput(WSDLBindingMessageReference output) {
-        this.output = output;
-    }
-
-    /**
-     * Method getName
-     *
-     * @return QName
-     */
-    public QName getName() {
-        return name;
-    }
-
-    /**
-     * Method setName
-     *
-     * @param name
-     */
-    public void setName(QName name) {
-        this.name = name;
-    }
-
-    /**
-     * Add the InFault to the Components InFaults
-     *
-     * @param inFault
-     */
-    public void addInFault(WSDLBindingFault inFault) {
-        this.infaults.add(inFault);
-    }
-
-    /**
-     * Add the OutFault to the Component OutFaults
-     *
-     * @param outFault
-     */
-    public void addOutFault(WSDLBindingFault outFault) {
-        this.outfaults.add(outFault);
-    }
-
-
-    public List getInfaults() {
-        return infaults;
-    }
-
-    public void setInfaults(List infaults) {
-        this.infaults = infaults;
-    }
-
-    public List getOutfaults() {
-        return outfaults;
-    }
-
-    public void setOutfaults(List outfaults) {
-        this.outfaults = outfaults;
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.wsdl.impl;
+
+import org.apache.wsdl.WSDLBindingFault;
+import org.apache.wsdl.WSDLBindingMessageReference;
+import org.apache.wsdl.WSDLBindingOperation;
+import org.apache.wsdl.WSDLOperation;
+
+import javax.xml.namespace.QName;
+import java.util.LinkedList;
+import java.util.List;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLBindingOperationImpl extends ExtensibleComponentImpl
+        implements WSDLBindingOperation {
+
+
+    /**
+     * Field name
+     */
+    private QName name;
+
+
+    /**
+     * Field infaults
+     */
+    private List infaults = new LinkedList();
+
+    /**
+     * Field outfaults
+     */
+    private List outfaults = new LinkedList();
+
+    /**
+     * Field operation
+     */
+    private WSDLOperation operation;
+
+    /**
+     * Field input
+     */
+    private WSDLBindingMessageReference input;
+
+    /**
+     * Field output
+     */
+    private WSDLBindingMessageReference output;
+
+    /**
+     * Method getInput
+     *
+     * @return message reference
+     */
+    public WSDLBindingMessageReference getInput() {
+        return input;
+    }
+
+
+
+    /**
+     * Method setInput
+     *
+     * @param input
+     */
+    public void setInput(WSDLBindingMessageReference input) {
+        this.input = input;
+    }
+
+    /**
+     * Method getOperation
+     *
+     * @return operation
+     */
+    public WSDLOperation getOperation() {
+        return operation;
+    }
+
+    /**
+     * Method setOperation
+     *
+     * @param operation
+     */
+    public void setOperation(WSDLOperation operation) {
+        this.operation = operation;
+    }
+
+    /**
+     * Method getOutput
+     *
+     * @return message reference
+     */
+    public WSDLBindingMessageReference getOutput() {
+        return output;
+    }
+
+    /**
+     * Method setOutput
+     *
+     * @param output
+     */
+    public void setOutput(WSDLBindingMessageReference output) {
+        this.output = output;
+    }
+
+    /**
+     * Method getName
+     *
+     * @return QName
+     */
+    public QName getName() {
+        return name;
+    }
+
+    /**
+     * Method setName
+     *
+     * @param name
+     */
+    public void setName(QName name) {
+        this.name = name;
+    }
+
+    /**
+     * Add the InFault to the Components InFaults
+     *
+     * @param inFault
+     */
+    public void addInFault(WSDLBindingFault inFault) {
+        this.infaults.add(inFault);
+    }
+
+    /**
+     * Add the OutFault to the Component OutFaults
+     *
+     * @param outFault
+     */
+    public void addOutFault(WSDLBindingFault outFault) {
+        this.outfaults.add(outFault);
+    }
+
+
+    public List getInfaults() {
+        return infaults;
+    }
+
+    public void setInfaults(List infaults) {
+        this.infaults = infaults;
+    }
+
+    public List getOutfaults() {
+        return outfaults;
+    }
+
+    public void setOutfaults(List outfaults) {
+        this.outfaults = outfaults;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLBindingOperationImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLDescriptionImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLDescriptionImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLDescriptionImpl.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLDescriptionImpl.java Thu Sep 15 11:52:11 2005
@@ -1,500 +1,500 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.wsdl.impl;
-
-import org.apache.wsdl.*;
-import org.apache.wsdl.extensions.ExtensionFactory;
-import org.apache.wsdl.extensions.impl.ExtensionFactoryImpl;
-
-import javax.xml.namespace.QName;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-/**
- * @author chathura@opensource.lk
- */
-public class WSDLDescriptionImpl extends ComponentImpl
-        implements WSDLDescription {
-    /**
-     * The name token of WSDL 1.1 Definition.
-     */
-    private QName wsdl1DefinitionName;
-
-    // TODO local name and the naspace name to be made static or through a Constant class.
-    // The attribute information items
-    // TODO required; thus check it up
-
-    /**
-     * Field targetNameSpace
-     */
-    private String targetNameSpace;
-
-    // private NamespaceMappings[] namespaceDefinitions;
-    // TODO The object structure of some external xml data binding is going to be pluged here eventually.
-
-    /**
-     * Field types
-     */
-    private WSDLTypes types;
-
-    /**
-     * This List will be a list of <code>WSDLInterface</code> objects.
-     */
-    private Map wsdlInterfaces = new HashMap();
-
-    /**
-     * This <code>HashMap </code> is a Map of <code>WSDLBinding </code> objects.
-     */
-    private Map bindings = new HashMap();
-
-    /**
-     * This <code>HashMap </code> is a list of <code>WSDLService </code> objects.
-     * Support of multiple is backed by the requirements in the specification.
-     */
-    private Map services = new HashMap();
-
-    /**
-     * WSDL imports
-     */
-    private ArrayList imports = new ArrayList();
-
-    /**
-     * WSDL Includes.
-     */
-    private ArrayList includes = new ArrayList();
-
-    /**
-     * Will keep a map of all the Namespaces associated with the
-     * Definition Component and will be keyed by the Namespace prefix.
-     */
-    private Map namespaces = new HashMap();
-
-    /**
-     * Returns a Map of <code>WSDLBindings</code> Objects keyed by the <code>QName</code>
-     * of the Binding.
-     *
-     * @return
-     */
-    public Map getBindings() {
-        return bindings;
-    }
-
-    /**
-     * Sets the whole new set of Bindings to the WSDLDefinition.
-     *
-     * @param bindings
-     */
-    public void setBindings(Map bindings) {
-
-        // if(this.bindings.size() > 0) throw new WSDLProcessingException("WSDLBimding Map already contains " +
-        // "one or more bindings. Trying to assign a new map will loose those Bindings.");
-        this.bindings = bindings;
-    }
-
-    /**
-     * The WSDLBinding Will be added to the map keyed  with its own QName.
-     * If the WSDLBinding is null it will not be added.
-     * If the WSDLBinding is not null and  Binding name is null then
-     * WSDLProcessingException will be thrown
-     *
-     * @param binding <code>WSDLBinding</code> Object
-     */
-    public void addBinding(WSDLBinding binding) {
-        if (null == binding) {
-            return;
-        }
-        if (null == binding.getName()) {
-            throw new WSDLProcessingException(
-                    "The WSDLBinding name cannot be null(Required)");
-        }
-        this.bindings.put(binding.getName(), binding);
-    }
-
-    /**
-     * Retrives the <code>WSDLBinding</code> by its QName. Wil return null
-     * if <code>WSDLBinding</code> is not found.
-     *
-     * @param qName The QName of the Binding.
-     * @return
-     */
-    public WSDLBinding getBinding(QName qName) {
-        return (WSDLBinding) this.bindings.get(qName);
-    }
-
-    /**
-     * The Interface component will be added to the map keyed with its own name.
-     * If the Interface is null it will not be added.
-     * If the interface name is null an WSDLProcessingException will be thrown
-     *
-     * @param interfaceComponent
-     */
-    public void addInterface(WSDLInterface interfaceComponent) {
-        if (null == interfaceComponent) {
-            return;
-        }
-        if (null == interfaceComponent.getName()) {
-            throw new WSDLProcessingException(
-                    "PortType/Interface name cannot be null(Required) ");
-        }
-        this.wsdlInterfaces.put(interfaceComponent.getName(),
-                interfaceComponent);
-    }
-
-    /**
-     * The Interface Component will be returned if it exsists,
-     * otherwise null will be returned.
-     *
-     * @param qName qName of the Interface.
-     * @return The Interface Component with the relavent QName
-     */
-    public WSDLInterface getInterface(QName qName) {
-        return (WSDLInterface) this.wsdlInterfaces.get(qName);
-    }
-
-    /**
-     * Method getServices
-     *
-     * @return
-     */
-    public Map getServices() {
-        return services;
-    }
-
-    /**
-     * Method setServices
-     *
-     * @param services
-     */
-    public void setServices(Map services) {
-        this.services = services;
-    }
-
-    /**
-     * Will return the <code>WSDLService </code> if found otherwise return null.
-     *
-     * @param qName <code>QName</code> of the Service
-     * @return The Service with the relavent QName
-     */
-    public WSDLService getService(QName qName) {
-        return (WSDLService) this.services.get(qName);
-    }
-
-    /**
-     * Will add the <code>WSDLService</code> to the Map.
-     * If object is null it will not be added.
-     * If the <code>WSDLService</code> name is null a <code>WSDLProcessingException</code>
-     * will be thrown.(its required)
-     *
-     * @param service
-     */
-    public void addService(WSDLService service) {
-        if (null == service) {
-            return;
-        }
-        if (null == service.getName()) {
-            throw new WSDLProcessingException(
-                    "The WSDLService name cannot be null (Required)");
-        }
-        this.services.put(service.getName(), service);
-    }
-
-    /**
-     * Method getTargetNameSpace
-     *
-     * @return
-     */
-    public String getTargetNameSpace() {
-        return targetNameSpace;
-    }
-
-    /**
-     * Method setTargetNameSpace
-     *
-     * @param targetNameSpace
-     */
-    public void setTargetNameSpace(String targetNameSpace) {
-        this.targetNameSpace = targetNameSpace;
-    }
-
-    /**
-     * Method getWsdlInterfaces
-     *
-     * @return
-     */
-    public Map getWsdlInterfaces() {
-        return wsdlInterfaces;
-    }
-
-    /**
-     * Method setWsdlInterfaces
-     *
-     * @param wsdlInterfaces
-     */
-    public void setWsdlInterfaces(Map wsdlInterfaces) {
-        this.wsdlInterfaces = wsdlInterfaces;
-    }
-
-    /**
-     * Method getTypes
-     *
-     * @return
-     */
-    public WSDLTypes getTypes() {
-        return types;
-    }
-
-    /**
-     * Method setTypes
-     *
-     * @param types
-     */
-    public void setTypes(WSDLTypes types) {
-        this.types = types;
-    }
-
-    /**
-     * Gets the name attribute of the WSDL 1.1 Definitions Element
-     *
-     * @return
-     */
-    public QName getWSDL1DefinitionName() {
-        return wsdl1DefinitionName;
-    }
-
-    /**
-     * Sets the name attribute of the WSDL 1.1 Definitions Element
-     *
-     * @param wsdl1DefinitionName
-     */
-    public void setWSDL1DefinitionName(QName wsdl1DefinitionName) {
-        this.wsdl1DefinitionName = wsdl1DefinitionName;
-    }
-
-    /**
-     * Will return all the Namespaces associated with the Definition
-     * Component and will be keyed by the Napespace Prefix.
-     *
-     * @return
-     */
-    public Map getNamespaces() {
-        return namespaces;
-    }
-
-    /**
-     * Sets the Namespaces associated with the Difinition Component
-     * and they should be keyed by its Namespace Prefix.
-     *
-     * @param namespaces
-     */
-    public void setNamespaces(Map namespaces) {
-        this.namespaces = namespaces;
-    }
-
-    /**
-     * Will return the Namespace URI as a String if there exists an
-     * Namespace URI associated with the given prefix, in the Definition
-     * Component, Will return null if not found.
-     *
-     * @param prefix Prefix defined in the Definitions elemet in the WSDL file
-     * @return The Namespace URI for the prefix.
-     */
-    public String getNamespace(String prefix) {
-        if (null == prefix) {
-            return null;
-        }
-        return (String) this.namespaces.get(prefix);
-    }
-
-    /**
-     * Returns the WSDL Imports in an <code>ArrayList</code>
-     *
-     * @return
-     */
-    public ArrayList getImports() {
-        return imports;
-    }
-
-    /**
-     * Sets the imports as an <code>ArrayList</code>
-     *
-     * @param imports
-     */
-    public void setImports(ArrayList imports) {
-        this.imports = imports;
-    }
-
-    /**
-     * Adds an import to the list.
-     *
-     * @param wsdlImport
-     */
-    public void addImports(WSDLImport wsdlImport) {
-        this.imports.add(wsdlImport);
-    }
-
-    /**
-     * Returns the Includes as an <code>ArrayList</code>
-     *
-     * @return
-     */
-    public ArrayList getIncludes() {
-        return includes;
-    }
-
-    /**
-     * Sets the includes as an <code>Arraylist</code>
-     *
-     * @param includes
-     */
-    public void setIncludes(ArrayList includes) {
-        this.includes = includes;
-    }
-
-    /**
-     * Adds the WSDL Include to the list.
-     *
-     * @param wsdlInclude
-     */
-    public void addInclude(WSDLInclude wsdlInclude) {
-        this.includes.add(wsdlInclude);
-    }
-
-    /**
-     * @return A new instance of type <code>WSDLDescription</code>
-     */
-    public WSDLDescription createDescription() {
-        return new WSDLDescriptionImpl();
-    }
-
-    /**
-     * @return A new instance of type <code>WSDLService</code>
-     */
-    public WSDLService createService() {
-        return new WSDLServiceImpl();
-    }
-
-    /**
-     * @return A new instance of type <code>WSDLInterface</code>
-     */
-    public WSDLInterface createInterface() {
-        return new WSDLInterfaceImpl();
-    }
-
-    /**
-     * @return A new instance of type <code>WSDLTypes</code>
-     */
-    public WSDLTypes createTypes() {
-        return new WSDLTypesImpl();
-    }
-
-    /**
-     * @return A new instance of type <code>WSDLBinding</code>
-     */
-    public WSDLBinding createBinding() {
-        return new WSDLBindingImpl();
-    }
-
-    /**
-     * @return A new instance of type <code>WSDLOperation</code>
-     */
-    public WSDLOperation createOperation() {
-        return new WSDLOperationImpl();
-    }
-
-    /**
-     * @return A new instance of type <code>WSDLEndpoint</code>
-     */
-    public WSDLEndpoint createEndpoint() {
-        return new WSDLEndpointImpl();
-    }
-
-
-    /**
-     * @return A new instance of type <code>WSDLFeature</code>
-     */
-    public WSDLFeature createFeature() {
-        return new WSDLFeatureImpl();
-    }
-
-    /**
-     * @return A new instance of type <code>WSDLImport</code>
-     */
-    public WSDLImport createImport() {
-        return new WSDLImportImpl();
-    }
-
-    /**
-     * @return A new instance of type <code>WSDLInclude</code>
-     */
-    public WSDLInclude createInclude() {
-        return new WSDLIncludeImpl();
-    }
-
-    /**
-     * Method createProperty
-     *
-     * @return
-     */
-    public WSDLProperty createProperty() {
-        return new WSDLPropertyImpl();
-    }
-
-    public MessageReference createMessageReference() {
-        return new MessageReferenceImpl();
-    }
-
-    public WSDLBindingMessageReference createWSDLBindingMessageReference() {
-        return new WSDLBindingMessageReferenceImpl();
-    }
-
-    public WSDLBindingOperation createWSDLBindingOperation() {
-        return new WSDLBindingOperationImpl();
-    }
-
-    /**
-     * @return A new Instance of <code>ExtensionFactory</code> that
-     *         is capable of creating the correct <code>ExtensibilityElement</code>
-     *         given a <code>QName</code>.
-     */
-    public ExtensionFactory createExtensionFactory() {
-        return new ExtensionFactoryImpl();
-    }
-
-
-    public WSDLBinding getFirstBinding() {
-        Iterator bindingIterator = this.bindings.values().iterator();
-        if (bindingIterator.hasNext()) {
-            return (WSDLBinding) bindingIterator.next();
-        }
-        return null;
-       // throw new WSDLProcessingException(
-       //       "No Binding Components are available");
-    }
-
-    public WSDLExtensibilityAttribute createWSDLExtensibilityAttribute() {
-        return new WSDLExtensibilityAttributeImpl();
-    }
-
-    public WSDLFaultReference createFaultReference() {
-        return new WSDLFaultReferenceImpl();
-    }
-
-    public WSDLBindingFault createBindingFault() {
-        return new WSDLBindingFaultImpl();
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.wsdl.impl;
+
+import org.apache.wsdl.*;
+import org.apache.wsdl.extensions.ExtensionFactory;
+import org.apache.wsdl.extensions.impl.ExtensionFactoryImpl;
+
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLDescriptionImpl extends ComponentImpl
+        implements WSDLDescription {
+    /**
+     * The name token of WSDL 1.1 Definition.
+     */
+    private QName wsdl1DefinitionName;
+
+    // TODO local name and the naspace name to be made static or through a Constant class.
+    // The attribute information items
+    // TODO required; thus check it up
+
+    /**
+     * Field targetNameSpace
+     */
+    private String targetNameSpace;
+
+    // private NamespaceMappings[] namespaceDefinitions;
+    // TODO The object structure of some external xml data binding is going to be pluged here eventually.
+
+    /**
+     * Field types
+     */
+    private WSDLTypes types;
+
+    /**
+     * This List will be a list of <code>WSDLInterface</code> objects.
+     */
+    private Map wsdlInterfaces = new HashMap();
+
+    /**
+     * This <code>HashMap </code> is a Map of <code>WSDLBinding </code> objects.
+     */
+    private Map bindings = new HashMap();
+
+    /**
+     * This <code>HashMap </code> is a list of <code>WSDLService </code> objects.
+     * Support of multiple is backed by the requirements in the specification.
+     */
+    private Map services = new HashMap();
+
+    /**
+     * WSDL imports
+     */
+    private ArrayList imports = new ArrayList();
+
+    /**
+     * WSDL Includes.
+     */
+    private ArrayList includes = new ArrayList();
+
+    /**
+     * Will keep a map of all the Namespaces associated with the
+     * Definition Component and will be keyed by the Namespace prefix.
+     */
+    private Map namespaces = new HashMap();
+
+    /**
+     * Returns a Map of <code>WSDLBindings</code> Objects keyed by the <code>QName</code>
+     * of the Binding.
+     *
+     * @return
+     */
+    public Map getBindings() {
+        return bindings;
+    }
+
+    /**
+     * Sets the whole new set of Bindings to the WSDLDefinition.
+     *
+     * @param bindings
+     */
+    public void setBindings(Map bindings) {
+
+        // if(this.bindings.size() > 0) throw new WSDLProcessingException("WSDLBimding Map already contains " +
+        // "one or more bindings. Trying to assign a new map will loose those Bindings.");
+        this.bindings = bindings;
+    }
+
+    /**
+     * The WSDLBinding Will be added to the map keyed  with its own QName.
+     * If the WSDLBinding is null it will not be added.
+     * If the WSDLBinding is not null and  Binding name is null then
+     * WSDLProcessingException will be thrown
+     *
+     * @param binding <code>WSDLBinding</code> Object
+     */
+    public void addBinding(WSDLBinding binding) {
+        if (null == binding) {
+            return;
+        }
+        if (null == binding.getName()) {
+            throw new WSDLProcessingException(
+                    "The WSDLBinding name cannot be null(Required)");
+        }
+        this.bindings.put(binding.getName(), binding);
+    }
+
+    /**
+     * Retrives the <code>WSDLBinding</code> by its QName. Wil return null
+     * if <code>WSDLBinding</code> is not found.
+     *
+     * @param qName The QName of the Binding.
+     * @return
+     */
+    public WSDLBinding getBinding(QName qName) {
+        return (WSDLBinding) this.bindings.get(qName);
+    }
+
+    /**
+     * The Interface component will be added to the map keyed with its own name.
+     * If the Interface is null it will not be added.
+     * If the interface name is null an WSDLProcessingException will be thrown
+     *
+     * @param interfaceComponent
+     */
+    public void addInterface(WSDLInterface interfaceComponent) {
+        if (null == interfaceComponent) {
+            return;
+        }
+        if (null == interfaceComponent.getName()) {
+            throw new WSDLProcessingException(
+                    "PortType/Interface name cannot be null(Required) ");
+        }
+        this.wsdlInterfaces.put(interfaceComponent.getName(),
+                interfaceComponent);
+    }
+
+    /**
+     * The Interface Component will be returned if it exsists,
+     * otherwise null will be returned.
+     *
+     * @param qName qName of the Interface.
+     * @return The Interface Component with the relavent QName
+     */
+    public WSDLInterface getInterface(QName qName) {
+        return (WSDLInterface) this.wsdlInterfaces.get(qName);
+    }
+
+    /**
+     * Method getServices
+     *
+     * @return
+     */
+    public Map getServices() {
+        return services;
+    }
+
+    /**
+     * Method setServices
+     *
+     * @param services
+     */
+    public void setServices(Map services) {
+        this.services = services;
+    }
+
+    /**
+     * Will return the <code>WSDLService </code> if found otherwise return null.
+     *
+     * @param qName <code>QName</code> of the Service
+     * @return The Service with the relavent QName
+     */
+    public WSDLService getService(QName qName) {
+        return (WSDLService) this.services.get(qName);
+    }
+
+    /**
+     * Will add the <code>WSDLService</code> to the Map.
+     * If object is null it will not be added.
+     * If the <code>WSDLService</code> name is null a <code>WSDLProcessingException</code>
+     * will be thrown.(its required)
+     *
+     * @param service
+     */
+    public void addService(WSDLService service) {
+        if (null == service) {
+            return;
+        }
+        if (null == service.getName()) {
+            throw new WSDLProcessingException(
+                    "The WSDLService name cannot be null (Required)");
+        }
+        this.services.put(service.getName(), service);
+    }
+
+    /**
+     * Method getTargetNameSpace
+     *
+     * @return
+     */
+    public String getTargetNameSpace() {
+        return targetNameSpace;
+    }
+
+    /**
+     * Method setTargetNameSpace
+     *
+     * @param targetNameSpace
+     */
+    public void setTargetNameSpace(String targetNameSpace) {
+        this.targetNameSpace = targetNameSpace;
+    }
+
+    /**
+     * Method getWsdlInterfaces
+     *
+     * @return
+     */
+    public Map getWsdlInterfaces() {
+        return wsdlInterfaces;
+    }
+
+    /**
+     * Method setWsdlInterfaces
+     *
+     * @param wsdlInterfaces
+     */
+    public void setWsdlInterfaces(Map wsdlInterfaces) {
+        this.wsdlInterfaces = wsdlInterfaces;
+    }
+
+    /**
+     * Method getTypes
+     *
+     * @return
+     */
+    public WSDLTypes getTypes() {
+        return types;
+    }
+
+    /**
+     * Method setTypes
+     *
+     * @param types
+     */
+    public void setTypes(WSDLTypes types) {
+        this.types = types;
+    }
+
+    /**
+     * Gets the name attribute of the WSDL 1.1 Definitions Element
+     *
+     * @return
+     */
+    public QName getWSDL1DefinitionName() {
+        return wsdl1DefinitionName;
+    }
+
+    /**
+     * Sets the name attribute of the WSDL 1.1 Definitions Element
+     *
+     * @param wsdl1DefinitionName
+     */
+    public void setWSDL1DefinitionName(QName wsdl1DefinitionName) {
+        this.wsdl1DefinitionName = wsdl1DefinitionName;
+    }
+
+    /**
+     * Will return all the Namespaces associated with the Definition
+     * Component and will be keyed by the Napespace Prefix.
+     *
+     * @return
+     */
+    public Map getNamespaces() {
+        return namespaces;
+    }
+
+    /**
+     * Sets the Namespaces associated with the Difinition Component
+     * and they should be keyed by its Namespace Prefix.
+     *
+     * @param namespaces
+     */
+    public void setNamespaces(Map namespaces) {
+        this.namespaces = namespaces;
+    }
+
+    /**
+     * Will return the Namespace URI as a String if there exists an
+     * Namespace URI associated with the given prefix, in the Definition
+     * Component, Will return null if not found.
+     *
+     * @param prefix Prefix defined in the Definitions elemet in the WSDL file
+     * @return The Namespace URI for the prefix.
+     */
+    public String getNamespace(String prefix) {
+        if (null == prefix) {
+            return null;
+        }
+        return (String) this.namespaces.get(prefix);
+    }
+
+    /**
+     * Returns the WSDL Imports in an <code>ArrayList</code>
+     *
+     * @return
+     */
+    public ArrayList getImports() {
+        return imports;
+    }
+
+    /**
+     * Sets the imports as an <code>ArrayList</code>
+     *
+     * @param imports
+     */
+    public void setImports(ArrayList imports) {
+        this.imports = imports;
+    }
+
+    /**
+     * Adds an import to the list.
+     *
+     * @param wsdlImport
+     */
+    public void addImports(WSDLImport wsdlImport) {
+        this.imports.add(wsdlImport);
+    }
+
+    /**
+     * Returns the Includes as an <code>ArrayList</code>
+     *
+     * @return
+     */
+    public ArrayList getIncludes() {
+        return includes;
+    }
+
+    /**
+     * Sets the includes as an <code>Arraylist</code>
+     *
+     * @param includes
+     */
+    public void setIncludes(ArrayList includes) {
+        this.includes = includes;
+    }
+
+    /**
+     * Adds the WSDL Include to the list.
+     *
+     * @param wsdlInclude
+     */
+    public void addInclude(WSDLInclude wsdlInclude) {
+        this.includes.add(wsdlInclude);
+    }
+
+    /**
+     * @return A new instance of type <code>WSDLDescription</code>
+     */
+    public WSDLDescription createDescription() {
+        return new WSDLDescriptionImpl();
+    }
+
+    /**
+     * @return A new instance of type <code>WSDLService</code>
+     */
+    public WSDLService createService() {
+        return new WSDLServiceImpl();
+    }
+
+    /**
+     * @return A new instance of type <code>WSDLInterface</code>
+     */
+    public WSDLInterface createInterface() {
+        return new WSDLInterfaceImpl();
+    }
+
+    /**
+     * @return A new instance of type <code>WSDLTypes</code>
+     */
+    public WSDLTypes createTypes() {
+        return new WSDLTypesImpl();
+    }
+
+    /**
+     * @return A new instance of type <code>WSDLBinding</code>
+     */
+    public WSDLBinding createBinding() {
+        return new WSDLBindingImpl();
+    }
+
+    /**
+     * @return A new instance of type <code>WSDLOperation</code>
+     */
+    public WSDLOperation createOperation() {
+        return new WSDLOperationImpl();
+    }
+
+    /**
+     * @return A new instance of type <code>WSDLEndpoint</code>
+     */
+    public WSDLEndpoint createEndpoint() {
+        return new WSDLEndpointImpl();
+    }
+
+
+    /**
+     * @return A new instance of type <code>WSDLFeature</code>
+     */
+    public WSDLFeature createFeature() {
+        return new WSDLFeatureImpl();
+    }
+
+    /**
+     * @return A new instance of type <code>WSDLImport</code>
+     */
+    public WSDLImport createImport() {
+        return new WSDLImportImpl();
+    }
+
+    /**
+     * @return A new instance of type <code>WSDLInclude</code>
+     */
+    public WSDLInclude createInclude() {
+        return new WSDLIncludeImpl();
+    }
+
+    /**
+     * Method createProperty
+     *
+     * @return
+     */
+    public WSDLProperty createProperty() {
+        return new WSDLPropertyImpl();
+    }
+
+    public MessageReference createMessageReference() {
+        return new MessageReferenceImpl();
+    }
+
+    public WSDLBindingMessageReference createWSDLBindingMessageReference() {
+        return new WSDLBindingMessageReferenceImpl();
+    }
+
+    public WSDLBindingOperation createWSDLBindingOperation() {
+        return new WSDLBindingOperationImpl();
+    }
+
+    /**
+     * @return A new Instance of <code>ExtensionFactory</code> that
+     *         is capable of creating the correct <code>ExtensibilityElement</code>
+     *         given a <code>QName</code>.
+     */
+    public ExtensionFactory createExtensionFactory() {
+        return new ExtensionFactoryImpl();
+    }
+
+
+    public WSDLBinding getFirstBinding() {
+        Iterator bindingIterator = this.bindings.values().iterator();
+        if (bindingIterator.hasNext()) {
+            return (WSDLBinding) bindingIterator.next();
+        }
+        return null;
+       // throw new WSDLProcessingException(
+       //       "No Binding Components are available");
+    }
+
+    public WSDLExtensibilityAttribute createWSDLExtensibilityAttribute() {
+        return new WSDLExtensibilityAttributeImpl();
+    }
+
+    public WSDLFaultReference createFaultReference() {
+        return new WSDLFaultReferenceImpl();
+    }
+
+    public WSDLBindingFault createBindingFault() {
+        return new WSDLBindingFaultImpl();
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLDescriptionImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLEndpointImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLEndpointImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLEndpointImpl.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLEndpointImpl.java Thu Sep 15 11:52:11 2005
@@ -1,72 +1,72 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.wsdl.impl;
-
-import org.apache.wsdl.WSDLBinding;
-import org.apache.wsdl.WSDLEndpoint;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author chathura@opensource.lk
- */
-public class WSDLEndpointImpl extends ComponentImpl implements WSDLEndpoint {
-    /**
-     * Field name
-     */
-    private QName name;
-
-    /**
-     * Field binding
-     */
-    private WSDLBinding binding;
-
-    /**
-     * Method getBinding
-     *
-     * @return
-     */
-    public WSDLBinding getBinding() {
-        return binding;
-    }
-
-    /**
-     * Method setBinding
-     *
-     * @param binding
-     */
-    public void setBinding(WSDLBinding binding) {
-        this.binding = binding;
-    }
-
-    /**
-     * Method getName
-     *
-     * @return
-     */
-    public QName getName() {
-        return name;
-    }
-
-    /**
-     * Method setName
-     *
-     * @param name
-     */
-    public void setName(QName name) {
-        this.name = name;
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.wsdl.impl;
+
+import org.apache.wsdl.WSDLBinding;
+import org.apache.wsdl.WSDLEndpoint;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLEndpointImpl extends ComponentImpl implements WSDLEndpoint {
+    /**
+     * Field name
+     */
+    private QName name;
+
+    /**
+     * Field binding
+     */
+    private WSDLBinding binding;
+
+    /**
+     * Method getBinding
+     *
+     * @return
+     */
+    public WSDLBinding getBinding() {
+        return binding;
+    }
+
+    /**
+     * Method setBinding
+     *
+     * @param binding
+     */
+    public void setBinding(WSDLBinding binding) {
+        this.binding = binding;
+    }
+
+    /**
+     * Method getName
+     *
+     * @return
+     */
+    public QName getName() {
+        return name;
+    }
+
+    /**
+     * Method setName
+     *
+     * @param name
+     */
+    public void setName(QName name) {
+        this.name = name;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLEndpointImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLExtensibilityAttributeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLExtensibilityAttributeImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLExtensibilityAttributeImpl.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLExtensibilityAttributeImpl.java Thu Sep 15 11:52:11 2005
@@ -1,53 +1,53 @@
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- * 
- * Licensed 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.wsdl.impl;
-
-import org.apache.wsdl.WSDLExtensibilityAttribute;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author chathura@opensource.lk
- */
-public class WSDLExtensibilityAttributeImpl implements WSDLExtensibilityAttribute {
-
-    private QName key;
-
-    private QName value;
-
-
-    public WSDLExtensibilityAttributeImpl() {
-
-    }
-
-    public QName getKey() {
-        return key;
-    }
-
-    public QName getValue() {
-        return value;
-    }
-
-
-    public void setKey(QName key) {
-        this.key = key;
-    }
-
-    public void setValue(QName value) {
-        this.value = value;
-    }
-}
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed 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.wsdl.impl;
+
+import org.apache.wsdl.WSDLExtensibilityAttribute;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLExtensibilityAttributeImpl implements WSDLExtensibilityAttribute {
+
+    private QName key;
+
+    private QName value;
+
+
+    public WSDLExtensibilityAttributeImpl() {
+
+    }
+
+    public QName getKey() {
+        return key;
+    }
+
+    public QName getValue() {
+        return value;
+    }
+
+
+    public void setKey(QName key) {
+        this.key = key;
+    }
+
+    public void setValue(QName value) {
+        this.value = value;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLExtensibilityAttributeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLExtensibilityElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLExtensibilityElementImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLExtensibilityElementImpl.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLExtensibilityElementImpl.java Thu Sep 15 11:52:11 2005
@@ -1,47 +1,47 @@
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- * 
- * Licensed 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.wsdl.impl;
-
-import org.apache.wsdl.WSDLExtensibilityElement;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author chathura@opensource.lk
- */
-public class WSDLExtensibilityElementImpl implements WSDLExtensibilityElement {
-
-    protected QName type;
-
-    protected boolean required;
-
-    public boolean isRequired() {
-        return required;
-    }
-
-    public void setRequired(boolean required) {
-        this.required = required;
-    }
-
-    public QName getType() {
-        return type;
-    }
-
-    public void setType(QName type) {
-        this.type = type;
-    }
-}
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed 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.wsdl.impl;
+
+import org.apache.wsdl.WSDLExtensibilityElement;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLExtensibilityElementImpl implements WSDLExtensibilityElement {
+
+    protected QName type;
+
+    protected boolean required;
+
+    public boolean isRequired() {
+        return required;
+    }
+
+    public void setRequired(boolean required) {
+        this.required = required;
+    }
+
+    public QName getType() {
+        return type;
+    }
+
+    public void setType(QName type) {
+        this.type = type;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLExtensibilityElementImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFaultReferenceImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFaultReferenceImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFaultReferenceImpl.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFaultReferenceImpl.java Thu Sep 15 11:52:11 2005
@@ -1,103 +1,103 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.wsdl.impl;
-
-import org.apache.wsdl.WSDLFaultReference;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author chathura@opensource.lk
- */
-public class WSDLFaultReferenceImpl extends ComponentImpl
-        implements WSDLFaultReference {
-
-
-    /**
-     * Field ref
-     */
-    private QName ref;
-
-
-    /**
-     * Field messageLabel
-     */
-    private String messageLabel;
-
-    /**
-     * Field direction In or Out
-     */
-    private String direction;
-
-
-    public WSDLFaultReferenceImpl() {
-
-    }
-
-    /**
-     * Returns the direction of the Fault according the MEP
-     *
-     * @return
-     */
-    public String getDirection() {
-        return direction;
-    }
-
-    /**
-     * Sets the direction of the Fault.
-     *
-     * @param direction
-     */
-    public void setDirection(String direction) {
-        this.direction = direction;
-    }
-
-    /**
-     * Method getMessageLabel
-     *
-     * @return
-     */
-    public String getMessageLabel() {
-        return messageLabel;
-    }
-
-    /**
-     * Method setMessageLabel
-     *
-     * @param messageLabel
-     */
-    public void setMessageLabel(String messageLabel) {
-        this.messageLabel = messageLabel;
-    }
-
-    /**
-     * Returns the Fault reference.
-     *
-     * @return
-     */
-    public QName getRef() {
-        return ref;
-    }
-
-    /**
-     * Sets the Fault reference.
-     *
-     * @param ref
-     */
-    public void setRef(QName ref) {
-        this.ref = ref;
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.wsdl.impl;
+
+import org.apache.wsdl.WSDLFaultReference;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLFaultReferenceImpl extends ComponentImpl
+        implements WSDLFaultReference {
+
+
+    /**
+     * Field ref
+     */
+    private QName ref;
+
+
+    /**
+     * Field messageLabel
+     */
+    private String messageLabel;
+
+    /**
+     * Field direction In or Out
+     */
+    private String direction;
+
+
+    public WSDLFaultReferenceImpl() {
+
+    }
+
+    /**
+     * Returns the direction of the Fault according the MEP
+     *
+     * @return
+     */
+    public String getDirection() {
+        return direction;
+    }
+
+    /**
+     * Sets the direction of the Fault.
+     *
+     * @param direction
+     */
+    public void setDirection(String direction) {
+        this.direction = direction;
+    }
+
+    /**
+     * Method getMessageLabel
+     *
+     * @return
+     */
+    public String getMessageLabel() {
+        return messageLabel;
+    }
+
+    /**
+     * Method setMessageLabel
+     *
+     * @param messageLabel
+     */
+    public void setMessageLabel(String messageLabel) {
+        this.messageLabel = messageLabel;
+    }
+
+    /**
+     * Returns the Fault reference.
+     *
+     * @return
+     */
+    public QName getRef() {
+        return ref;
+    }
+
+    /**
+     * Sets the Fault reference.
+     *
+     * @param ref
+     */
+    public void setRef(QName ref) {
+        this.ref = ref;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFaultReferenceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFeatureImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFeatureImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFeatureImpl.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFeatureImpl.java Thu Sep 15 11:52:11 2005
@@ -1,69 +1,69 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.wsdl.impl;
-
-import org.apache.wsdl.WSDLFeature;
-
-/**
- * @author chathura@opensource.lk
- */
-public class WSDLFeatureImpl extends ComponentImpl implements WSDLFeature {
-    /**
-     * Field name
-     */
-    private String name;
-
-    /**
-     * Field required
-     */
-    private boolean required;
-
-    /**
-     * Method getName
-     *
-     * @return
-     */
-    public String getName() {
-        return name;
-    }
-
-    /**
-     * Method setName
-     *
-     * @param name
-     */
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    /**
-     * Method isRequired
-     *
-     * @return
-     */
-    public boolean isRequired() {
-        return required;
-    }
-
-    /**
-     * Method setRequired
-     *
-     * @param required
-     */
-    public void setRequired(boolean required) {
-        this.required = required;
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.wsdl.impl;
+
+import org.apache.wsdl.WSDLFeature;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLFeatureImpl extends ComponentImpl implements WSDLFeature {
+    /**
+     * Field name
+     */
+    private String name;
+
+    /**
+     * Field required
+     */
+    private boolean required;
+
+    /**
+     * Method getName
+     *
+     * @return
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Method setName
+     *
+     * @param name
+     */
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    /**
+     * Method isRequired
+     *
+     * @return
+     */
+    public boolean isRequired() {
+        return required;
+    }
+
+    /**
+     * Method setRequired
+     *
+     * @param required
+     */
+    public void setRequired(boolean required) {
+        this.required = required;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFeatureImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLImportImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLImportImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLImportImpl.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLImportImpl.java Thu Sep 15 11:52:11 2005
@@ -1,69 +1,69 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.wsdl.impl;
-
-import org.apache.wsdl.WSDLImport;
-
-/**
- * @author chathura@opensource.lk
- */
-public class WSDLImportImpl extends ComponentImpl implements WSDLImport {
-    /**
-     * Field location
-     */
-    private String location;
-
-    /**
-     * Field namespace
-     */
-    private String namespace;
-
-    /**
-     * Gets the location URI of the Include.
-     *
-     * @return
-     */
-    public String getLocation() {
-        return location;
-    }
-
-    /**
-     * Sets the location URI of the Include.
-     *
-     * @param location
-     */
-    public void setLocation(String location) {
-        this.location = location;
-    }
-
-    /**
-     * Returns the namespace URI
-     *
-     * @return
-     */
-    public String getNamespace() {
-        return namespace;
-    }
-
-    /**
-     * Sets the namespace URI.
-     *
-     * @param namespace
-     */
-    public void setNamespace(String namespace) {
-        this.namespace = namespace;
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.wsdl.impl;
+
+import org.apache.wsdl.WSDLImport;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLImportImpl extends ComponentImpl implements WSDLImport {
+    /**
+     * Field location
+     */
+    private String location;
+
+    /**
+     * Field namespace
+     */
+    private String namespace;
+
+    /**
+     * Gets the location URI of the Include.
+     *
+     * @return
+     */
+    public String getLocation() {
+        return location;
+    }
+
+    /**
+     * Sets the location URI of the Include.
+     *
+     * @param location
+     */
+    public void setLocation(String location) {
+        this.location = location;
+    }
+
+    /**
+     * Returns the namespace URI
+     *
+     * @return
+     */
+    public String getNamespace() {
+        return namespace;
+    }
+
+    /**
+     * Sets the namespace URI.
+     *
+     * @param namespace
+     */
+    public void setNamespace(String namespace) {
+        this.namespace = namespace;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLImportImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLIncludeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLIncludeImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLIncludeImpl.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLIncludeImpl.java Thu Sep 15 11:52:11 2005
@@ -1,46 +1,46 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.wsdl.impl;
-
-import org.apache.wsdl.WSDLInclude;
-
-/**
- * @author chathura@opensource.lk
- */
-public class WSDLIncludeImpl extends ComponentImpl implements WSDLInclude {
-    /**
-     * URI of the include Location.
-     */
-    private String location;
-
-    /**
-     * Gets the location URI of the Include.
-     *
-     * @return
-     */
-    public String getLocation() {
-        return location;
-    }
-
-    /**
-     * Sets the location URI of the Include.
-     *
-     * @param location
-     */
-    public void setLocation(String location) {
-        this.location = location;
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.wsdl.impl;
+
+import org.apache.wsdl.WSDLInclude;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLIncludeImpl extends ComponentImpl implements WSDLInclude {
+    /**
+     * URI of the include Location.
+     */
+    private String location;
+
+    /**
+     * Gets the location URI of the Include.
+     *
+     * @return
+     */
+    public String getLocation() {
+        return location;
+    }
+
+    /**
+     * Sets the location URI of the Include.
+     *
+     * @param location
+     */
+    public void setLocation(String location) {
+        this.location = location;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLIncludeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceFaultImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceFaultImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceFaultImpl.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceFaultImpl.java Thu Sep 15 11:52:11 2005
@@ -1,52 +1,52 @@
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- * 
- * Licensed 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.wsdl.impl;
-
-import org.apache.wsdl.WSDLInterfaceFault;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author chathura@opensource.lk
- */
-public class WSDLInterfaceFaultImpl extends ComponentImpl implements WSDLInterfaceFault {
-
-    /**
-     * Consist of the NCName and the namespace as the target namespace of the
-     * Description Component.
-     */
-    private QName name;
-
-    private QName element;
-
-
-    public QName getElement() {
-        return element;
-    }
-
-    public void setElement(QName element) {
-        this.element = element;
-    }
-
-    public QName getName() {
-        return name;
-    }
-
-    public void setName(QName name) {
-        this.name = name;
-    }
-}
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed 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.wsdl.impl;
+
+import org.apache.wsdl.WSDLInterfaceFault;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLInterfaceFaultImpl extends ComponentImpl implements WSDLInterfaceFault {
+
+    /**
+     * Consist of the NCName and the namespace as the target namespace of the
+     * Description Component.
+     */
+    private QName name;
+
+    private QName element;
+
+
+    public QName getElement() {
+        return element;
+    }
+
+    public void setElement(QName element) {
+        this.element = element;
+    }
+
+    public QName getName() {
+        return name;
+    }
+
+    public void setName(QName name) {
+        this.name = name;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceFaultImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceImpl.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceImpl.java Thu Sep 15 11:52:11 2005
@@ -1,264 +1,264 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.wsdl.impl;
-
-import org.apache.wsdl.WSDLInterface;
-import org.apache.wsdl.WSDLOperation;
-
-import javax.xml.namespace.QName;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-/**
- * @author Chathura Herath
- */
-public class WSDLInterfaceImpl extends ExtensibleComponentImpl
-        implements WSDLInterface {
-    /**
-     * Field name
-     */
-    private QName name;
-
-    /**
-     * Field superInterfaces
-     */
-    private HashMap superInterfaces = new HashMap();
-
-    /**
-     * Field faults
-     */
-    private List faults = new LinkedList();
-
-    /**
-     * Field operations
-     */
-    private HashMap operations = new HashMap();
-
-    /**
-     * Field styleDefault
-     */
-    private String styleDefault;
-
-    /**
-     * Method getDefinedOperations
-     *
-     * @return
-     */
-    public HashMap getDefinedOperations() {
-        return this.operations;
-    }
-
-    /**
-     * Will return a map of all this <code>WSDLOperation</code>s that
-     * are defined and inherited from super interfaces.
-     *
-     * @return
-     */
-    public HashMap getAllOperations() {
-        HashMap all = this.operations;
-        if (this.superInterfaces.size() == 0) {
-            return all;
-        } else {
-            Iterator superIterator =
-                    this.superInterfaces.values().iterator();
-            Iterator operationIterator;
-            WSDLInterface superInterface;
-            WSDLOperation superInterfaceOperation;
-            Iterator thisIterator = all.values().iterator();
-            WSDLOperation thisOperation;
-            boolean tobeAdded = false;
-            while (superIterator.hasNext()) {
-                superInterface = (WSDLInterface) superIterator.next();
-                operationIterator =
-                        superInterface.getAllOperations().values().iterator();
-                while (operationIterator.hasNext()) {
-                    superInterfaceOperation =
-                            (WSDLOperation) operationIterator.next();
-                    tobeAdded = true;
-                    while (thisIterator.hasNext()) {
-                        thisOperation = (WSDLOperation) thisIterator.next();
-                        if ((thisOperation.getName() ==
-                                superInterfaceOperation.getName())
-                                && !tobeAdded) {
-                            if (thisOperation.getTargetnamespace().equals(
-                                    superInterfaceOperation.getTargetnamespace())) {
-
-                                // Both are the same Operation; the one inherited and
-                                // the one that is already in the map(may or maynot be inherited)
-                                tobeAdded = false;
-                            } else {
-
-                                // same name but target namespces dont match
-                                // TODO Think this is an error
-                                throw new WSDLProcessingException(
-                                        "The Interface " + this.getName()
-                                        +
-                                        " has more than one Operation that has the same name but not the same interface ");
-                            }
-                        }
-                    }
-                    if (tobeAdded) {
-
-                        // This one is not in the list already developped
-                        all.put(
-                                superInterfaceOperation.getName().getLocalPart(),
-                                superInterfaceOperation);
-                    }
-                }
-            }
-            return all;
-        }
-    }
-
-    /**
-     * @return
-     */
-    public List getFaults() {
-        return faults;
-    }
-
-    /**
-     * @return
-     */
-    public QName getName() {
-        return name;
-    }
-
-    /**
-     * @return
-     */
-    public HashMap getOperations() {
-        return operations;
-    }
-
-    /**
-     * Retruns the <code>WSDLOperation</code>
-     *
-     * @param nCName
-     * @return
-     */
-    public WSDLOperation getOperation(String nCName) {
-        return (WSDLOperation) this.operations.get(nCName);
-
-    }
-
-    /**
-     * @return
-     */
-    public HashMap getSuperInterfaces() {
-        return superInterfaces;
-    }
-
-    /**
-     * Method getSuperInterface
-     *
-     * @param qName
-     * @return
-     */
-    public WSDLInterface getSuperInterface(QName qName) {
-        return (WSDLInterface) this.superInterfaces.get(qName);
-    }
-
-    /**
-     * The Targetnamespace is that of the namespace URI of the QName of
-     * this component.
-     *
-     * @return URI as a String if the name is set otherwise will return null.
-     */
-    public String getTargetnamespace() {
-        if (null == this.name) {
-            return null;
-        }
-        return this.name.getNamespaceURI();
-    }
-
-    /**
-     * @param list
-     */
-    public void setFaults(List list) {
-        faults = list;
-    }
-
-    /**
-     * @param qName
-     */
-    public void setName(QName qName) {
-        name = qName;
-    }
-
-    /**
-     * @param list
-     */
-    public void setOperations(HashMap list) {
-        operations = list;
-    }
-
-    /**
-     * The operation is added by its ncname. If operation is null
-     * it will not be added. If the Operation name is null a
-     * <code>WSDLProcessingException</code> will be thrown.
-     *
-     * @param operation
-     */
-    public void setOperation(WSDLOperation operation) {
-        if (null == operation) {
-            return;
-        }
-        if (null == operation.getName()) {
-            throw new WSDLProcessingException(
-                    "The Operation name cannot be null (required)");
-        }
-        this.operations.put(operation.getName().getLocalPart(), operation);
-    }
-
-    /**
-     * @param list
-     */
-    public void setSuperInterfaces(HashMap list) {
-        superInterfaces = list;
-    }
-
-    /**
-     * The Inteface will be added to the list of super interfaces keyed with
-     * the QName.
-     *
-     * @param interfaceComponent WSDLInterface Object
-     */
-    public void addSuperInterface(WSDLInterface interfaceComponent) {
-        this.superInterfaces.put(interfaceComponent.getName(),
-                interfaceComponent);
-    }
-
-    /**
-     * Will return the StyleDefault if exist , otherwise will return null
-     *
-     * @return
-     */
-    public String getStyleDefault() {
-        return styleDefault;
-    }
-
-    /**
-     * Method setStyleDefault
-     *
-     * @param styleDefault
-     */
-    public void setStyleDefault(String styleDefault) {
-        this.styleDefault = styleDefault;
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.wsdl.impl;
+
+import org.apache.wsdl.WSDLInterface;
+import org.apache.wsdl.WSDLOperation;
+
+import javax.xml.namespace.QName;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+/**
+ * @author Chathura Herath
+ */
+public class WSDLInterfaceImpl extends ExtensibleComponentImpl
+        implements WSDLInterface {
+    /**
+     * Field name
+     */
+    private QName name;
+
+    /**
+     * Field superInterfaces
+     */
+    private HashMap superInterfaces = new HashMap();
+
+    /**
+     * Field faults
+     */
+    private List faults = new LinkedList();
+
+    /**
+     * Field operations
+     */
+    private HashMap operations = new HashMap();
+
+    /**
+     * Field styleDefault
+     */
+    private String styleDefault;
+
+    /**
+     * Method getDefinedOperations
+     *
+     * @return
+     */
+    public HashMap getDefinedOperations() {
+        return this.operations;
+    }
+
+    /**
+     * Will return a map of all this <code>WSDLOperation</code>s that
+     * are defined and inherited from super interfaces.
+     *
+     * @return
+     */
+    public HashMap getAllOperations() {
+        HashMap all = this.operations;
+        if (this.superInterfaces.size() == 0) {
+            return all;
+        } else {
+            Iterator superIterator =
+                    this.superInterfaces.values().iterator();
+            Iterator operationIterator;
+            WSDLInterface superInterface;
+            WSDLOperation superInterfaceOperation;
+            Iterator thisIterator = all.values().iterator();
+            WSDLOperation thisOperation;
+            boolean tobeAdded = false;
+            while (superIterator.hasNext()) {
+                superInterface = (WSDLInterface) superIterator.next();
+                operationIterator =
+                        superInterface.getAllOperations().values().iterator();
+                while (operationIterator.hasNext()) {
+                    superInterfaceOperation =
+                            (WSDLOperation) operationIterator.next();
+                    tobeAdded = true;
+                    while (thisIterator.hasNext()) {
+                        thisOperation = (WSDLOperation) thisIterator.next();
+                        if ((thisOperation.getName() ==
+                                superInterfaceOperation.getName())
+                                && !tobeAdded) {
+                            if (thisOperation.getTargetnamespace().equals(
+                                    superInterfaceOperation.getTargetnamespace())) {
+
+                                // Both are the same Operation; the one inherited and
+                                // the one that is already in the map(may or maynot be inherited)
+                                tobeAdded = false;
+                            } else {
+
+                                // same name but target namespces dont match
+                                // TODO Think this is an error
+                                throw new WSDLProcessingException(
+                                        "The Interface " + this.getName()
+                                        +
+                                        " has more than one Operation that has the same name but not the same interface ");
+                            }
+                        }
+                    }
+                    if (tobeAdded) {
+
+                        // This one is not in the list already developped
+                        all.put(
+                                superInterfaceOperation.getName().getLocalPart(),
+                                superInterfaceOperation);
+                    }
+                }
+            }
+            return all;
+        }
+    }
+
+    /**
+     * @return
+     */
+    public List getFaults() {
+        return faults;
+    }
+
+    /**
+     * @return
+     */
+    public QName getName() {
+        return name;
+    }
+
+    /**
+     * @return
+     */
+    public HashMap getOperations() {
+        return operations;
+    }
+
+    /**
+     * Retruns the <code>WSDLOperation</code>
+     *
+     * @param nCName
+     * @return
+     */
+    public WSDLOperation getOperation(String nCName) {
+        return (WSDLOperation) this.operations.get(nCName);
+
+    }
+
+    /**
+     * @return
+     */
+    public HashMap getSuperInterfaces() {
+        return superInterfaces;
+    }
+
+    /**
+     * Method getSuperInterface
+     *
+     * @param qName
+     * @return
+     */
+    public WSDLInterface getSuperInterface(QName qName) {
+        return (WSDLInterface) this.superInterfaces.get(qName);
+    }
+
+    /**
+     * The Targetnamespace is that of the namespace URI of the QName of
+     * this component.
+     *
+     * @return URI as a String if the name is set otherwise will return null.
+     */
+    public String getTargetnamespace() {
+        if (null == this.name) {
+            return null;
+        }
+        return this.name.getNamespaceURI();
+    }
+
+    /**
+     * @param list
+     */
+    public void setFaults(List list) {
+        faults = list;
+    }
+
+    /**
+     * @param qName
+     */
+    public void setName(QName qName) {
+        name = qName;
+    }
+
+    /**
+     * @param list
+     */
+    public void setOperations(HashMap list) {
+        operations = list;
+    }
+
+    /**
+     * The operation is added by its ncname. If operation is null
+     * it will not be added. If the Operation name is null a
+     * <code>WSDLProcessingException</code> will be thrown.
+     *
+     * @param operation
+     */
+    public void setOperation(WSDLOperation operation) {
+        if (null == operation) {
+            return;
+        }
+        if (null == operation.getName()) {
+            throw new WSDLProcessingException(
+                    "The Operation name cannot be null (required)");
+        }
+        this.operations.put(operation.getName().getLocalPart(), operation);
+    }
+
+    /**
+     * @param list
+     */
+    public void setSuperInterfaces(HashMap list) {
+        superInterfaces = list;
+    }
+
+    /**
+     * The Inteface will be added to the list of super interfaces keyed with
+     * the QName.
+     *
+     * @param interfaceComponent WSDLInterface Object
+     */
+    public void addSuperInterface(WSDLInterface interfaceComponent) {
+        this.superInterfaces.put(interfaceComponent.getName(),
+                interfaceComponent);
+    }
+
+    /**
+     * Will return the StyleDefault if exist , otherwise will return null
+     *
+     * @return
+     */
+    public String getStyleDefault() {
+        return styleDefault;
+    }
+
+    /**
+     * Method setStyleDefault
+     *
+     * @param styleDefault
+     */
+    public void setStyleDefault(String styleDefault) {
+        this.styleDefault = styleDefault;
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native