View Javadoc
1   /*
2    * Copyright 2016 Andrew Rucker Jones.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package com.opencsv.bean.mocks;
17  
18  import com.opencsv.bean.*;
19  import com.opencsv.bean.customconverter.ConvertGermanToBoolean;
20  import com.opencsv.bean.customconverter.ConvertSplitOnWhitespace;
21  
22  import java.math.BigDecimal;
23  import java.math.BigInteger;
24  import java.util.List;
25  
26  /**
27   * A test class that should provide full coverage for tests of the opencsv
28   * annotations and their custom functions.
29   *
30   * @author Andrew Rucker Jones
31   */
32  public class AnnotatedMockBeanCustom {
33  
34      /**
35       * <p>Used for the following test cases:<ul>
36       * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
37       * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
38       * <li>{@link com.opencsv.bean.StatefulBeanToCsvTest#writeEmptyFieldWithConvertGermanToBooleanRequired()}</li>
39       * </ul></p>
40       */
41      @CsvCustomBindByName(column = "bool1", converter = ConvertGermanToBoolean.class, required = true)
42      @CsvCustomBindByPosition(position = 1, converter = ConvertGermanToBoolean.class, required = true)
43      private Boolean boolWrapped;
44  
45      /**
46       * <p>Used for the following test cases:<ul>
47       * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
48       * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
49       * </ul></p>
50       */
51      @CsvCustomBindByName(converter = ConvertGermanToBoolean.class, required = true)
52      @CsvCustomBindByPosition(position = 2, converter = ConvertGermanToBoolean.class, required = true)
53      private boolean boolPrimitive;
54  
55      /**
56       * <p>Used for the following test cases:<ul>
57       * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
58       * <li>{@link com.opencsv.bean.AnnotationTest#testCustomByNameWrappedPrimitiveDataTypeMismatch()}</li>
59       * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
60       * <li>{@link com.opencsv.bean.AnnotationTest#testCustomByPositionWrappedPrimitiveDataTypeMismatch()}</li>
61       * </ul></p>
62       * <p>Used for the following test cases, writing:<ul>
63       * <li>Writing with ConvertGermanToBoolean</li>
64       * </ul></p>
65       */
66      @CsvCustomBindByName(column = "bool2", converter = ConvertGermanToBoolean.class)
67      @CsvCustomBindByPosition(position = 45, converter = ConvertGermanToBoolean.class)
68      private Boolean boolWrappedOptional;
69  
70      /**
71       * <p>Used for the following test cases:<ul>
72       * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
73       * </ul></p>
74       */
75      @CsvCustomBindByName(column = "bool3", converter = ConvertGermanToBoolean.class)
76      @CsvCustomBindByPosition(position = 46, converter = ConvertGermanToBoolean.class)
77      private boolean boolPrimitiveOptional;
78  
79      /**
80       * <p>Used for the following test cases:<ul>
81       * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
82       * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
83       * </ul></p>
84       */
85      @CsvCustomBindByName(column = "byte1", converter = CustomTestMapper.class)
86      @CsvCustomBindByPosition(position = 3, converter = CustomTestMapper.class)
87      private Byte byteWrappedDefaultLocale;
88  
89      /**
90       * <p>Used for the following test cases:<ul>
91       * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
92       * </ul></p>
93       */
94      @CsvCustomBindByName(column = "byte2", converter = CustomTestMapper.class)
95      @CsvCustomBindByPosition(position = 4, converter = CustomTestMapper.class)
96      private Byte byteWrappedSetLocale;
97  
98      /**
99       * <p>Used for the following test cases:<ul>
100      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
101      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
102      * </ul></p>
103      * <p>Used for the following test cases, writing:<ul>
104      * <li>Writing with @CsvBindByPosition and @CsvCustomBindByPosition</li>
105      * </ul></p>
106      */
107     @CsvCustomBindByName(column = "byte3", converter = CustomTestMapper.class)
108     @CsvBindByName(column = "byte1")
109     @CsvCustomBindByPosition(position = 5, converter = CustomTestMapper.class)
110     @CsvBindByPosition(position = 3)
111     private byte bytePrimitiveDefaultLocale;
112 
113     /**
114      * <p>Used for the following test cases:<ul>
115      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
116      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
117      * </ul></p>
118      */
119     @CsvCustomBindByName(column = "double1", converter = CustomTestMapper.class)
120     @CsvCustomBindByPosition(position = 7, converter = CustomTestMapper.class)
121     private Double doubleWrappedDefaultLocale;
122 
123     /**
124      * <p>Used for the following test cases:<ul>
125      * <li></li>
126      * </ul></p>
127      */
128     @CsvCustomBindByName(column = "double2", converter = CustomTestMapper.class)
129     @CsvCustomBindByPosition(position = 8, converter = CustomTestMapper.class)
130     private Double doubleWrappedSetLocale;
131 
132     /**
133      * <p>Used for the following test cases:<ul>
134      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
135      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
136      * </ul></p>
137      */
138     @CsvCustomBindByName(column = "double3", converter = CustomTestMapper.class)
139     @CsvCustomBindByPosition(position = 9, converter = CustomTestMapper.class)
140     private double doublePrimitiveDefaultLocale;
141 
142     /**
143      * <p>Used for the following test cases:<ul>
144      * <li></li>
145      * </ul></p>
146      */
147     @CsvCustomBindByName(column = "double4", converter = CustomTestMapper.class)
148     @CsvCustomBindByPosition(position = 10, converter = CustomTestMapper.class)
149     private double doublePrimitiveSetLocale;
150 
151     /**
152      * <p>Used for the following test cases:<ul>
153      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
154      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
155      * </ul></p>
156      */
157     @CsvCustomBindByName(column = "float1", converter = CustomTestMapper.class)
158     @CsvCustomBindByPosition(position = 11, converter = CustomTestMapper.class)
159     private Float floatWrappedDefaultLocale;
160 
161     /**
162      * <p>Used for the following test cases:<ul>
163      * <li></li>
164      * </ul></p>
165      */
166     @CsvCustomBindByName(column = "float2", converter = CustomTestMapper.class)
167     @CsvCustomBindByPosition(position = 12, converter = CustomTestMapper.class)
168     private Float floatWrappedSetLocale;
169 
170     /**
171      * <p>Used for the following test cases:<ul>
172      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
173      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
174      * </ul></p>
175      */
176     @CsvCustomBindByName(column = "float3", converter = CustomTestMapper.class)
177     @CsvCustomBindByPosition(position = 13, converter = CustomTestMapper.class)
178     private float floatPrimitiveDefaultLocale;
179 
180     /**
181      * <p>Used for the following test cases:<ul>
182      * <li></li>
183      * </ul></p>
184      */
185     @CsvCustomBindByName(column = "float4", converter = CustomTestMapper.class)
186     @CsvCustomBindByPosition(position = 14, converter = CustomTestMapper.class)
187     private float floatPrimitiveSetLocale;
188 
189     /**
190      * <p>Used for the following test cases:<ul>
191      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
192      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
193      * </ul></p>
194      */
195     @CsvCustomBindByName(column = "integer1", converter = CustomTestMapper.class)
196     @CsvCustomBindByPosition(position = 15, converter = CustomTestMapper.class)
197     private Integer integerWrappedDefaultLocale;
198 
199     /**
200      * <p>Used for the following test cases:<ul>
201      * <li></li>
202      * </ul></p>
203      */
204     @CsvCustomBindByName(column = "integer2", converter = CustomTestMapper.class)
205     @CsvCustomBindByPosition(position = 16, converter = CustomTestMapper.class)
206     private Integer integerWrappedSetLocale;
207 
208     /**
209      * <p>Used for the following test cases:<ul>
210      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
211      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
212      * </ul></p>
213      */
214     @CsvCustomBindByName(column = "integer3", converter = CustomTestMapper.class)
215     @CsvCustomBindByPosition(position = 17, converter = CustomTestMapper.class)
216     private int integerPrimitiveDefaultLocale;
217 
218     /**
219      * <p>Used for the following test cases:<ul>
220      * <li></li>
221      * </ul></p>
222      */
223     @CsvCustomBindByName(column = "integer4", converter = CustomTestMapper.class)
224     @CsvCustomBindByPosition(position = 18, converter = CustomTestMapper.class)
225     private int integerPrimitiveSetLocale;
226 
227     /**
228      * <p>Used for the following test cases:<ul>
229      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
230      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
231      * </ul></p>
232      */
233     @CsvCustomBindByName(column = "long1", converter = CustomTestMapper.class)
234     @CsvCustomBindByPosition(position = 19, converter = CustomTestMapper.class)
235     private Long longWrappedDefaultLocale;
236 
237     /**
238      * <p>Used for the following test cases:<ul>
239      * <li></li>
240      * </ul></p>
241      */
242     @CsvCustomBindByName(column = "long2", converter = CustomTestMapper.class)
243     @CsvCustomBindByPosition(position = 20, converter = CustomTestMapper.class)
244     private Long longWrappedSetLocale;
245 
246     /**
247      * <p>Used for the following test cases:<ul>
248      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
249      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
250      * </ul></p>
251      */
252     @CsvCustomBindByName(column = "long3", converter = CustomTestMapper.class)
253     @CsvCustomBindByPosition(position = 21, converter = CustomTestMapper.class)
254     private long longPrimitiveDefaultLocale;
255 
256     /**
257      * <p>Used for the following test cases:<ul>
258      * <li></li>
259      * </ul></p>
260      */
261     @CsvCustomBindByName(column = "long4", converter = CustomTestMapper.class)
262     @CsvCustomBindByPosition(position = 22, converter = CustomTestMapper.class)
263     private long longPrimitiveSetLocale;
264 
265     /**
266      * <p>Used for the following test cases:<ul>
267      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
268      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
269      * </ul></p>
270      */
271     @CsvCustomBindByName(column = "short1", converter = CustomTestMapper.class)
272     @CsvCustomBindByPosition(position = 23, converter = CustomTestMapper.class)
273     private Short shortWrappedDefaultLocale;
274 
275     /**
276      * <p>Used for the following test cases:<ul>
277      * <li></li>
278      * </ul></p>
279      */
280     @CsvCustomBindByName(column = "short2", converter = CustomTestMapper.class)
281     @CsvCustomBindByPosition(position = 24, converter = CustomTestMapper.class)
282     private Short shortWrappedSetLocale;
283 
284     /**
285      * <p>Used for the following test cases:<ul>
286      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
287      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
288      * </ul></p>
289      */
290     @CsvCustomBindByName(column = "short3", converter = CustomTestMapper.class)
291     @CsvCustomBindByPosition(position = 25, converter = CustomTestMapper.class)
292     private short shortPrimitiveDefaultLocale;
293 
294     /**
295      * <p>Used for the following test cases:<ul>
296      * <li></li>
297      * </ul></p>
298      */
299     @CsvCustomBindByName(column = "short4", converter = CustomTestMapper.class)
300     @CsvCustomBindByPosition(position = 26, converter = CustomTestMapper.class)
301     private short shortPrimitiveSetLocale;
302 
303     /**
304      * <p>Used for the following test cases:<ul>
305      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
306      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
307      * </ul></p>
308      */
309     @CsvCustomBindByName(column = "char1", converter = CustomTestMapper.class)
310     @CsvCustomBindByPosition(position = 27, converter = CustomTestMapper.class)
311     private Character characterWrapped;
312 
313     /**
314      * <p>Used for the following test cases:<ul>
315      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
316      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
317      * </ul></p>
318      */
319     @CsvCustomBindByName(column = "char2", converter = CustomTestMapper.class)
320     @CsvCustomBindByPosition(position = 28, converter = CustomTestMapper.class)
321     private char characterPrimitive;
322 
323     /**
324      * <p>Used for the following test cases:<ul>
325      * <li></li>
326      * </ul></p>
327      */
328     @CsvCustomBindByName(column = "bigdecimal1", converter = CustomTestMapper.class)
329     @CsvCustomBindByPosition(position = 29, converter = CustomTestMapper.class)
330     private BigDecimal bigdecimalDefaultLocale;
331 
332     /**
333      * <p>Used for the following test cases:<ul>
334      * <li></li>
335      * </ul></p>
336      */
337     @CsvCustomBindByName(column = "bigdecimal2", converter = CustomTestMapper.class)
338     @CsvCustomBindByPosition(position = 30, converter = CustomTestMapper.class)
339     private BigDecimal bigdecimalSetLocale;
340 
341     /**
342      * <p>Used for the following test cases:<ul>
343      * <li></li>
344      * </ul></p>
345      */
346     @CsvCustomBindByName(column = "biginteger1", converter = CustomTestMapper.class)
347     @CsvCustomBindByPosition(position = 31, converter = CustomTestMapper.class)
348     private BigInteger bigintegerDefaultLocale;
349 
350     /**
351      * <p>Used for the following test cases:<ul>
352      * <li></li>
353      * </ul></p>
354      */
355     @CsvCustomBindByName(column = "biginteger2", converter = CustomTestMapper.class)
356     @CsvCustomBindByPosition(position = 32, converter = CustomTestMapper.class)
357     private BigInteger bigintegerSetLocale;
358 
359     /**
360      * <p>Used for the following test cases:<ul>
361      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
362      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
363      * </ul></p>
364      */
365     @CsvCustomBindByName(column = "string1", converter = CustomTestMapper.class)
366     @CsvCustomBindByPosition(position = 0, converter = CustomTestMapper.class)
367     private String stringClass;
368 
369     /**
370      * <p>Used for the following test cases:<ul>
371      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
372      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
373      * </ul></p>
374      * <p>Used for the following test cases, writing:<ul>
375      * <li>Writing with ConvertSplitOnWhitespace</li>
376      * </ul></p>
377      */
378     @CsvCustomBindByName(column = "string2", converter = ConvertSplitOnWhitespace.class)
379     @CsvCustomBindByPosition(position = 47, converter = ConvertSplitOnWhitespace.class)
380     private List<String> complexString;
381 
382     /**
383      * <p>Used for the following test cases:<ul>
384      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
385      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
386      * </ul></p>
387      */
388     @CsvCustomBindByName(column = "complex1", converter = ConverterComplexClassForCustomAnnotation.class)
389     @CsvCustomBindByPosition(position = 48, converter = ConverterComplexClassForCustomAnnotation.class)
390     private ComplexClassForCustomAnnotation complexClass1;
391 
392     /**
393      * <p>Used for the following test cases:<ul>
394      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
395      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
396      * </ul></p>
397      */
398     @CsvCustomBindByName(column = "complex2", converter = ConverterComplexClassForCustomAnnotation.class)
399     @CsvCustomBindByPosition(position = 49, converter = ConverterComplexClassForCustomAnnotation.class)
400     private ComplexClassForCustomAnnotation complexClass2;
401 
402     /**
403      * <p>Used for the following test cases:<ul>
404      * <li>{@link com.opencsv.bean.AnnotationTest#testMapByNameComplexTypeWrongType()}</li>
405      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
406      * <li>{@link com.opencsv.bean.AnnotationTest#testMapByPositionComplexTypeWrongType()}</li>
407      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
408      * </ul></p>
409      */
410     @CsvCustomBindByName(column = "complex3", converter = ConverterComplexClassForCustomAnnotation.class)
411     @CsvCustomBindByPosition(position = 50, converter = ConverterComplexClassForCustomAnnotation.class)
412     private ComplexClassForCustomAnnotation complexClass3;
413     
414     /**
415      * <p>Used for the following test cases:<ul>
416      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByName()}</li>
417      * <li>{@link com.opencsv.bean.AnnotationTest#testGoodDataCustomByPosition()}</li>
418      * <li>{@link com.opencsv.bean.AnnotationTest#testCustomConverterRequiredEmptyInput()}</li>
419      * </ul></p>
420      */
421     @CsvCustomBindByName(column = "requiredWithCustom", converter = CustomTestMapper.class, required = true)
422     @CsvCustomBindByPosition(position = 51, converter = CustomTestMapper.class, required = true)
423     private String requiredWithCustom;
424 
425     public Boolean getBoolWrapped() {
426         return boolWrapped;
427     }
428 
429     public void setBoolWrapped(Boolean boolWrapped) {
430         this.boolWrapped = boolWrapped;
431     }
432 
433     public boolean isBoolPrimitive() {
434         return boolPrimitive;
435     }
436 
437     public void setBoolPrimitive(boolean boolPrimitive) {
438         this.boolPrimitive = boolPrimitive;
439     }
440 
441     public Byte getByteWrappedDefaultLocale() {
442         return byteWrappedDefaultLocale;
443     }
444 
445     public void setByteWrappedDefaultLocale(Byte byteWrappedDefaultLocale) {
446         this.byteWrappedDefaultLocale = byteWrappedDefaultLocale;
447     }
448 
449     public Byte getByteWrappedSetLocale() {
450         return byteWrappedSetLocale;
451     }
452 
453     public void setByteWrappedSetLocale(Byte byteWrappedSetLocale) {
454         this.byteWrappedSetLocale = byteWrappedSetLocale;
455     }
456 
457     public byte getBytePrimitiveDefaultLocale() {
458         return bytePrimitiveDefaultLocale;
459     }
460 
461     public void setBytePrimitiveDefaultLocale(byte bytePrimitiveDefaultLocale) {
462         this.bytePrimitiveDefaultLocale = bytePrimitiveDefaultLocale;
463     }
464 
465     public Double getDoubleWrappedDefaultLocale() {
466         return doubleWrappedDefaultLocale;
467     }
468 
469     public void setDoubleWrappedDefaultLocale(Double doubleWrappedDefaultLocale) {
470         this.doubleWrappedDefaultLocale = doubleWrappedDefaultLocale;
471     }
472 
473     public Double getDoubleWrappedSetLocale() {
474         return doubleWrappedSetLocale;
475     }
476 
477     public void setDoubleWrappedSetLocale(Double doubleWrappedSetLocale) {
478         this.doubleWrappedSetLocale = doubleWrappedSetLocale;
479     }
480 
481     public double getDoublePrimitiveDefaultLocale() {
482         return doublePrimitiveDefaultLocale;
483     }
484 
485     public void setDoublePrimitiveDefaultLocale(double doublePrimitiveDefaultLocale) {
486         this.doublePrimitiveDefaultLocale = doublePrimitiveDefaultLocale;
487     }
488 
489     public double getDoublePrimitiveSetLocale() {
490         return doublePrimitiveSetLocale;
491     }
492 
493     public void setDoublePrimitiveSetLocale(double doublePrimitiveSetLocale) {
494         this.doublePrimitiveSetLocale = doublePrimitiveSetLocale;
495     }
496 
497     public Float getFloatWrappedDefaultLocale() {
498         return floatWrappedDefaultLocale;
499     }
500 
501     public void setFloatWrappedDefaultLocale(Float floatWrappedDefaultLocale) {
502         this.floatWrappedDefaultLocale = floatWrappedDefaultLocale;
503     }
504 
505     public Float getFloatWrappedSetLocale() {
506         return floatWrappedSetLocale;
507     }
508 
509     public void setFloatWrappedSetLocale(Float floatWrappedSetLocale) {
510         this.floatWrappedSetLocale = floatWrappedSetLocale;
511     }
512 
513     public float getFloatPrimitiveDefaultLocale() {
514         return floatPrimitiveDefaultLocale;
515     }
516 
517     public void setFloatPrimitiveDefaultLocale(float floatPrimitiveDefaultLocale) {
518         this.floatPrimitiveDefaultLocale = floatPrimitiveDefaultLocale;
519     }
520 
521     public float getFloatPrimitiveSetLocale() {
522         return floatPrimitiveSetLocale;
523     }
524 
525     public void setFloatPrimitiveSetLocale(float floatPrimitiveSetLocale) {
526         this.floatPrimitiveSetLocale = floatPrimitiveSetLocale;
527     }
528 
529     public Integer getIntegerWrappedDefaultLocale() {
530         return integerWrappedDefaultLocale;
531     }
532 
533     public void setIntegerWrappedDefaultLocale(Integer integerWrappedDefaultLocale) {
534         this.integerWrappedDefaultLocale = integerWrappedDefaultLocale;
535     }
536 
537     public Integer getIntegerWrappedSetLocale() {
538         return integerWrappedSetLocale;
539     }
540 
541     public void setIntegerWrappedSetLocale(Integer integerWrappedSetLocale) {
542         this.integerWrappedSetLocale = integerWrappedSetLocale;
543     }
544 
545     public int getIntegerPrimitiveDefaultLocale() {
546         return integerPrimitiveDefaultLocale;
547     }
548 
549     public void setIntegerPrimitiveDefaultLocale(int integerPrimitiveDefaultLocale) {
550         this.integerPrimitiveDefaultLocale = integerPrimitiveDefaultLocale;
551     }
552 
553     public int getIntegerPrimitiveSetLocale() {
554         return integerPrimitiveSetLocale;
555     }
556 
557     public void setIntegerPrimitiveSetLocale(int integerPrimitiveSetLocale) {
558         this.integerPrimitiveSetLocale = integerPrimitiveSetLocale;
559     }
560 
561     public Long getLongWrappedDefaultLocale() {
562         return longWrappedDefaultLocale;
563     }
564 
565     public void setLongWrappedDefaultLocale(Long longWrappedDefaultLocale) {
566         this.longWrappedDefaultLocale = longWrappedDefaultLocale;
567     }
568 
569     public Long getLongWrappedSetLocale() {
570         return longWrappedSetLocale;
571     }
572 
573     public void setLongWrappedSetLocale(Long longWrappedSetLocale) {
574         this.longWrappedSetLocale = longWrappedSetLocale;
575     }
576 
577     public long getLongPrimitiveDefaultLocale() {
578         return longPrimitiveDefaultLocale;
579     }
580 
581     public void setLongPrimitiveDefaultLocale(long longPrimitiveDefaultLocale) {
582         this.longPrimitiveDefaultLocale = longPrimitiveDefaultLocale;
583     }
584 
585     public long getLongPrimitiveSetLocale() {
586         return longPrimitiveSetLocale;
587     }
588 
589     public void setLongPrimitiveSetLocale(long longPrimitiveSetLocale) {
590         this.longPrimitiveSetLocale = longPrimitiveSetLocale;
591     }
592 
593     public Short getShortWrappedDefaultLocale() {
594         return shortWrappedDefaultLocale;
595     }
596 
597     public void setShortWrappedDefaultLocale(Short shortWrappedDefaultLocale) {
598         this.shortWrappedDefaultLocale = shortWrappedDefaultLocale;
599     }
600 
601     public Short getShortWrappedSetLocale() {
602         return shortWrappedSetLocale;
603     }
604 
605     public void setShortWrappedSetLocale(Short shortWrappedSetLocale) {
606         this.shortWrappedSetLocale = shortWrappedSetLocale;
607     }
608 
609     public short getShortPrimitiveDefaultLocale() {
610         return shortPrimitiveDefaultLocale;
611     }
612 
613     public void setShortPrimitiveDefaultLocale(short shortPrimitiveDefaultLocale) {
614         this.shortPrimitiveDefaultLocale = shortPrimitiveDefaultLocale;
615     }
616 
617     public short getShortPrimitiveSetLocale() {
618         return shortPrimitiveSetLocale;
619     }
620 
621     public void setShortPrimitiveSetLocale(short shortPrimitiveSetLocale) {
622         this.shortPrimitiveSetLocale = shortPrimitiveSetLocale;
623     }
624 
625     public Character getCharacterWrapped() {
626         return characterWrapped;
627     }
628 
629     public void setCharacterWrapped(Character characterWrapped) {
630         this.characterWrapped = characterWrapped;
631     }
632 
633     public char getCharacterPrimitive() {
634         return characterPrimitive;
635     }
636 
637     public void setCharacterPrimitive(char characterPrimitive) {
638         this.characterPrimitive = characterPrimitive;
639     }
640 
641     public BigDecimal getBigdecimalDefaultLocale() {
642         return bigdecimalDefaultLocale;
643     }
644 
645     public void setBigdecimalDefaultLocale(BigDecimal bigdecimalDefaultLocale) {
646         this.bigdecimalDefaultLocale = bigdecimalDefaultLocale;
647     }
648 
649     public BigDecimal getBigdecimalSetLocale() {
650         return bigdecimalSetLocale;
651     }
652 
653     public void setBigdecimalSetLocale(BigDecimal bigdecimalSetLocale) {
654         this.bigdecimalSetLocale = bigdecimalSetLocale;
655     }
656 
657     public BigInteger getBigintegerDefaultLocale() {
658         return bigintegerDefaultLocale;
659     }
660 
661     public void setBigintegerDefaultLocale(BigInteger bigintegerDefaultLocale) {
662         this.bigintegerDefaultLocale = bigintegerDefaultLocale;
663     }
664 
665     public BigInteger getBigintegerSetLocale() {
666         return bigintegerSetLocale;
667     }
668 
669     public void setBigintegerSetLocale(BigInteger bigintegerSetLocale) {
670         this.bigintegerSetLocale = bigintegerSetLocale;
671     }
672 
673     public String getStringClass() {
674         return stringClass;
675     }
676 
677     public void setStringClass(String stringClass) {
678         this.stringClass = stringClass;
679     }
680 
681     public Boolean getBoolWrappedOptional() {
682         return boolWrappedOptional;
683     }
684 
685     public void setBoolWrappedOptional(Boolean boolWrappedOptional) {
686         this.boolWrappedOptional = boolWrappedOptional;
687     }
688 
689     public boolean isBoolPrimitiveOptional() {
690         return boolPrimitiveOptional;
691     }
692 
693     public void setBoolPrimitiveOptional(boolean boolPrimitiveOptional) {
694         this.boolPrimitiveOptional = boolPrimitiveOptional;
695     }
696 
697     public List<String> getComplexString() {
698         return complexString;
699     }
700 
701     public void setComplexString(List<String> complexString) {
702         this.complexString = complexString;
703     }
704 
705     public ComplexClassForCustomAnnotation getComplexClass1() {
706         return complexClass1;
707     }
708     
709     /* Commented out for test case mapping to complex object with private access, no setter method.
710     public void setComplexClass1(ComplexClassForCustomAnnotation complexClass1) {
711         this.complexClass1 = complexClass1;
712     }
713     */
714 
715     public ComplexClassForCustomAnnotation getComplexClass2() {
716         return complexClass2;
717     }
718 
719     public void setComplexClass2(ComplexClassForCustomAnnotation complexClass2) {
720         this.complexClass2 = complexClass2;
721         this.complexClass2.i = Integer.MAX_VALUE - this.complexClass2.i;
722         this.complexClass2.c = 'z';
723         this.complexClass2.s = "Inserted in setter method" + this.complexClass2.s;
724     }
725 
726     public ComplexClassForCustomAnnotation getComplexClass3() {
727         return complexClass3;
728     }
729 
730     /* Private for test case mapping to private complex type with private setter. */
731     @SuppressWarnings("unused")
732     private void setComplexClass3(ComplexClassForCustomAnnotation complexClass3) {
733         this.complexClass3 = new ComplexClassForCustomAnnotation();
734         this.complexClass3.i = -1;
735         this.complexClass3.c = 'z';
736         this.complexClass3.s = "Inserted in setter method";
737     }
738 
739     public String getRequiredWithCustom() {
740         return requiredWithCustom;
741     }
742 
743     public void setRequiredWithCustom(String requiredWithCustom) {
744         this.requiredWithCustom = requiredWithCustom;
745     }
746 
747 }