1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 /***
25 * this class was introduced in DbForms 0.9 it is used for holding simple data
26 * for example in EmbeddedData - Classes
27 */
28 package org.dbforms.interfaces;
29
30
31 /***
32 * Description of the Class
33 *
34 * @author foxat
35 *
36 */
37 public class StaticData {
38 private String key;
39 private String value;
40
41 /***
42 * Creates a new KeyValuePair object.
43 */
44 public StaticData() {
45 }
46
47
48 /***
49 * Creates a new KeyValuePair object.
50 *
51 * @param key the key value
52 * @param value the value related to the key
53 */
54 public StaticData(String key,
55 String value) {
56 this.key = key;
57 this.value = value;
58 }
59
60 /***
61 * Sets the key attribute of the KeyValuePair object
62 *
63 * @param key The new key value
64 */
65 public void setKey(String key) {
66 this.key = key;
67 }
68
69
70 /***
71 * Gets the key attribute of the KeyValuePair object
72 *
73 * @return The key value
74 */
75 public String getKey() {
76 return key;
77 }
78
79
80 /***
81 * Sets the value attribute of the KeyValuePair object
82 *
83 * @param value The new value value
84 */
85 public void setValue(String value) {
86 this.value = value;
87 }
88
89
90 /***
91 * Gets the value attribute of the KeyValuePair object
92 *
93 * @return The value value
94 */
95 public String getValue() {
96 return value;
97 }
98 }