1 /***
2 * The contents of this file are subject to the Mozilla Public
3 * License Version 1.1 (the "License"); you may not use this file
4 * except in compliance with the License. You may obtain a copy of
5 * the License at http://www.mozilla.org/MPL/
6 *
7 * Software distributed under the License is distributed on an "AS
8 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9 * implied. See the License for the specific language governing
10 * rights and limitations under the License.
11 *
12 * The Original Code is pow2toolkit library.
13 *
14 * The Initial Owner of the Original Code is
15 * Power Of Two S.R.L. (www.pow2.com)
16 *
17 * Portions created by Power Of Two S.R.L. are
18 * Copyright (C) Power Of Two S.R.L.
19 * All Rights Reserved.
20 *
21 * Contributor(s):
22 */
23
24 package com.pow2.util;
25
26
27 /***
28 * A simple label / value bean class.
29 *
30 * @author Luca Fossato
31 * @created 09 July 2002
32 */
33 public class LabelValueBean
34 {
35 private String label;
36 private String value;
37
38 /***
39 * Constructor
40 */
41 public LabelValueBean()
42 {
43 label = null;
44 value = null;
45 }
46
47
48 /***
49 * Constructor
50 *
51 * @param label the label name
52 * @param value the label value
53 */
54 public LabelValueBean(String label, String value)
55 {
56 this.label = label;
57 this.value = value;
58 }
59
60
61 /***
62 * Sets the label attribute of the LabelValueBean object
63 *
64 * @param label The new label value
65 */
66 public void setLabel(String label)
67 {
68 this.label = label;
69 }
70
71
72 /***
73 * Sets the value attribute of the LabelValueBean object
74 *
75 * @param value The new value value
76 */
77 public void setValue(String value)
78 {
79 this.value = value;
80 }
81
82
83 /***
84 * Gets the label attribute of the LabelValueBean object
85 *
86 * @return The label value
87 */
88 public String getLabel()
89 {
90 return label;
91 }
92
93
94 /***
95 * Gets the value attribute of the LabelValueBean object
96 *
97 * @return The value value
98 */
99 public String getValue()
100 {
101 return value;
102 }
103 }