KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > cli > framework > ValidProperty


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.cli.framework;
25
26
27 /**
28  * Definition for the valid property
29  * @version $Revision: 1.4 $
30  */

31 public class ValidProperty
32 {
33
34     // name of the property
35
private String JavaDoc name;
36     // value of the property
37
static String JavaDoc value;
38     
39     /** Creates new ValidProperty */
40     public ValidProperty()
41     {
42     }
43
44     /**
45     Create a new ValidProperty object with the given arguments:
46     @param name name of the property
47     @param value value of the property
48      */

49     public ValidProperty(String JavaDoc name, String JavaDoc value)
50     {
51         this.name = name;
52         this.value = value;
53     }
54
55     /**
56      * Returns the name of the property
57      * @return the name of the property
58      */

59     public String JavaDoc getName()
60     {
61         return name;
62     }
63     
64     /**
65      * Sets the name of the property
66      * @param name the name of the property to set
67      */

68     public void setName(String JavaDoc name)
69     {
70         this.name = name;
71     }
72
73
74     /**
75      * Returns the value of the property
76      * @return the value of the property
77      */

78     public String JavaDoc getValue()
79     {
80         return value;
81     }
82     
83     /**
84      * Sets the value of the property
85      * @param name the value of thhe property to set
86      */

87     public void setValue(String JavaDoc value)
88     {
89         this.value = value;
90     }
91
92 }
93
Popular Tags