1 18 package net.sf.uitags.testdata; 19 20 import java.util.ArrayList ; 21 import java.util.List ; 22 23 public class Continent { 24 private String id; 25 private String name; 26 private List countries; 27 28 public Continent(String id, String name) { 29 this.id = id; 30 this.name = name; 31 this.countries = new ArrayList (); 32 } 33 34 public void setId(String value) { this.id = value; } 35 public String getId() { return this.id; } 36 37 public void setName(String value) { this.name = value; } 38 public String getName() { return this.name; } 39 40 public void addCountry(Country country) { 41 this.countries.add(country); 42 country.setContinent(this); 43 } 44 public List getCountries() { return this.countries; } 45 } 46 | Popular Tags |