KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > wsm > model > jsr181 > InitParamInfo


1 package org.apache.beehive.wsm.model.jsr181;
2
3 import javax.jws.soap.InitParam;
4
5 /*
6  * Copyright 2004 The Apache Software Foundation
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  * $Header:$
21  */

22
23 public class InitParamInfo implements java.io.Serializable JavaDoc {
24
25     private static final long serialVersionUID = 1L;
26     
27     String JavaDoc name;
28
29     String JavaDoc value;
30
31     /**
32      *
33      */

34     public InitParamInfo(InitParam a) {
35         super();
36         initFromAnnotation(a);
37     }
38
39     /**
40      * @param a
41      */

42     private void initFromAnnotation(InitParam a) {
43         if (null != a) {
44             setName(a.name());
45             setValue(a.value());
46         }
47         // no defaults
48
}
49
50     /**
51      * @return Returns the name.
52      */

53     public String JavaDoc getName() {
54         return name;
55     }
56
57     /**
58      * @param name The name to set.
59      */

60     public void setName(String JavaDoc name) {
61         this.name = name;
62     }
63
64     /**
65      * @return Returns the value.
66      */

67     public String JavaDoc getValue() {
68         return value;
69     }
70
71     /**
72      * @param value The value to set.
73      */

74     public void setValue(String JavaDoc value) {
75         this.value = value;
76     }
77
78 }
79
Popular Tags