1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package examples.bean;
23
24 import java.io.Serializable;
25 import java.util.ArrayList;
26 import java.util.List;
27
28
29
30
31
32
33 public class ExampleBean implements Serializable {
34
35
36
37
38 private boolean booleanValue = false;
39
40
41 private double doubleValue = 45213.451;
42
43
44 private float floatValue = -123.582F;
45
46
47 private int intValue = 256;
48
49
50 private long longValue = 1321546L;
51
52
53 private short shortValue = 257;
54
55
56 private String stringValue = "Hello, world!";
57
58
59 private java.util.Date dateValue = new java.util.Date();
60
61
62 private List list = new ArrayList();
63
64
65 private String[] array = { "Red", "Green", "Blue", "Black", "Orange" };
66
67
68 private NestedBean nested = null;
69
70
71 private String html =
72 "<p>This is a <strong>simple</strong> example of "
73 + "<em>HTML</em> formatted text.</p>";
74
75
76
77
78
79
80 public ExampleBean() {
81 super();
82 }
83
84
85
86
87
88
89
90
91 public boolean isBooleanValue() {
92 return booleanValue;
93 }
94
95
96
97
98
99 public double getDoubleValue() {
100 return doubleValue;
101 }
102
103
104
105
106
107 public float getFloatValue() {
108 return floatValue;
109 }
110
111
112
113
114
115 public int getIntValue() {
116 return intValue;
117 }
118
119
120
121
122
123 public long getLongValue() {
124 return longValue;
125 }
126
127
128
129
130
131 public short getShortValue() {
132 return shortValue;
133 }
134
135
136
137
138
139 public String getStringValue() {
140 return stringValue;
141 }
142
143
144
145
146
147 public void setBooleanValue(boolean booleanValue) {
148 this.booleanValue = booleanValue;
149 }
150
151
152
153
154
155 public void setDoubleValue(double doubleValue) {
156 this.doubleValue = doubleValue;
157 }
158
159
160
161
162
163 public void setFloatValue(float floatValue) {
164 this.floatValue = floatValue;
165 }
166
167
168
169
170
171 public void setIntValue(int intValue) {
172 this.intValue = intValue;
173 }
174
175
176
177
178
179 public void setLongValue(long longValue) {
180 this.longValue = longValue;
181 }
182
183
184
185
186
187 public void setShortValue(short shortValue) {
188 this.shortValue = shortValue;
189 }
190
191
192
193
194
195 public void setStringValue(String stringValue) {
196 this.stringValue = stringValue;
197 }
198
199
200
201
202
203 public List getList() {
204 return list;
205 }
206
207
208
209
210
211 public void setList(List list) {
212 this.list = list;
213 }
214
215
216
217
218
219 public NestedBean getNested() {
220 return nested;
221 }
222
223
224
225
226
227 public void setNested(NestedBean nested) {
228 this.nested = nested;
229 }
230
231
232
233
234
235 public java.util.Date getDateValue() {
236 return dateValue;
237 }
238
239
240
241
242
243 public void setDateValue(java.util.Date date) {
244 this.dateValue = date;
245 }
246
247
248
249
250
251 public String[] getArray() {
252 return array;
253 }
254
255
256
257
258
259 public void setArray(String[] array) {
260 this.array = array;
261 }
262
263
264
265
266
267 public String getHtml() {
268 return html;
269 }
270
271
272
273
274
275 public void setHtml(String html) {
276 this.html = html;
277 }
278
279 }