KickJava   Java API By Example, From Geeks To Geeks.

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


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 HydrateTestObject extends BaseTestObject {
27   private List apples = new ArrayList();
28   private List oranges = new ArrayList();
29   private List vehicles = new ArrayList();
30   private List computers = new ArrayList();
31   private List iterateCars = new ArrayList();
32   private Car[] carArray;
33
34   public List getApples() {
35     return apples;
36   }
37
38   public void setApples(List apples) {
39     this.apples = apples;
40   }
41
42   public List getOranges() {
43     return oranges;
44   }
45
46   public void setOranges(List oranges) {
47     this.oranges = oranges;
48   }
49
50   public List getVehicles() {
51     return vehicles;
52   }
53
54   public void setVehicles(List vehicles) {
55     this.vehicles = vehicles;
56   }
57
58   public void addComputer(AppleComputer car) {
59     computers.add(car);
60   }
61
62   public void addCar(Car car) {
63     this.vehicles.add(car);
64
65   }
66
67   public List getComputers() {
68     return computers;
69   }
70
71   public void setComputers(List computers) {
72     this.computers = computers;
73   }
74
75   public Iterator getIterateCars() {
76     return iterateCars.iterator();
77   }
78
79   public void setIterateCars(List iterateCars) {
80     this.iterateCars = iterateCars;
81   }
82   
83   public void addIterateCar(Car car) {
84     this.iterateCars.add(car);
85   }
86
87   public Car[] getCarArray() {
88     return carArray;
89   }
90
91   public void setCarArray(Car[] carArray) {
92     this.carArray = carArray;
93   }
94 }
95
Popular Tags