KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
19  * Class ParameterImpl
20  */

21 public class ParameterImpl implements Parameter {
22     /**
23      * Field name
24      */

25     private String JavaDoc name;
26
27     /**
28      * Field value
29      */

30     private String JavaDoc value;
31
32     /**
33      * Field locked
34      */

35     private boolean locked;
36
37     /**
38      * Field type
39      */

40     private int type = TEXT_PARAMETER;
41
42     /**
43      * Constructor ParameterImpl
44      */

45     public ParameterImpl() {
46     }
47
48     /**
49      * Constructor ParameterImpl
50      *
51      * @param name
52      * @param value
53      */

54     public ParameterImpl(String JavaDoc name, String JavaDoc value) {
55         this.name = name;
56         this.value = value;
57     }
58
59     /**
60      * Method setName
61      *
62      * @param name
63      */

64     public void setName(String JavaDoc name) {
65         this.name = name;
66     }
67
68     /**
69      * Method setValue
70      *
71      * @param value
72      */

73     public void setValue(String JavaDoc value) {
74         this.value = value;
75     }
76
77     /**
78      * Method isLocked
79      *
80      * @return
81      */

82     public boolean isLocked() {
83         return locked;
84     }
85
86     /**
87      * Method setLocked
88      *
89      * @param value
90      */

91     public void setLocked(boolean value) {
92         locked = value;
93     }
94
95     /**
96      * Method getName
97      *
98      * @return
99      */

100     public String JavaDoc getName() {
101         return name;
102     }
103
104     /**
105      * Method getValue
106      *
107      * @return
108      */

109     public Object JavaDoc getValue() {
110         return value;
111     }
112
113     /**
114      * Method getParameterType
115      *
116      * @return
117      */

118     public int getParameterType() {
119         return type;
120     }
121 }
122
Popular Tags