1 25 26 package org.objectweb.speedo.pobjects.fetchgroup; 27 28 31 public class Address { 32 33 private String street; 34 private String city; 35 private Country country; 36 37 public Address() { 38 } 39 40 public Address(String street, String city, Country country){ 41 this.street = street; 42 this.city = city; 43 this.country = country; 44 } 45 46 public String getCity() { 47 return city; 48 } 49 50 public void setCity(String city) { 51 this.city = city; 52 } 53 54 public Country getCountry() { 55 return country; 56 } 57 58 public void setCountry(Country country) { 59 this.country = country; 60 } 61 62 public String getStreet() { 63 return street; 64 } 65 66 public void setStreet(String street) { 67 this.street = street; 68 } 69 70 public String toString(){ 71 String s = "Address[" + street + ", " + city + ", "; 72 if(country != null) 73 s += country.toString(); 74 else 75 s += "no country"; 76 return s + "]"; 77 } 78 } 79 | Popular Tags |