ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/description JavaServiceDesc.java ServiceDesc.java
Date Mon, 10 May 2004 20:20:17 GMT
gawor       2004/05/10 13:20:17

  Modified:    java/src/org/apache/axis/description JavaServiceDesc.java
                        ServiceDesc.java
  Log:
  support for removing operations from ServiceDesc
  
  Revision  Changes    Path
  1.13      +31 -0     ws-axis/java/src/org/apache/axis/description/JavaServiceDesc.java
  
  Index: JavaServiceDesc.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/description/JavaServiceDesc.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- JavaServiceDesc.java	26 Apr 2004 02:59:34 -0000	1.12
  +++ JavaServiceDesc.java	10 May 2004 20:20:17 -0000	1.13
  @@ -344,6 +344,37 @@
           this.disallowedMethods = disallowedMethods;
       }
   
  +    public void removeOperationDesc(OperationDesc operation) {
  +        operations.remove(operation);
  +        operation.setParent(null);
  +
  +        if (name2OperationsMap != null) {
  +            String name = operation.getName();
  +            ArrayList overloads = (ArrayList)name2OperationsMap.get(name);
  +            if (overloads != null) {
  +                overloads.remove(operation);
  +                if (overloads.size() == 0) {
  +                    name2OperationsMap.remove(name);
  +                }
  +            }
  +        }
  +        
  +        if (qname2OperationsMap != null) {
  +            QName qname = operation.getElementQName();
  +            ArrayList list = (ArrayList)qname2OperationsMap.get(qname);
  +            if (list != null) {
  +                list.remove(operation);
  +            }
  +        }
  +        
  +        if (method2OperationMap != null) {
  +            Method method = operation.getMethod();
  +            if (method != null) {
  +                method2OperationMap.remove(method);
  +            }
  +        }
  +    }
  +    
       public void addOperationDesc(OperationDesc operation)
       {
           operations.add(operation);
  
  
  
  1.85      +2 -0      ws-axis/java/src/org/apache/axis/description/ServiceDesc.java
  
  Index: ServiceDesc.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/description/ServiceDesc.java,v
  retrieving revision 1.84
  retrieving revision 1.85
  diff -u -r1.84 -r1.85
  --- ServiceDesc.java	8 Apr 2004 13:09:06 -0000	1.84
  +++ ServiceDesc.java	10 May 2004 20:20:17 -0000	1.85
  @@ -85,6 +85,8 @@
        */
       void setDocumentation(String documentation);
   
  +    void removeOperationDesc(OperationDesc operation);
  +
       void addOperationDesc(OperationDesc operation);
   
       /**
  
  
  

Mime
View raw message