View Javadoc

1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.apache.geronimo.ews.ws4j2ee.context.impl;
18  
19  import org.apache.geronimo.ews.ws4j2ee.context.SEIOperation;
20  
21  import java.util.ArrayList;
22  import java.util.HashMap;
23  
24  /***
25   * @author Srinath Perera(hemapani@opensource.lk)
26   * @see SEIOperation
27   */
28  public class SEIOperationImpl implements SEIOperation {
29      private String methodName;
30      private String returnType;
31      private HashMap parameters = new HashMap();
32      private ArrayList parmNames = new ArrayList();
33      private ArrayList faults = new ArrayList();
34  
35      public String getMethodName() {
36          return methodName;
37      }
38  
39      public ArrayList getParameterNames() {
40          return parmNames;
41      }
42  
43      public ArrayList getFaults() {
44          return faults;
45      }
46  
47      public void setMethodName(String methodName) {
48          this.methodName = methodName;
49      }
50  
51      public void addParameter(String type, String name) {
52          parmNames.add(name);
53          parameters.put(name, type);
54      }
55  
56      public void addFault(String name) {
57          faults.add(name);
58      }
59  
60      public String getReturnType() {
61          return returnType;
62      }
63  
64      public void setReturnType(String returnType) {
65          this.returnType = returnType;
66      }
67  
68      /* (non-Javadoc)
69       * @see org.apache.geronimo.ews.ws4j2ee.context.SEIOperation#getParameterTypes()
70       */
71      public String getParameterType(String name) {
72          return (String) parameters.get(name);
73      }
74  
75  }