axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From az...@apache.org
Subject svn commit: r395836 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2: deployment/ServiceBuilder.java description/AxisOperation.java description/AxisService.java description/Parameter.java
Date Fri, 21 Apr 2006 10:25:25 GMT
Author: azeez
Date: Fri Apr 21 03:25:22 2006
New Revision: 395836

URL: http://svn.apache.org/viewcvs?rev=395836&view=rev
Log:
Refactored AxisService#removeOeration() method to removeOperation()
Added AxisService#removeParameter()


Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisOperation.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/Parameter.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java?rev=395836&r1=395835&r2=395836&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
Fri Apr 21 03:25:22 2006
@@ -247,7 +247,7 @@
         Iterator excludeOp_itr = exculeOperations.getChildrenWithName(new QName(TAG_OPERATION));
         while (excludeOp_itr.hasNext()) {
             OMElement opName = (OMElement) excludeOp_itr.next();
-            service.removeOeration(new QName(opName.getText()));
+            service.removeOperation(new QName(opName.getText()));
             log.info("removed the operation:" + opName.getText());
         }
     }

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisOperation.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisOperation.java?rev=395836&r1=395835&r2=395836&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisOperation.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisOperation.java
Fri Apr 21 03:25:22 2006
@@ -1,7 +1,6 @@
 package org.apache.axis2.description;
 
 import org.apache.axis2.AxisFault;
-import org.apache.axis2.addressing.AddressingConstants;
 import org.apache.axis2.wsdl.WSDLConstants;
 import org.apache.axis2.client.OperationClient;
 import org.apache.axis2.client.Options;
@@ -157,7 +156,7 @@
                         Iterator moduleOperations_itr = moduleOperations.values().iterator();
                         while (moduleOperations_itr.hasNext()) {
                             AxisOperation operation = (AxisOperation) moduleOperations_itr.next();
-                            service.removeOeration(operation.getName());
+                            service.removeOperation(operation.getName());
                         }
                     }
                 }

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService.java?rev=395836&r1=395835&r2=395836&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService.java
Fri Apr 21 03:25:22 2006
@@ -833,7 +833,7 @@
             Iterator moduleOperations_itr = moduleOerations.values().iterator();
             while (moduleOperations_itr.hasNext()) {
                 AxisOperation operation = (AxisOperation) moduleOperations_itr.next();
-                removeOeration(operation.getName());
+                removeOperation(operation.getName());
             }
         }
     }
@@ -997,7 +997,7 @@
 
     }
 
-    public void removeOeration(QName opName) {
+    public void removeOperation(QName opName) {
         AxisOperation operation = getOperation(opName);
         if (operation != null) {
             removeChild(opName);
@@ -1010,6 +1010,10 @@
             }
             operationsAliasesMap.remove(operation.getName().getLocalPart());
         }
+    }
+
+    public void removeParameter(String paramName){
+        getParameters().remove(new Parameter(paramName, null));
     }
 
     public Map getNameSpacesMap() {

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/Parameter.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/Parameter.java?rev=395836&r1=395835&r2=395836&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/Parameter.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/Parameter.java
Fri Apr 21 03:25:22 2006
@@ -13,8 +13,6 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-
-
 package org.apache.axis2.description;
 
 import org.apache.axiom.om.OMElement;
@@ -151,5 +149,23 @@
      */
     public void setValue(Object value) {
         this.value = value;
+    }
+
+    public String toString() {
+        return "Parameter : " + name + "=" + value;
+    }
+
+    public boolean equals(Object obj) {
+        if(this == obj){
+            return true;
+        }
+        if(obj instanceof Parameter){
+            return ((Parameter) obj).getName().equals(name);
+        }
+        return false;
+    }
+
+    public int hashCode() {
+        return name.hashCode();
     }
 }



Mime
View raw message