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