KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > description > ParameterIncludeImpl


1 /*
2  * Copyright 2004,2005 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 package org.apache.axis2.description;
17
18 import java.util.HashMap JavaDoc;
19
20 /**
21  * Class ParameterIncludeImpl
22  */

23 public class ParameterIncludeImpl implements ParameterInclude {
24     /**
25      * Field parmeters
26      */

27     protected final HashMap JavaDoc parmeters;
28
29     /**
30      * Constructor ParameterIncludeImpl
31      */

32     public ParameterIncludeImpl() {
33         parmeters = new HashMap JavaDoc();
34     }
35
36     /**
37      * Method addParameter
38      *
39      * @param param
40      */

41     public void addParameter(Parameter param) {
42         if (param != null) {
43             parmeters.put(param.getName(), param);
44         }
45     }
46
47     /**
48          * Method getParameter
49          *
50          * @param name
51          * @return
52          */

53     public Parameter getParameter(String JavaDoc name) {
54         return (Parameter) parmeters.get(name);
55     }
56 }
57
Popular Tags