You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/02/20 04:37:47 UTC

svn commit: r154471 [2/3] - in webservices/axis/trunk/java/modules/wsdl/src: java/org/apache/axis/wsdl/wsdltowom/ java/org/apache/wsdl/ java/org/apache/wsdl/impl/ java/org/apache/wsdl/util/ test-resources/wsdl/ test/org/apache/wsdl/

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLService.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLService.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLService.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLService.java Sat Feb 19 19:37:38 2005
@@ -1,35 +1,45 @@
 /*
  * 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;
 
 import javax.xml.namespace.QName;
 import java.util.HashMap;
 
-
 /**
  * @author chathura@opensource.lk
  */
 public interface WSDLService extends Component {
+    /**
+     * Method getEndpoints
+     *
+     * @return
+     */
     public HashMap getEndpoints();
 
+    /**
+     * Method setEndpoints
+     *
+     * @param endpoints
+     */
     public void setEndpoints(HashMap endpoints);
 
     /**
      * Will add a WSDLEndpoint object to the WOM keyed with qname;
+     *
+     * @param endpoint
      */
     public void setEndpoint(WSDLEndpoint endpoint);
 
@@ -41,8 +51,18 @@
      */
     public WSDLService getEndpoint(QName qName);
 
+    /**
+     * Method getName
+     *
+     * @return
+     */
     public QName getName();
 
+    /**
+     * Method setName
+     *
+     * @param name
+     */
     public void setName(QName name);
 
     /**
@@ -53,7 +73,17 @@
      */
     public String getNamespace();
 
+    /**
+     * Method getServiceInterface
+     *
+     * @return
+     */
     public WSDLInterface getServiceInterface();
 
+    /**
+     * Method setServiceInterface
+     *
+     * @param serviceInterface
+     */
     public void setServiceInterface(WSDLInterface serviceInterface);
-}
\ No newline at end of file
+}

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLTypes.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLTypes.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLTypes.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLTypes.java Sat Feb 19 19:37:38 2005
@@ -1,25 +1,23 @@
 /*
  * 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;
 
 import javax.xml.namespace.QName;
 import java.util.HashMap;
 
-
 /**
  * @author chathura@opensource.lk
  */
@@ -39,7 +37,7 @@
     public void setTypes(HashMap types);
 
     /**
-     * Adds the <code>ExtensionElement</code> to the map keyed with the <code>QName</code>     *
+     * Adds the <code>ExtensionElement</code> to the map keyed with the <code>QName</code>
      *
      * @param qName
      * @param element
@@ -54,4 +52,4 @@
      * @return
      */
     public ExtensionElement getElement(QName qName);
-}
\ No newline at end of file
+}

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ComponentImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ComponentImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ComponentImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ComponentImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.Component;
@@ -22,14 +21,18 @@
 
 import java.util.HashMap;
 
