| %line | %branch | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| be.dvw.administration.model.Address |
|
|
| 1 | /* |
|
| 2 | * Created on Jun 20, 2005 |
|
| 3 | */ |
|
| 4 | ||
| 5 | package be.dvw.administration.model; |
|
| 6 | ||
| 7 | /** |
|
| 8 | * @author Gregory Van Seghbroeck |
|
| 9 | * |
|
| 10 | */ |
|
| 11 | 0 | 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 | 0 | 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 | 0 | return id; |
| 31 | } |
|
| 32 | /** |
|
| 33 | * @param id The id to set. |
|
| 34 | */ |
|
| 35 | public void setId(int id) { |
|
| 36 | 0 | this.id = id; |
| 37 | 0 | } |
| 38 | /** |
|
| 39 | * @return Returns the box. |
|
| 40 | */ |
|
| 41 | public int getBox() { |
|
| 42 | 0 | return box; |
| 43 | } |
|
| 44 | /** |
|
| 45 | * @param box The box to set. |
|
| 46 | */ |
|
| 47 | public void setBox(int bus) { |
|
| 48 | 0 | this.box = bus; |
| 49 | 0 | } |
| 50 | /** |
|
| 51 | * @return Returns the city. |
|
| 52 | */ |
|
| 53 | public City getCity() { |
|
| 54 | 0 | return city; |
| 55 | } |
|
| 56 | /** |
|
| 57 | * @param city The city to set. |
|
| 58 | */ |
|
| 59 | public void setCity(City gemeente) { |
|
| 60 | 0 | this.city = gemeente; |
| 61 | 0 | } |
| 62 | /** |
|
| 63 | * @return Returns the nr. |
|
| 64 | */ |
|
| 65 | public int getNr() { |
|
| 66 | 0 | return nr; |
| 67 | } |
|
| 68 | /** |
|
| 69 | * @param nr The nr to set. |
|
| 70 | */ |
|
| 71 | public void setNr(int nummer) { |
|
| 72 | 0 | this.nr = nummer; |
| 73 | 0 | } |
| 74 | /** |
|
| 75 | * @return Returns the street. |
|
| 76 | */ |
|
| 77 | public String getStreet() { |
|
| 78 | 0 | return street; |
| 79 | } |
|
| 80 | /** |
|
| 81 | * @param street The street to set. |
|
| 82 | */ |
|
| 83 | public void setStreet(String straat) { |
|
| 84 | 0 | this.street = straat; |
| 85 | 0 | } |
| 86 | } |
| This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |