1 /*
2 * CSVeed (https://github.com/42BV/CSVeed)
3 *
4 * Copyright 2013-2023 CSVeed.
5 *
6 * All rights reserved. This program and the accompanying materials
7 * are made available under the terms of The Apache Software License,
8 * Version 2.0 which accompanies this distribution, and is available at
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 */
11 package org.csveed.bean.conversion;
12
13 import java.math.BigDecimal;
14 import java.math.BigInteger;
15 import java.nio.charset.Charset;
16 import java.util.Currency;
17 import java.util.TimeZone;
18 import java.util.regex.Pattern;
19
20 /**
21 * The Class Bean.
22 */
23 public class Bean {
24
25 /** The charset. */
26 private Charset charset;
27
28 /** The currency. */
29 private Currency currency;
30
31 /** The pattern. */
32 private Pattern pattern;
33
34 /** The time zone. */
35 private TimeZone timeZone;
36
37 /** The bytes. */
38 private byte[] bytes;
39
40 /** The chars. */
41 private char[] chars;
42
43 /** The char primitive. */
44 private char charPrimitive;
45
46 /** The character. */
47 private Character character;
48
49 /** The boolean primitive. */
50 private boolean booleanPrimitive;
51
52 /** The boolean object. */
53 private Boolean booleanObject;
54
55 /** The byte primitive. */
56 private byte bytePrimitive;
57
58 /** The byte object. */
59 private Byte byteObject;
60
61 /** The short primitive. */
62 private short shortPrimitive;
63
64 /** The short object. */
65 private Short shortObject;
66
67 /** The int primitive. */
68 private int intPrimitive;
69
70 /** The int object. */
71 private Integer intObject;
72
73 /** The long primitive. */
74 private long longPrimitive;
75
76 /** The long object. */
77 private Long longObject;
78
79 /** The float primitive. */
80 private float floatPrimitive;
81
82 /** The float object. */
83 private Float floatObject;
84
85 /** The double primitive. */
86 private double doublePrimitive;
87
88 /** The double object. */
89 private Double doubleObject;
90
91 /** The big decimal. */
92 private BigDecimal bigDecimal;
93
94 /** The big integer. */
95 private BigInteger bigInteger;
96
97 /**
98 * Gets the charset.
99 *
100 * @return the charset
101 */
102 public Charset getCharset() {
103 return charset;
104 }
105
106 /**
107 * Sets the charset.
108 *
109 * @param charset
110 * the new charset
111 */
112 public void setCharset(Charset charset) {
113 this.charset = charset;
114 }
115
116 /**
117 * Gets the currency.
118 *
119 * @return the currency
120 */
121 public Currency getCurrency() {
122 return currency;
123 }
124
125 /**
126 * Sets the currency.
127 *
128 * @param currency
129 * the new currency
130 */
131 public void setCurrency(Currency currency) {
132 this.currency = currency;
133 }
134
135 /**
136 * Gets the pattern.
137 *
138 * @return the pattern
139 */
140 public Pattern getPattern() {
141 return pattern;
142 }
143
144 /**
145 * Sets the pattern.
146 *
147 * @param pattern
148 * the new pattern
149 */
150 public void setPattern(Pattern pattern) {
151 this.pattern = pattern;
152 }
153
154 /**
155 * Gets the time zone.
156 *
157 * @return the time zone
158 */
159 public TimeZone getTimeZone() {
160 return timeZone;
161 }
162
163 /**
164 * Sets the time zone.
165 *
166 * @param timeZone
167 * the new time zone
168 */
169 public void setTimeZone(TimeZone timeZone) {
170 this.timeZone = timeZone;
171 }
172
173 /**
174 * Gets the bytes.
175 *
176 * @return the bytes
177 */
178 public byte[] getBytes() {
179 return bytes;
180 }
181
182 /**
183 * Sets the bytes.
184 *
185 * @param bytes
186 * the new bytes
187 */
188 public void setBytes(byte[] bytes) {
189 this.bytes = bytes;
190 }
191
192 /**
193 * Gets the chars.
194 *
195 * @return the chars
196 */
197 public char[] getChars() {
198 return chars;
199 }
200
201 /**
202 * Sets the chars.
203 *
204 * @param chars
205 * the new chars
206 */
207 public void setChars(char[] chars) {
208 this.chars = chars;
209 }
210
211 /**
212 * Gets the char primitive.
213 *
214 * @return the char primitive
215 */
216 public char getCharPrimitive() {
217 return charPrimitive;
218 }
219
220 /**
221 * Sets the char primitive.
222 *
223 * @param charPrimitive
224 * the new char primitive
225 */
226 public void setCharPrimitive(char charPrimitive) {
227 this.charPrimitive = charPrimitive;
228 }
229
230 /**
231 * Gets the character.
232 *
233 * @return the character
234 */
235 public Character getCharacter() {
236 return character;
237 }
238
239 /**
240 * Sets the character.
241 *
242 * @param character
243 * the new character
244 */
245 public void setCharacter(Character character) {
246 this.character = character;
247 }
248
249 /**
250 * Checks if is boolean primitive.
251 *
252 * @return true, if is boolean primitive
253 */
254 public boolean isBooleanPrimitive() {
255 return booleanPrimitive;
256 }
257
258 /**
259 * Sets the boolean primitive.
260 *
261 * @param booleanPrimitive
262 * the new boolean primitive
263 */
264 public void setBooleanPrimitive(boolean booleanPrimitive) {
265 this.booleanPrimitive = booleanPrimitive;
266 }
267
268 /**
269 * Gets the boolean object.
270 *
271 * @return the boolean object
272 */
273 public Boolean getBooleanObject() {
274 return booleanObject;
275 }
276
277 /**
278 * Sets the boolean object.
279 *
280 * @param booleanObject
281 * the new boolean object
282 */
283 public void setBooleanObject(Boolean booleanObject) {
284 this.booleanObject = booleanObject;
285 }
286
287 /**
288 * Gets the byte primitive.
289 *
290 * @return the byte primitive
291 */
292 public byte getBytePrimitive() {
293 return bytePrimitive;
294 }
295
296 /**
297 * Sets the byte primitive.
298 *
299 * @param bytePrimitive
300 * the new byte primitive
301 */
302 public void setBytePrimitive(byte bytePrimitive) {
303 this.bytePrimitive = bytePrimitive;
304 }
305
306 /**
307 * Gets the byte object.
308 *
309 * @return the byte object
310 */
311 public Byte getByteObject() {
312 return byteObject;
313 }
314
315 /**
316 * Sets the byte object.
317 *
318 * @param byteObject
319 * the new byte object
320 */
321 public void setByteObject(Byte byteObject) {
322 this.byteObject = byteObject;
323 }
324
325 /**
326 * Gets the short primitive.
327 *
328 * @return the short primitive
329 */
330 public short getShortPrimitive() {
331 return shortPrimitive;
332 }
333
334 /**
335 * Sets the short primitive.
336 *
337 * @param shortPrimitive
338 * the new short primitive
339 */
340 public void setShortPrimitive(short shortPrimitive) {
341 this.shortPrimitive = shortPrimitive;
342 }
343
344 /**
345 * Gets the short object.
346 *
347 * @return the short object
348 */
349 public Short getShortObject() {
350 return shortObject;
351 }
352
353 /**
354 * Sets the short object.
355 *
356 * @param shortObject
357 * the new short object
358 */
359 public void setShortObject(Short shortObject) {
360 this.shortObject = shortObject;
361 }
362
363 /**
364 * Gets the int primitive.
365 *
366 * @return the int primitive
367 */
368 public int getIntPrimitive() {
369 return intPrimitive;
370 }
371
372 /**
373 * Sets the int primitive.
374 *
375 * @param intPrimitive
376 * the new int primitive
377 */
378 public void setIntPrimitive(int intPrimitive) {
379 this.intPrimitive = intPrimitive;
380 }
381
382 /**
383 * Gets the int object.
384 *
385 * @return the int object
386 */
387 public Integer getIntObject() {
388 return intObject;
389 }
390
391 /**
392 * Sets the int object.
393 *
394 * @param intObject
395 * the new int object
396 */
397 public void setIntObject(Integer intObject) {
398 this.intObject = intObject;
399 }
400
401 /**
402 * Gets the long primitive.
403 *
404 * @return the long primitive
405 */
406 public long getLongPrimitive() {
407 return longPrimitive;
408 }
409
410 /**
411 * Sets the long primitive.
412 *
413 * @param longPrimitive
414 * the new long primitive
415 */
416 public void setLongPrimitive(long longPrimitive) {
417 this.longPrimitive = longPrimitive;
418 }
419
420 /**
421 * Gets the long object.
422 *
423 * @return the long object
424 */
425 public Long getLongObject() {
426 return longObject;
427 }
428
429 /**
430 * Sets the long object.
431 *
432 * @param longObject
433 * the new long object
434 */
435 public void setLongObject(Long longObject) {
436 this.longObject = longObject;
437 }
438
439 /**
440 * Gets the float primitive.
441 *
442 * @return the float primitive
443 */
444 public float getFloatPrimitive() {
445 return floatPrimitive;
446 }
447
448 /**
449 * Sets the float primitive.
450 *
451 * @param floatPrimitive
452 * the new float primitive
453 */
454 public void setFloatPrimitive(float floatPrimitive) {
455 this.floatPrimitive = floatPrimitive;
456 }
457
458 /**
459 * Gets the float object.
460 *
461 * @return the float object
462 */
463 public Float getFloatObject() {
464 return floatObject;
465 }
466
467 /**
468 * Sets the float object.
469 *
470 * @param floatObject
471 * the new float object
472 */
473 public void setFloatObject(Float floatObject) {
474 this.floatObject = floatObject;
475 }
476
477 /**
478 * Gets the double primitive.
479 *
480 * @return the double primitive
481 */
482 public double getDoublePrimitive() {
483 return doublePrimitive;
484 }
485
486 /**
487 * Sets the double primitive.
488 *
489 * @param doublePrimitive
490 * the new double primitive
491 */
492 public void setDoublePrimitive(double doublePrimitive) {
493 this.doublePrimitive = doublePrimitive;
494 }
495
496 /**
497 * Gets the double object.
498 *
499 * @return the double object
500 */
501 public Double getDoubleObject() {
502 return doubleObject;
503 }
504
505 /**
506 * Sets the double object.
507 *
508 * @param doubleObject
509 * the new double object
510 */
511 public void setDoubleObject(Double doubleObject) {
512 this.doubleObject = doubleObject;
513 }
514
515 /**
516 * Gets the big decimal.
517 *
518 * @return the big decimal
519 */
520 public BigDecimal getBigDecimal() {
521 return bigDecimal;
522 }
523
524 /**
525 * Sets the big decimal.
526 *
527 * @param bigDecimal
528 * the new big decimal
529 */
530 public void setBigDecimal(BigDecimal bigDecimal) {
531 this.bigDecimal = bigDecimal;
532 }
533
534 /**
535 * Gets the big integer.
536 *
537 * @return the big integer
538 */
539 public BigInteger getBigInteger() {
540 return bigInteger;
541 }
542
543 /**
544 * Sets the big integer.
545 *
546 * @param bigInteger
547 * the new big integer
548 */
549 public void setBigInteger(BigInteger bigInteger) {
550 this.bigInteger = bigInteger;
551 }
552 }