-
 /**
  * @author Chathura Herath
  */
 public class ComponentImpl implements WSDLConstants, Component {
-
+    /**
+     * Field componentProperties
+     */
     protected HashMap componentProperties = new HashMap();
 
+    /**
+     * Field documentation
+     */
     protected Document documentation = null;
 
     /**
@@ -53,6 +56,8 @@
 
     /**
      * Returns the properties that are specific to this WSDL Component.
+     *
+     * @return
      */
     public HashMap getComponentProperties() {
         return componentProperties;
@@ -60,6 +65,8 @@
 
     /**
      * Sets the properties of the Component if any.
+     *
+     * @param properties
      */
     public void setComponentProperties(HashMap properties) {
         this.componentProperties = properties;
@@ -84,5 +91,4 @@
     public Object getComponentProperty(Object key) {
         return this.componentProperties.get(key);
     }
-
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.ExtensibleComponent;
@@ -26,26 +25,32 @@
 /**
  * @author chathura@opensource.lk
  */
-public class ExtensibleComponentImpl extends ComponentImpl implements ExtensibleComponent {
-
-
+public class ExtensibleComponentImpl extends ComponentImpl
+        implements ExtensibleComponent {
+    /**
+     * Field features
+     */
     private List features = null;
 
+    /**
+     * Field properties
+     */
     private List properties = null;
 
     /**
      * Will add a <code>WSDLFeature</code> to the feature list.
      * If feature is null it will not be added.
-     * <p/>
      * <code>ExtensibleComponent</code>
      *
      * @param feature
      */
     public void addFeature(WSDLFeature feature) {
-        if (null == this.features) this.features = new LinkedList();
-
-        if (null == feature) return;
-
+        if (null == this.features) {
+            this.features = new LinkedList();
+        }
+        if (null == feature) {
+            return;
+        }
         this.features.add(feature);
     }
 
@@ -56,7 +61,9 @@
      * @return
      */
     public List getFeatures() {
-        if (null == this.features) return new LinkedList();
+        if (null == this.features) {
+            return new LinkedList();
+        }
         return this.features;
     }
 
@@ -66,13 +73,14 @@
      *
      * @param wsdlProperty
      */
-    public void addPorperty(WSDLProperty wsdlProperty) {
-        if (null == this.properties) this.properties = new LinkedList();
-
-        if (null == wsdlProperty) return;
-
+    public void addProperty(WSDLProperty wsdlProperty) {
+        if (null == this.properties) {
+            this.properties = new LinkedList();
+        }
+        if (null == wsdlProperty) {
+            return;
+        }
         this.features.add(wsdlProperty);
-
     }
 
     /**
@@ -81,10 +89,9 @@
      * @return
      */
     public List getProperties() {
-
-        if (null == this.properties) return new LinkedList();
-
+        if (null == this.properties) {
+            return new LinkedList();
+        }
         return this.properties;
     }
-
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.ExtensionElement;
@@ -23,24 +22,48 @@
  * @author chathura@opensource.lk
  */
 public class ExtensionElementImpl implements ExtensionElement {
-
+    /**
+     * Field element
+     */
     private Element element;
 
+    /**
+     * Field required
+     */
     private boolean required;
 
-
+    /**
+     * Method isRequired
+     *
+     * @return
+     */
     public boolean isRequired() {
         return required;
     }
 
+    /**
+     * Method setRequired
+     *
+     * @param required
+     */
     public void setRequired(boolean required) {
         this.required = required;
     }
 
+    /**
+     * Method getElement
+     *
+     * @return
+     */
     public Element getElement() {
         return element;
     }
 
+    /**
+     * Method setElement
+     *
+     * @param element
+     */
     public void setElement(Element element) {
         this.element = element;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.FaultReference;
@@ -21,14 +20,26 @@
 /**
  * @author chathura@opensource.lk
  */
-public class FaultReferenceImpl extends ComponentImpl implements FaultReference {
+public class FaultReferenceImpl extends ComponentImpl
+        implements FaultReference {
 
-    //TODO make it  a QNAME
+    // TODO make it  a QNAME
+
+    /**
+     * Field ref
+     */
     private String ref;
 
-    //TODO put the value if available ; if not message lable property of the message with same direction of the interface component.
+    // TODO put the value if available ; if not message lable property of the message with same direction of the interface component.
+
+    /**
+     * Field messageLabel
+     */
     private String messageLabel;
 
+    /**
+     * Field direction
+     */
     private String direction;
 
     /**
@@ -49,10 +60,20 @@
         this.direction = direction;
     }
 
+    /**
+     * Method getMessageLabel
+     *
+     * @return
+     */
     public String getMessageLabel() {
         return messageLabel;
     }
 
+    /**
+     * Method setMessageLabel
+     *
+     * @param messageLabel
+     */
     public void setMessageLabel(String messageLabel) {
         this.messageLabel = messageLabel;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java Sat Feb 19 19:37:38 2005
@@ -1,49 +1,65 @@
 /*
  * 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.MessageReference;
 
 import javax.xml.namespace.QName;
 
-
 /**
  * @author Chathura Herath
  */
-public class MessageReferenceImpl extends ExtensibleComponentImpl implements MessageReference {
+public class MessageReferenceImpl extends ExtensibleComponentImpl
+        implements MessageReference {
 
+    // Referes to the MEP the Message relates to.
 
-    //Referes to the MEP the Message relates to.
+    /**
+     * Field messageLabel
+     */
     private String messageLabel;
 
     // Can be "in" or "out" depending on the element name being "input" or "output" respectively;
-    private String Direction;
-
 
-    //TODO Do we need it "Message content model"
+    /**
+     * Field Direction
+     */
+    private String Direction;
 
+    // TODO Do we need it "Message content model"
 
+    /**
+     * Field element
+     */
     private QName element;
 
-
+    /**
+     * Method getDirection
+     *
+     * @return
+     */
     public String getDirection() {
         return Direction;
     }
 
+    /**
+     * Method setDirection
+     *
+     * @param direction
+     */
     public void setDirection(String direction) {
         Direction = direction;
     }
@@ -51,24 +67,37 @@
     /**
      * Returns an Element which refers to the actual message that will get transported. This Element
      * Abstracts all the Message Parts that was defined in the WSDL 1.1.
+     *
+     * @return
      */
     public QName getElement() {
         return element;
     }
 
-
     /**
      * Sets the Element that will Abstract the actual message. All the parts defined in WSDL 1.1
      * per message should be Encapsulated in this Element.
+     *
+     * @param element
      */
     public void setElement(QName element) {
         this.element = element;
     }
 
+    /**
+     * Method getMessageLabel
+     *
+     * @return
+     */
     public String getMessageLabel() {
         return messageLabel;
     }
 
+    /**
+     * Method setMessageLabel
+     *
+     * @param messageLabel
+     */
     public void setMessageLabel(String messageLabel) {
         this.messageLabel = messageLabel;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.WSDLProperty;
@@ -22,37 +21,75 @@
  * @author chathura@opensource.lk
  */
 public class WDSLPropertyImpl extends ComponentImpl implements WSDLProperty {
-
-
+    /**
+     * Field uri
+     */
     private String uri;
 
-    //TODO replace with the  data binding object structure
+    // TODO replace with the  data binding object structure
+
+    /**
+     * Field constraint
+     */
     private Object constraint;
 
-    //TODO replace with the  data binding object structure
-    private Object value;
+    // TODO replace with the  data binding object structure
 
+    /**
+     * Field value
+     */
+    private Object value;
 
+    /**
+     * Method getConstraint
+     *
+     * @return
+     */
     public Object getConstraint() {
         return constraint;
     }
 
+    /**
+     * Method setConstraint
+     *
+     * @param constraint
+     */
     public void setConstraint(Object constraint) {
         this.constraint = constraint;
     }
 
+    /**
+     * Method getName
+     *
+     * @return
+     */
     public String getName() {
         return uri;
     }
 
+    /**
+     * Method setName
+     *
+     * @param uri
+     */
     public void setName(String uri) {
         this.uri = uri;
     }
 
+    /**
+     * Method getValue
+     *
+     * @return
+     */
     public Object getValue() {
         return value;
     }
 
+    /**
+     * Method setValue
+     *
+     * @param value
+     */
     public void setValue(Object value) {
         this.value = value;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingFaultImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingFaultImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingFaultImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingFaultImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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;
@@ -23,15 +22,27 @@
 /**
  * @author chathura@opensource.lk
  */
-public class WSDLBindingFaultImpl extends ExtensibleComponentImpl implements WSDLBindingFault {
-
+public class WSDLBindingFaultImpl extends ExtensibleComponentImpl
+        implements WSDLBindingFault {
+    /**
+     * Field ref
+     */
     private QName ref;
 
-
+    /**
+     * Method getRef
+     *
+     * @return
+     */
     public QName getRef() {
         return ref;
     }
 
+    /**
+     * Method setRef
+     *
+     * @param ref
+     */
     public void setRef(QName ref) {
         this.ref = ref;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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;
@@ -27,70 +26,149 @@
 /**
  * @author chathura@opensource.lk
  */
-public class WSDLBindingImpl extends ExtensibleComponentImpl implements WSDLBinding {
-
+public class WSDLBindingImpl extends ExtensibleComponentImpl
+        implements WSDLBinding {
+    /**
+     * Field name
+     */
     private QName name;
 
+    /**
+     * Field boundInterface
+     */
     private WSDLInterface boundInterface;
 
+    /**
+     * Field bindingFaults
+     */
     private HashMap bindingFaults = new HashMap();
 
+    /**
+     * Field bindingOperations
+     */
     private HashMap bindingOperations = new HashMap();
 
-
+    /**
+     * Method getBoundInterface
+     *
+     * @return
+     */
     public WSDLInterface getBoundInterface() {
         return boundInterface;
     }
 
+    /**
+     * Method setBoundInterface
+     *
+     * @param boundInterface
+     */
     public void setBoundInterface(WSDLInterface boundInterface) {
         this.boundInterface = boundInterface;
     }
 
+    /**
+     * Method getName
+     *
+     * @return
+     */
     public QName getName() {
         return name;
     }
 
+    /**
+     * Method setName
+     *
+     * @param name
+     */
     public void setName(QName name) {
         this.name = name;
     }
 
+    /**
+     * Method getTargetNameSpace
+     *
+     * @return
+     */
     public String getTargetNameSpace() {
         return this.name.getLocalPart();
     }
 
-
+    /**
+     * Method getBindingFaults
+     *
+     * @return
+     */
     public HashMap getBindingFaults() {
         return bindingFaults;
     }
 
+    /**
+     * Method setBindingFaults
+     *
+     * @param bindingFaults
+     */
     public void setBindingFaults(HashMap bindingFaults) {
         this.bindingFaults = bindingFaults;
     }
 
+    /**
+     * Method getBindingOperations
+     *
+     * @return
+     */
     public HashMap getBindingOperations() {
         return bindingOperations;
     }
 
+    /**
+     * Method setBindingOperations
+     *
+     * @param bindingOperations
+     */
     public void setBindingOperations(HashMap bindingOperations) {
         this.bindingOperations = bindingOperations;
     }
 
+    /**
+     * Method addBindingOperation
+     *
+     * @param bindingOperation
+     */
     public void addBindingOperation(WSDLBindingOperation bindingOperation) {
-        if (null != bindingOperation)
-            this.bindingOperations.put(bindingOperation.getName(), bindingOperation);
+        if (null != bindingOperation) {
+            this.bindingOperations.put(bindingOperation.getName(),
+                    bindingOperation);
+        }
     }
 
+    /**
+     * Method getBindingOperation
+     *
+     * @param qName
+     * @return
+     */
     public WSDLBindingOperation getBindingOperation(QName qName) {
         return (WSDLBindingOperation) this.bindingOperations.get(qName);
     }
 
+    /**
+     * Method addBindingFaults
+     *
+     * @param bindingFault
+     */
     public void addBindingFaults(WSDLBindingFault bindingFault) {
-        if (null != bindingFault)
+        if (null != bindingFault) {
             this.bindingFaults.put(bindingFault.getRef(), bindingFault);
+        }
     }
 
+    /**
+     * Method getBindingFault
+     *
+     * @param ref
+     * @return
+     */
     public WSDLBindingFault getBindingFault(QName ref) {
         return (WSDLBindingFault) this.bindingFaults.get(ref);
     }
-
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingMessageReferenceImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingMessageReferenceImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingMessageReferenceImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingMessageReferenceImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.WSDLBindingMessageReference;
@@ -21,28 +20,57 @@
 /**
  * @author chathura@opensource.lk
  */
-public class WSDLBindingMessageReferenceImpl extends ExtensibleComponentImpl implements WSDLBindingMessageReference {
+public class WSDLBindingMessageReferenceImpl extends ExtensibleComponentImpl
+        implements WSDLBindingMessageReference {
 
-    //  Referes to the MEP the Message relates to.
+    // Referes to the MEP the Message relates to.
+
+    /**
+     * Field messageLabel
+     */
     private String messageLabel;
 
     // Can be "in" or "out" depending on the element name being "input" or
     // "output" respectively;
+
+    /**
+     * Field Direction
+     */
     private String Direction;
 
+    /**
+     * Method getDirection
+     *
+     * @return
+     */
     public String getDirection() {
         return Direction;
     }
 
+    /**
+     * Method setDirection
+     *
+     * @param direction
+     */
     public void setDirection(String direction) {
         Direction = direction;
     }
 
+    /**
+     * Method getMessageLabel
+     *
+     * @return
+     */
     public String getMessageLabel() {
         return messageLabel;
     }
 
+    /**
+     * Method setMessageLabel
+     *
+     * @param messageLabel
+     */
     public void setMessageLabel(String messageLabel) {
         this.messageLabel = messageLabel;
     }
-}
\ No newline at end of file
+}

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingOperationImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingOperationImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingOperationImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingOperationImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.WSDLBindingMessageReference;
@@ -25,46 +24,96 @@
 /**
  * @author chathura@opensource.lk
  */
-public class WSDLBindingOperationImpl extends ExtensibleComponentImpl implements WSDLBindingOperation {
-
+public class WSDLBindingOperationImpl extends ExtensibleComponentImpl
+        implements WSDLBindingOperation {
+    /**
+     * Field name
+     */
     private QName name;
 
+    /**
+     * Field operation
+     */
     private WSDLOperation operation;
 
+    /**
+     * Field input
+     */
     private WSDLBindingMessageReference input;
 
+    /**
+     * Field output
+     */
     private WSDLBindingMessageReference output;
 
-
+    /**
+     * Method getInput
+     *
+     * @return
+     */
     public WSDLBindingMessageReference getInput() {
         return input;
     }
 
+    /**
+     * Method setInput
+     *
+     * @param input
+     */
     public void setInput(WSDLBindingMessageReference input) {
         this.input = input;
     }
 
+    /**
+     * Method getOperation
+     *
+     * @return
+     */
     public WSDLOperation getOperation() {
         return operation;
     }
 
+    /**
+     * Method setOperation
+     *
+     * @param operation
+     */
     public void setOperation(WSDLOperation operation) {
         this.operation = operation;
     }
 
+    /**
+     * Method getOutput
+     *
+     * @return
+     */
     public WSDLBindingMessageReference getOutput() {
         return output;
     }
 
+    /**
+     * Method setOutput
+     *
+     * @param output
+     */
     public void setOutput(WSDLBindingMessageReference output) {
         this.output = output;
     }
 
-
+    /**
+     * Method getName
+     *
+     * @return
+     */
     public QName getName() {
         return name;
     }
 
+    /**
+     * Method setName
+     *
+     * @param name
+     */
     public void setName(QName name) {
         this.name = name;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLDescriptionImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLDescriptionImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLDescriptionImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLDescriptionImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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;
@@ -33,28 +32,31 @@
 import java.util.ArrayList;
 import java.util.HashMap;
 
-
 /**
  * @author chathura@opensource.lk
  */
-public class WSDLDescriptionImpl extends ComponentImpl implements WSDLDescription {
-
+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 attrebute information items
+    // 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
 
-    //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.
+    // 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;
 
     /**
@@ -78,7 +80,6 @@
      */
     private ArrayList imports = new ArrayList();
 
-
     /**
      * WSDL Includes.
      */
@@ -93,22 +94,25 @@
     /**
      * Returns a Map of <code>WSDLBindings</code> Objects keyed by the <code>QName</code>
      * of the Binding.
+     *
+     * @return
      */
     public HashMap getBindings() {
         return bindings;
     }
 
-
     /**
      * Sets the whole new set of Bindings to the WSDLDefinition.
+     *
+     * @param bindings
      */
     public void setBindings(HashMap 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.");
+
+        // 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.
@@ -118,12 +122,13 @@
      * @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)");
-
+        if (null == binding) {
+            return;
+        }
+        if (null == binding.getName()) {
+            throw new WSDLProcessingException(
+                    "The WSDLBinding name cannot be null(Required)");
+        }
         this.bindings.put(binding.getName(), binding);
     }
 
@@ -132,12 +137,12 @@
      * 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.
@@ -146,14 +151,17 @@
      * @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);
+        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.
@@ -162,15 +170,23 @@
      * @return The Interface Component with the relavent QName
      */
     public WSDLInterface getInterface(QName qName) {
-
         return (WSDLInterface) this.wsdlInterfaces.get(qName);
     }
 
-
+    /**
+     * Method getServices
+     *
+     * @return
+     */
     public HashMap getServices() {
         return services;
     }
 
+    /**
+     * Method setServices
+     *
+     * @param services
+     */
     public void setServices(HashMap services) {
         this.services = services;
     }
@@ -183,10 +199,8 @@
      */
     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.
@@ -196,39 +210,72 @@
      * @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)");
-
+        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 HashMap getWsdlInterfaces() {
         return wsdlInterfaces;
     }
 
+    /**
+     * Method setWsdlInterfaces
+     *
+     * @param wsdlInterfaces
+     */
     public void setWsdlInterfaces(HashMap 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 attrebute of the WSDL 1.1 Definitions Element
+     * Gets the name attribute of the WSDL 1.1 Definitions Element
      *
      * @return
      */
@@ -237,7 +284,7 @@
     }
 
     /**
-     * Sets the name attrebute of the WSDL 1.1 Definitions Element
+     * Sets the name attribute of the WSDL 1.1 Definitions Element
      *
      * @param wsdl1DefinitionName
      */
@@ -265,7 +312,6 @@
         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
@@ -278,7 +324,6 @@
         if (null == prefix) {
             return null;
         }
-
         return (String) this.namespaces.get(prefix);
     }
 
@@ -340,7 +385,6 @@
      * @return A new instance of type <code>WSDLDescription</code>
      */
     public WSDLDescription createDescription() {
-
         return new WSDLDescriptionImpl();
     }
 
@@ -348,7 +392,6 @@
      * @return A new instance of type <code>WSDLService</code>
      */
     public WSDLService createService() {
-
         return new WSDLServiceImpl();
     }
 
@@ -356,7 +399,6 @@
      * @return A new instance of type <code>WSDLInterface</code>
      */
     public WSDLInterface createInterface() {
-
         return new WSDLInterfaceImpl();
     }
 
@@ -364,7 +406,6 @@
      * @return A new instance of type <code>WSDLTypes</code>
      */
     public WSDLTypes createTypes() {
-
         return new WSDLTypesImpl();
     }
 
@@ -372,7 +413,6 @@
      * @return A new instance of type <code>WSDLBinding</code>
      */
     public WSDLBinding createBinding() {
-
         return new WSDLBindingImpl();
     }
 
@@ -380,7 +420,6 @@
      * @return A new instance of type <code>WSDLOperation</code>
      */
     public WSDLOperation createOperation() {
-
         return new WSDLOperationImpl();
     }
 
@@ -388,7 +427,6 @@
      * @return A new instance of type <code>WSDLEndpoint</code>
      */
     public WSDLEndpoint createEndpoint() {
-
         return new WSDLEndpointImpl();
     }
 
@@ -396,7 +434,6 @@
      * @return A new instance of type <code>WSDLFault</code>
      */
     public WSDLFault createFault() {
-
         return new WSDLFaultImpl();
     }
 
@@ -404,7 +441,6 @@
      * @return A new instance of type <code>WSDLFeature</code>
      */
     public WSDLFeature createFeature() {
-
         return new WSDLFeatureImpl();
     }
 
@@ -412,7 +448,6 @@
      * @return A new instance of type <code>WSDLImport</code>
      */
     public WSDLImport createImport() {
-
         return new WSDLImportImpl();
     }
 
@@ -420,14 +455,15 @@
      * @return A new instance of type <code>WSDLInclude</code>
      */
     public WSDLInclude createInclude() {
-
         return new WSDLIncludeImpl();
     }
 
+    /**
+     * Method createProperty
+     *
+     * @return
+     */
     public WSDLProperty createProperty() {
-
         return new WSDLPropertyImpl();
     }
-
-
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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;
@@ -21,28 +20,52 @@
 
 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;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.WSDLFault;
@@ -24,23 +23,50 @@
  */
 public class WSDLFaultImpl extends ComponentImpl implements WSDLFault {
 
-    //TODO its a NCName so parse it. and this is required
+    // TODO its a NCName so parse it. and this is required
+
+    /**
+     * Field name
+     */
     private String name;
 
+    /**
+     * Field element
+     */
     private Element element;
 
+    /**
+     * Method getElement
+     *
+     * @return
+     */
     public Element getElement() {
         return element;
     }
 
+    /**
+     * Method setElement
+     *
+     * @param element
+     */
     public void setElement(Element element) {
         this.element = element;
     }
 
+    /**
+     * Method getName
+     *
+     * @return
+     */
     public String getName() {
         return name;
     }
 
+    /**
+     * Method setName
+     *
+     * @param name
+     */
     public void setName(String name) {
         this.name = name;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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;
@@ -22,25 +21,48 @@
  * @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;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLImportImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLImportImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLImportImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLImportImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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;
@@ -22,12 +21,16 @@
  * @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.
      *
@@ -40,7 +43,7 @@
     /**
      * Sets the location URI of the Include.
      *
-     * @param loaction
+     * @param location
      */
     public void setLocation(String location) {
         this.location = location;

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLIncludeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLIncludeImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLIncludeImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLIncludeImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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;
@@ -22,29 +21,26 @@
  * @author chathura@opensource.lk
  */
 public class WSDLIncludeImpl extends ComponentImpl implements WSDLInclude {
-
     /**
      * URI of the include Location.
      */
-    private String loaction;
+    private String location;
 
     /**
      * Gets the location URI of the Include.
      *
      * @return
      */
-    public String getLoaction() {
-        return loaction;
+    public String getLocation() {
+        return location;
     }
 
     /**
      * Sets the location URI of the Include.
      *
-     * @param loaction
+     * @param location
      */
-    public void setLoaction(String loaction) {
-        this.loaction = loaction;
+    public void setLocation(String location) {
+        this.location = location;
     }
-
-
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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;
@@ -25,45 +24,58 @@
 import java.util.LinkedList;
 import java.util.List;
 
-
 /**
  * @author Chathura Herath
  */
-public class WSDLInterfaceImpl extends ExtensibleComponentImpl implements WSDLInterface {
-
-
+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 = (HashMap) this.operations;
-
-
         if (this.superInterfaces.size() == 0) {
             return all;
         } else {
-            Iterator superIterator = this.superInterfaces.values().iterator();
+            Iterator superIterator =
+                    this.superInterfaces.values().iterator();
             Iterator operationIterator;
             WSDLInterface superInterface;
             WSDLOperation superInterfaceOperation;
@@ -72,34 +84,41 @@
             boolean tobeAdded = false;
             while (superIterator.hasNext()) {
                 superInterface = (WSDLInterface) superIterator.next();
-                operationIterator = superInterface.getAllOperations().values().iterator();
+                operationIterator =
+                superInterface.getAllOperations().values().iterator();
                 while (operationIterator.hasNext()) {
-                    superInterfaceOperation = (WSDLOperation) operationIterator.next();
+                    superInterfaceOperation =
+                    (WSDLOperation) operationIterator.next();
                     tobeAdded = true;
                     while (thisIterator.hasNext()) {
                         thisOperation = (WSDLOperation) thisIterator.next();
+                        if ((thisOperation.getName() == superInterfaceOperation.getName())
+                                && !tobeAdded) {
+                            if (thisOperation.getTargetnemespace().equals(
+                                    superInterfaceOperation.getTargetnemespace())) {
 
-                        if (thisOperation.getName() == superInterfaceOperation.getName() && !tobeAdded) {
-                            if (thisOperation.getTargetnemespace().equals(superInterfaceOperation.getTargetnemespace())) {
-                                //Both are the same Operation; the one inherited and
-                                //the one that is already in the map(may or maynot be inherited)
+                                // 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 ");
+
+                                // 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(), superInterfaceOperation);
-                    }
 
+                        // This one is not in the list already developped
+                        all.put(superInterfaceOperation.getName(),
+                                superInterfaceOperation);
+                    }
                 }
             }
             return all;
-
         }
     }
 
@@ -126,10 +145,17 @@
 
     /**
      * Retruns the <code>WSDLOperation</code>
+     *
+     * @param nCName
+     * @return
      */
     public WSDLOperation getOperation(String nCName) {
         Object temp = this.operations.get(nCName);
-        if (null == temp) throw new WSDLProcessingException("No Operation found with the QName with ncname/ ncname with " + nCName);
+        if (null == temp) {
+            throw new WSDLProcessingException(
+                    "No Operation found with the QName with ncname/ ncname with "
+                            + nCName);
+        }
         return (WSDLOperation) temp;
     }
 
@@ -140,6 +166,12 @@
         return superInterfaces;
     }
 
+    /**
+     * Method getSuperInterface
+     *
+     * @param qName
+     * @return
+     */
     public WSDLInterface getSuperInterface(QName qName) {
         return (WSDLInterface) this.superInterfaces.get(qName);
     }
@@ -151,8 +183,9 @@
      * @return URI as a String if the name is set otherwise will return null.
      */
     public String getTargetnamespace() {
-        if (null == this.name) return null;
-
+        if (null == this.name) {
+            return null;
+        }
         return this.name.getNamespaceURI();
     }
 
@@ -177,19 +210,21 @@
         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 nCName
      * @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)");
+        if (null == operation) {
+            return;
+        }
+        if (null == operation.getName()) {
+            throw new WSDLProcessingException(
+                    "The Operation name cannot be null (required)");
+        }
         this.operations.put(operation.getName(), operation);
     }
 
@@ -207,7 +242,8 @@
      * @param interfaceComponent WSDLInterface Object
      */
     public void addSuperInterface(WSDLInterface interfaceComponent) {
-        this.superInterfaces.put(interfaceComponent.getName(), interfaceComponent);
+        this.superInterfaces.put(interfaceComponent.getName(),
+                interfaceComponent);
     }
 
     /**
@@ -219,7 +255,12 @@
         return styleDefault;
     }
 
+    /**
+     * Method setStyleDefault
+     *
+     * @param styleDefault
+     */
     public void setStyleDefault(String styleDefault) {
         this.styleDefault = styleDefault;
     }
-}
\ No newline at end of file
+}

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.MessageReference;
@@ -26,94 +25,203 @@
 /**
  * @author Chathura Herath
  */
-public class WSDLOperationImpl extends ExtensibleComponentImpl implements WSDLOperation {
-
+public class WSDLOperationImpl extends ExtensibleComponentImpl
+        implements WSDLOperation {
+    /**
+     * Field name
+     */
     private QName name;
 
     /**
      * URI of the MEP
      */
     private String messageExchangePattern;
+
+    /**
+     * Field inputMessage
+     */
     private MessageReference inputMessage;
+
+    /**
+     * Field outputMessage
+     */
     private MessageReference outputMessage;
+
+    /**
+     * Field infaults
+     */
     private List infaults = new LinkedList();
+
+    /**
+     * Field outfaults
+     */
     private List outfaults = new LinkedList();
-    //value of parent if not specified
+
+    // value of parent if not specified
+
+    /**
+     * Field style
+     */
     private int style;
 
+    /**
+     * Field safety
+     */
     private boolean safety = false;
 
-
+    /**
+     * Method getInfaults
+     *
+     * @return
+     */
     public List getInfaults() {
         return infaults;
     }
 
+    /**
+     * Method setInfaults
+     *
+     * @param infaults
+     */
     public void setInfaults(List infaults) {
         this.infaults = infaults;
     }
 
+    /**
+     * Method getInputMessage
+     *
+     * @return
+     */
     public MessageReference getInputMessage() {
         return inputMessage;
     }
 
+    /**
+     * Method setInputMessage
+     *
+     * @param inputMessage
+     */
     public void setInputMessage(MessageReference inputMessage) {
         this.inputMessage = inputMessage;
     }
 
+    /**
+     * Method getMessageExchangePattern
+     *
+     * @return
+     */
     public String getMessageExchangePattern() {
         return messageExchangePattern;
     }
 
+    /**
+     * Method setMessageExchangePattern
+     *
+     * @param messageExchangePattern
+     */
     public void setMessageExchangePattern(String messageExchangePattern) {
         this.messageExchangePattern = messageExchangePattern;
     }
 
+    /**
+     * Method getName
+     *
+     * @return
+     */
     public QName getName() {
         return name;
     }
 
+    /**
+     * Method setName
+     *
+     * @param name
+     */
     public void setName(QName name) {
         this.name = name;
     }
 
+    /**
+     * Method getOutfaults
+     *
+     * @return
+     */
     public List getOutfaults() {
         return outfaults;
     }
 
+    /**
+     * Method setOutfaults
+     *
+     * @param outfaults
+     */
     public void setOutfaults(List outfaults) {
         this.outfaults = outfaults;
     }
 
+    /**
+     * Method getOutputMessage
+     *
+     * @return
+     */
     public MessageReference getOutputMessage() {
         return outputMessage;
     }
 
+    /**
+     * Method setOutputMessage
+     *
+     * @param outputMessage
+     */
     public void setOutputMessage(MessageReference outputMessage) {
         this.outputMessage = outputMessage;
     }
 
+    /**
+     * Method isSafe
+     *
+     * @return
+     */
     public boolean isSafe() {
         return safety;
     }
 
+    /**
+     * Method setSafety
+     *
+     * @param safe
+     */
     public void setSafety(boolean safe) {
         this.safety = safe;
     }
 
+    /**
+     * Method getStyle
+     *
+     * @return
+     */
     public int getStyle() {
         return style;
     }
 
+    /**
+     * Method setStyle
+     *
+     * @param style
+     */
     public void setStyle(int style) {
         this.style = style;
     }
 
     /**
      * Will return the Namespace of the QName of this <code>WSDLOperation</code>. Will return null if not set.
+     *
+     * @return
      */
     public String getTargetnemespace() {
-        if (null != this.name) return this.name.getNamespaceURI();
+        if (null != this.name) {
+            return this.name.getNamespaceURI();
+        }
         return null;
     }
-
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLProcessingException.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLProcessingException.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLProcessingException.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLProcessingException.java Sat Feb 19 19:37:38 2005
@@ -1,26 +1,29 @@
 /*
  * 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;
 
 /**
  * @author chathura@opensource.lk
  */
 public class WSDLProcessingException extends RuntimeException {
-
+    /**
+     * Constructor WSDLProcessingException
+     *
+     * @param message
+     */
     public WSDLProcessingException(String message) {
         super(message);
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLPropertyImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLPropertyImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLPropertyImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLPropertyImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.WSDLProperty;
@@ -22,34 +21,71 @@
  * @author chathura@opensource.lk
  */
 public class WSDLPropertyImpl extends ComponentImpl implements WSDLProperty {
-
+    /**
+     * Field constraint
+     */
     private Object constraint;
 
+    /**
+     * Field name
+     */
     private String name;
 
+    /**
+     * Field value
+     */
     private Object value;
 
-
+    /**
+     * Method getConstraint
+     *
+     * @return
+     */
     public Object getConstraint() {
         return constraint;
     }
 
+    /**
+     * Method setConstraint
+     *
+     * @param constraint
+     */
     public void setConstraint(Object constraint) {
         this.constraint = constraint;
     }
 
+    /**
+     * Method getName
+     *
+     * @return
+     */
     public String getName() {
         return name;
     }
 
+    /**
+     * Method setName
+     *
+     * @param name
+     */
     public void setName(String name) {
         this.name = name;
     }
 
+    /**
+     * Method getValue
+     *
+     * @return
+     */
     public Object getValue() {
         return value;
     }
 
+    /**
+     * Method setValue
+     *
+     * @param value
+     */
     public void setValue(Object value) {
         this.value = value;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.WSDLEndpoint;
@@ -23,40 +22,48 @@
 import javax.xml.namespace.QName;
 import java.util.HashMap;
 
-
 /**
  * @author chathura@opensource.lk
  */
 public class WSDLServiceImpl extends ComponentImpl implements WSDLService {
-
     /**
      * The QName that identifies the Service. This namespace of the QName
      * should be the target namespace defined in the Definitions component.
      */
     private QName name;
 
-
     /**
      * The Interface that this Service is an instance of.
      */
     private WSDLInterface serviceInterface;
 
     /**
-     * 
+     *
      */
     private HashMap endpoints = new HashMap();
 
-
+    /**
+     * Method getEndpoints
+     *
+     * @return
+     */
     public HashMap getEndpoints() {
         return endpoints;
     }
 
+    /**
+     * Method setEndpoints
+     *
+     * @param endpoints
+     */
     public void setEndpoints(HashMap endpoints) {
         this.endpoints = endpoints;
     }
 
     /**
      * Will add a WSDLEndpoint object to the WOM keyed with qname;
+     *
+     * @param endpoint
      */
     public void setEndpoint(WSDLEndpoint endpoint) {
         this.endpoints.put(endpoint.getName(), endpoint);
@@ -65,19 +72,32 @@
     /**
      * Endpoint will be retrived by its qname.
      *
-     * @param qname qname of the Service
+     * @param qName qname of the Service
      * @return WSDLService Object or will throw an WSDLProcessingException in the case of object not found.
      */
     public WSDLService getEndpoint(QName qName) {
         WSDLService temp = (WSDLService) this.endpoints.get(qName);
-        if (null == temp) throw new WSDLProcessingException("Service not found for NCName " + qName);
+        if (null == temp) {
+            throw new WSDLProcessingException("Service not found for NCName "
+                            + qName);
+        }
         return temp;
     }
 
+    /**
+     * Method getName
+     *
+     * @return
+     */
     public QName getName() {
         return name;
     }
 
+    /**
+     * Method setName
+     *
+     * @param name
+     */
     public void setName(QName name) {
         this.name = name;
     }
@@ -89,15 +109,27 @@
      * @return Target Namespace as a <code>String</code>
      */
     public String getNamespace() {
-        if (null == this.name) throw new WSDLProcessingException("Target Namespace not set and the Service Name is null");
-
+        if (null == this.name) {
+            throw new WSDLProcessingException(
+                    "Target Namespace not set and the Service Name is null");
+        }
         return this.name.getNamespaceURI();
     }
 
+    /**
+     * Method getServiceInterface
+     *
+     * @return
+     */
     public WSDLInterface getServiceInterface() {
         return serviceInterface;
     }
 
+    /**
+     * Method setServiceInterface
+     *
+     * @param serviceInterface
+     */
     public void setServiceInterface(WSDLInterface serviceInterface) {
         this.serviceInterface = serviceInterface;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
 /*
  * 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.ExtensionElement;
@@ -26,7 +25,9 @@
  * @author chathura@opensource.lk
  */
 public class WSDLTypesImpl extends ComponentImpl implements WSDLTypes {
-
+    /**
+     * Field extensionElements
+     */
     private HashMap extensionElements = new HashMap();
 
     /**
@@ -48,13 +49,12 @@
     }
 
     /**
-     * Adds the <code>ExtensionElement</code> to the map keyed with the <code>QName</code>     *
+     * Adds the <code>ExtensionElement</code> to the map keyed with the <code>QName</code>
      *
      * @param qName
      * @param element
      */
     public void addElement(QName qName, ExtensionElement element) {
-
         this.extensionElements.put(qName, element);
     }
 
@@ -68,5 +68,4 @@
     public ExtensionElement getElement(QName qName) {
         return (ExtensionElement) this.extensionElements.get(qName);
     }
-
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/util/Utils.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/util/Utils.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/util/Utils.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/util/Utils.java Sat Feb 19 19:37:38 2005
@@ -1,51 +1,47 @@
 /*
  * 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.util;
-
-import org.apache.wsdl.WSDLTypes;
-import org.w3c.dom.Document;
-import org.xml.sax.SAXException;
-
-import javax.wsdl.Message;
-import javax.wsdl.Part;
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Iterator;
-
-/**
- * @author Srinath Perera(hemapani@opensource.lk)
- */
-public class Utils {
-    public static Document newDocument(InputStream in) throws ParserConfigurationException, SAXException, IOException {
-        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
-        dbf.setNamespaceAware(true);
-        DocumentBuilder db = dbf.newDocumentBuilder();
-        return db.parse(in);
-    }
-
-    public static WSDLTypes buildWSDL2ComplientMessageType(Message message) {
-        Iterator messageTypeIterator = message.getParts().values().iterator();
-        if (1 == message.getParts().size() && messageTypeIterator.hasNext()) {
-            Part part = (Part) messageTypeIterator.next();
-            /// new WSDLTypesImpl().set
-        }
-        return null;
-    }
-}
+package org.apache.wsdl.util;
+
+import org.w3c.dom.Document;
+import org.xml.sax.SAXException;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import java.io.IOException;
+import java.io.InputStream;
+
+/**
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+public class Utils {
+    /**
+     * Method newDocument
+     *
+     * @param in
+     * @return
+     * @throws ParserConfigurationException
+     * @throws SAXException
+     * @throws IOException
+     */
+    public static Document newDocument(InputStream in)
+            throws ParserConfigurationException, SAXException, IOException {
+        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
+        dbf.setNamespaceAware(true);
+        DocumentBuilder db = dbf.newDocumentBuilder();
+        return db.parse(in);
+    }
+}