1
2
3
4
5 package be.dvw.administration.model;
6
7 /***
8 * @author Gregory Van Seghbroeck
9 *
10 */
11 public class Address {
12 private int id;
13 private String street;
14 private int nr;
15 private int box;
16
17 private City city;
18
19
20 public String toString() {
21 return "[Address] <"+street+" "+nr+(box>0?" box "+box:"")+" "+city+">";
22 }
23
24
25
26 /***
27 * @return Returns the id.
28 */
29 public int getId() {
30 return id;
31 }
32 /***
33 * @param id The id to set.
34 */
35 public void setId(int id) {
36 this.id = id;
37 }
38 /***
39 * @return Returns the box.
40 */
41 public int getBox() {
42 return box;
43 }
44 /***
45 * @param box The box to set.
46 */
47 public void setBox(int bus) {
48 this.box = bus;
49 }
50 /***
51 * @return Returns the city.
52 */
53 public City getCity() {
54 return city;
55 }
56 /***
57 * @param city The city to set.
58 */
59 public void setCity(City gemeente) {
60 this.city = gemeente;
61 }
62 /***
63 * @return Returns the nr.
64 */
65 public int getNr() {
66 return nr;
67 }
68 /***
69 * @param nr The nr to set.
70 */
71 public void setNr(int nummer) {
72 this.nr = nummer;
73 }
74 /***
75 * @return Returns the street.
76 */
77 public String getStreet() {
78 return street;
79 }
80 /***
81 * @param street The street to set.
82 */
83 public void setStreet(String straat) {
84 this.street = straat;
85 }
86 }