KickJava   Java API By Example, From Geeks To Geeks.

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


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.util.*;
19
20 /**
21  * @author garsombke.franz
22  * @author sullins.ben
23  * @author tierney.matt
24  *
25  */

26 public class DehydrateTestObject extends BaseTestObject {
27   private List cars = new ArrayList();
28   private List vans = new ArrayList();
29   private List appleComputers = null;
30   private List fruit = new ArrayList();
31   private List iterateCars = new ArrayList();
32   private List iterateMoreCars = new ArrayList();
33
34   public List getFruit() {
35     return fruit;
36   }
37
38   public void setFruit(List fruit) {
39     this.fruit = fruit;
40   }
41
42   public List getCars() {
43     return cars;
44   }
45
46   public void setCars(List cars) {
47     this.cars = cars;
48   }
49
50   public List getAppleComputers() {
51     return appleComputers;
52   }
53
54   public void setAppleComputers(List appleComputers) {
55     this.appleComputers = appleComputers;
56   }
57
58   public List getVans() {
59     return vans;
60   }
61
62   public void setVans(List vans) {
63     this.vans = vans;
64   }
65
66   public Car buildCar() {
67     Car car = new Car();
68     car.setName("Build by buildCar");
69     return car;
70   }
71
72   public List myIterateCars() {
73     return iterateCars;
74   }
75
76   public void setIterateCars(List iterateCars) {
77     this.iterateCars = iterateCars;
78   }
79   
80   public void addCar(Car car) {
81     this.iterateCars.add(car);
82   }
83
84   public List getIterateMoreCars() {
85     return iterateMoreCars;
86   }
87
88   public void setIterateMoreCars(List iterateMoreCars) {
89     this.iterateMoreCars = iterateMoreCars;
90   }
91   
92   public void addMoreCar(Car car) {
93     this.iterateMoreCars.add(car);
94   }
95   
96 }
97
Popular Tags