KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > dozer > util > mapping > vo > TestObjectPrime


1 /*
2  * Copyright 2005-2007 the original author or authors.
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 net.sf.dozer.util.mapping.vo;
17
18 import java.math.BigDecimal JavaDoc;
19 import java.util.Calendar JavaDoc;
20 import java.util.Date JavaDoc;
21 import java.util.GregorianCalendar JavaDoc;
22 import java.util.List JavaDoc;
23
24 import net.sf.dozer.util.mapping.exception.DozerRuntimeException;
25
26 /**
27  * @author garsombke.franz
28  * @author sullins.ben
29  * @author tierney.matt
30  *
31  */

32 public class TestObjectPrime extends BaseTestObject {
33   private String JavaDoc onePrime;
34   private Integer JavaDoc twoPrime;
35   private InsideTestObjectPrime threePrime;
36   private InsideTestObjectPrime insideTestObject;
37   private java.util.List JavaDoc equalNamedList;
38   private java.util.List JavaDoc listForArray;
39   private java.util.List JavaDoc theMappedUnequallyNamedList;
40   private List JavaDoc arrayForLists;
41   private int[] theMappedArray;
42   private double thePrimitive;
43   private int anotherPrimitive;
44   private int bigDecimalToInt;
45   private BigDecimal JavaDoc intToBigDecimal;
46   private Calendar JavaDoc date; //test Calender <-> Date map
47
private GregorianCalendar JavaDoc calendar; //Test Calendar <-> Calendar map
48
private NoCustomMappingsObjectPrime noMappingsObj;
49   private List JavaDoc hintList;
50   private Date JavaDoc timeStamp;
51   private Date JavaDoc dateFromStr;
52   private Double JavaDoc doubleObject;
53   private Long JavaDoc theLongValue;
54   private long[] primitiveArray;
55   private Apple van;
56   private String JavaDoc excludeMe = "excludeMe";
57   private MetalThingyIF vanMetalThingy;
58   private Date JavaDoc blankDate;
59   private Long JavaDoc blankStringToLong;
60   private String JavaDoc createdByFactoryName;
61   private NoExtendBaseObject copyByReferencePrime;
62   private NoExtendBaseObjectGlobalCopyByReference globalCopyByReferencePrime;
63   private Apple[] arrayToSet;
64   private Object JavaDoc[] objectArrayToSet;
65   private Apple[] setToArrayWithValues;
66   private List JavaDoc listToSet;
67   private List JavaDoc setToListWithValues;
68   public static String JavaDoc fieldAccessible;
69   public int fieldAccessiblePrimInt;
70   public InsideTestObjectPrime fieldAccessibleComplexType;
71   private List JavaDoc stringArrayWithNullValue;
72   public List JavaDoc fieldAccessibleArrayToList;
73   private Date JavaDoc overloadSetField;
74   private InsideTestObjectPrime createMethodType;
75   private String JavaDoc excludeMeOneWay = "excludeMeOneWay";
76   private String JavaDoc throwAllowedExceptionOnMapPrime;
77   private String JavaDoc throwNonAllowedExceptionOnMapPrime;
78   
79   public long[] getPrimitiveArray() {
80     return primitiveArray;
81   }
82
83   public void setPrimitiveArray(long[] primitiveArray) {
84     this.primitiveArray = primitiveArray;
85   }
86
87   public Long JavaDoc getTheLongValue() {
88     return theLongValue;
89   }
90
91   public void setTheLongValue(Long JavaDoc theLongValue) {
92     this.theLongValue = theLongValue;
93   }
94
95
96   public GregorianCalendar JavaDoc getCalendar() {
97     return calendar;
98   }
99
100    public void setCalendar(GregorianCalendar JavaDoc calendar) {
101       this.calendar = calendar;
102    }
103
104   public void setAnotherPrimitive(int anotherPrimitive) {
105     this.anotherPrimitive = anotherPrimitive;
106   }
107
108   public int getAnotherPrimitive() {
109     return anotherPrimitive;
110   }
111
112   public void setEqualNamedList(java.util.List JavaDoc equalNamedList) {
113     this.equalNamedList = equalNamedList;
114   }
115
116   public java.util.List JavaDoc getEqualNamedList() {
117     return equalNamedList;
118   }
119
120   public void setOnePrime(String JavaDoc onePrime) {
121     this.onePrime = onePrime;
122   }
123
124   public String JavaDoc getOnePrime() {
125     return onePrime;
126   }
127
128   public void setTheMappedArray(int[] mappedArray) {
129     theMappedArray = mappedArray;
130   }
131
132   public int[] getTheMappedArray() {
133     return theMappedArray;
134   }
135
136   public void setTheMappedUnequallyNamedList(java.util.List JavaDoc theMappedUnequallyNamedList) {
137     this.theMappedUnequallyNamedList = theMappedUnequallyNamedList;
138   }
139
140   public java.util.List JavaDoc getTheMappedUnequallyNamedList() {
141     return theMappedUnequallyNamedList;
142   }
143
144   public void setThePrimitive(double primitive) {
145     thePrimitive = primitive;
146   }
147
148   public double getThePrimitive() {
149     return thePrimitive;
150   }
151
152   public void setThreePrime(InsideTestObjectPrime threePrime) {
153     this.threePrime = threePrime;
154   }
155
156   public InsideTestObjectPrime getThreePrime() {
157     return threePrime;
158   }
159
160   public void setTwoPrime(Integer JavaDoc twoPrime) {
161     this.twoPrime = twoPrime;
162   }
163
164   public Integer JavaDoc getTwoPrime() {
165     return twoPrime;
166   }
167
168   public void setListForArray(java.util.List JavaDoc listForArray) {
169     this.listForArray = listForArray;
170   }
171
172   public java.util.List JavaDoc getListForArray() {
173     return listForArray;
174   }
175
176   public InsideTestObjectPrime getInsideTestObject() {
177     return insideTestObject;
178   }
179
180   public void setInsideTestObject(InsideTestObjectPrime insideTestObject) {
181     this.insideTestObject = insideTestObject;
182   }
183
184   public int getBigDecimalToInt() {
185     return bigDecimalToInt;
186   }
187
188   public void setBigDecimalToInt(int bigDecimalToInt) {
189     this.bigDecimalToInt = bigDecimalToInt;
190   }
191
192   public BigDecimal JavaDoc getIntToBigDecimal() {
193     return intToBigDecimal;
194   }
195
196   public void setIntToBigDecimal(BigDecimal JavaDoc intToBigDecimal) {
197     this.intToBigDecimal = intToBigDecimal;
198   }
199
200   public Calendar JavaDoc getDate() {
201     return date;
202   }
203
204   public void setDate(Calendar JavaDoc calendar) {
205     this.date = calendar;
206   }
207
208   public NoCustomMappingsObjectPrime getNoMappingsObj() {
209     return noMappingsObj;
210   }
211
212   public void setNoMappingsObj(NoCustomMappingsObjectPrime noMappingsObj) {
213     this.noMappingsObj = noMappingsObj;
214   }
215
216     public List JavaDoc getArrayForLists() {
217         return arrayForLists;
218     }
219
220     public void setArrayForLists(List JavaDoc arrayForLists) {
221         this.arrayForLists = arrayForLists;
222     }
223
224     public List JavaDoc getHintList() {
225         return hintList;
226     }
227
228     public void setHintList(List JavaDoc hintList) {
229         this.hintList = hintList;
230     }
231
232   public Date JavaDoc getTimeStamp() {
233     return timeStamp;
234   }
235
236   public void setTimeStamp(Date JavaDoc timeStamp) {
237     this.timeStamp = timeStamp;
238   }
239
240   public Date JavaDoc getDateFromStr() {
241     return dateFromStr;
242   }
243
244   public void setDateFromStr(Date JavaDoc dateFromStr) {
245     this.dateFromStr = dateFromStr;
246   }
247
248   public Double JavaDoc getDoubleObject() {
249     return doubleObject;
250   }
251   public void setDoubleObject(Double JavaDoc doubleObject) {
252     this.doubleObject = doubleObject;
253   }
254
255   public Apple getVan() {
256     return van;
257   }
258
259   public void setVan(Apple van) {
260     this.van = van;
261   }
262
263   public String JavaDoc getExcludeMe() {
264     return excludeMe;
265   }
266
267   public void setExcludeMe(String JavaDoc excludeMe) {
268     this.excludeMe = excludeMe;
269   }
270
271   public MetalThingyIF getVanMetalThingy() {
272     return vanMetalThingy;
273   }
274
275   public void setVanMetalThingy(MetalThingyIF vanMetalThingy) {
276     this.vanMetalThingy = vanMetalThingy;
277   }
278
279   public Date JavaDoc getBlankDate() {
280     return blankDate;
281   }
282
283   public void setBlankDate(Date JavaDoc blankDate) {
284     this.blankDate = blankDate;
285   }
286
287   public Long JavaDoc getBlankStringToLong() {
288     return blankStringToLong;
289   }
290
291   public void setBlankStringToLong(Long JavaDoc blankStringToLong) {
292     this.blankStringToLong = blankStringToLong;
293   }
294
295   public String JavaDoc getCreatedByFactoryName() {
296     return createdByFactoryName;
297   }
298
299   public void setCreatedByFactoryName(String JavaDoc createdByFactoryName) {
300     this.createdByFactoryName = createdByFactoryName;
301   }
302
303   public NoExtendBaseObject getCopyByReferencePrime() {
304     return copyByReferencePrime;
305   }
306
307   public void setCopyByReferencePrime(NoExtendBaseObject copyByReferencePrime) {
308     this.copyByReferencePrime = copyByReferencePrime;
309   }
310
311   public NoExtendBaseObjectGlobalCopyByReference getGlobalCopyByReferencePrime() {
312     return globalCopyByReferencePrime;
313   }
314
315   public void setGlobalCopyByReferencePrime(NoExtendBaseObjectGlobalCopyByReference globalCopyByReferencePrime) {
316     this.globalCopyByReferencePrime = globalCopyByReferencePrime;
317   }
318
319   public Apple[] getArrayToSet() {
320     return arrayToSet;
321   }
322
323   public void setArrayToSet(Apple[] arrayToSet) {
324     this.arrayToSet = arrayToSet;
325   }
326
327   public Object JavaDoc[] getObjectArrayToSet() {
328     return objectArrayToSet;
329   }
330
331   public void setObjectArrayToSet(Object JavaDoc[] objectArrayToSet) {
332     this.objectArrayToSet = objectArrayToSet;
333   }
334
335   public Apple[] getSetToArrayWithValues() {
336     return setToArrayWithValues;
337   }
338
339   public void setSetToArrayWithValues(Apple[] setToArrayWithValues) {
340     this.setToArrayWithValues = setToArrayWithValues;
341   }
342
343   public List JavaDoc getListToSet() {
344     return listToSet;
345   }
346
347   public void setListToSet(List JavaDoc listToSet) {
348     this.listToSet = listToSet;
349   }
350
351   public List JavaDoc getSetToListWithValues() {
352     return setToListWithValues;
353   }
354
355   public void setSetToListWithValues(List JavaDoc setToListWithValues) {
356     this.setToListWithValues = setToListWithValues;
357   }
358
359   public List JavaDoc getStringArrayWithNullValue() {
360     return stringArrayWithNullValue;
361   }
362
363   public void setStringArrayWithNullValue(List JavaDoc stringArrayWithNullValue) {
364     this.stringArrayWithNullValue = stringArrayWithNullValue;
365   }
366
367   public Date JavaDoc getOverloadSetField() {
368     return overloadSetField;
369   }
370
371   public void setOverloadSetField(Date JavaDoc date) {
372     this.overloadSetField = date;
373   }
374
375   public void setOverloadSetField(InsideTestObject ito) {
376   }
377
378   public InsideTestObjectPrime getCreateMethodType() {
379     return createMethodType;
380   }
381
382   public void setCreateMethodType(InsideTestObjectPrime createMethodType) {
383     this.createMethodType = createMethodType;
384   }
385
386   public String JavaDoc getExcludeMeOneWay() {
387     return excludeMeOneWay;
388   }
389
390   public void setExcludeMeOneWay(String JavaDoc excludeMeOneWay) {
391     this.excludeMeOneWay = excludeMeOneWay;
392   }
393
394   public String JavaDoc getThrowAllowedExceptionOnMapPrime() {
395     return throwAllowedExceptionOnMapPrime;
396   }
397
398   public void setThrowAllowedExceptionOnMapPrime(String JavaDoc throwAllowedExceptionOnMapPrime) {
399     throw new DozerRuntimeException("Checking Allowed Exceptions");
400   }
401
402   public String JavaDoc getThrowNonAllowedExceptionOnMapPrime() {
403     return throwNonAllowedExceptionOnMapPrime;
404   }
405
406   public void setThrowNonAllowedExceptionOnMapPrime(String JavaDoc throwNonAllowedExceptionOnMapPrime) {
407     throw new RuntimeException JavaDoc("Checking Allowed Exceptions");
408   }
409   
410 }
411
Popular Tags