1 16 package net.sf.dozer.util.mapping.vo; 17 18 import java.util.*; 19 20 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 |