KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > invoice > Address


1 package invoice;
2
3 /**
4  *
5  */

6 public class Address {
7     private String JavaDoc name = "azerty";
8     private String JavaDoc street;
9     private String JavaDoc zip;
10     private String JavaDoc town;
11     private String JavaDoc country;
12
13     public Address() {
14     }
15
16     public Address(String JavaDoc name,
17                    String JavaDoc street,
18                    String JavaDoc zip,
19                    String JavaDoc town,
20                    String JavaDoc country) {
21         this.name = name;
22         this.street = street;
23         this.zip = zip;
24         this.town = town;
25         this.country = country;
26     }
27
28     public String JavaDoc toString() {
29         return "name:" + name + " /street:" + street + " /zip:"
30             + zip + " /town:" + town + " /country:" + country;
31     }
32
33     public String JavaDoc getName() {
34         return name;
35     }
36
37     public void setName(String JavaDoc name) {
38         this.name = name;
39     }
40
41     public String JavaDoc getStreet() {
42         return street;
43     }
44
45     public void setStreet(String JavaDoc street) {
46         this.street = street;
47     }
48
49     public String JavaDoc getZip() {
50         return zip;
51     }
52
53     public void setZip(String JavaDoc zip) {
54         this.zip = zip;
55     }
56
57     public String JavaDoc getTown() {
58         return town;
59     }
60
61     public void setTown(String JavaDoc town) {
62         this.town = town;
63     }
64
65     public String JavaDoc getCountry() {
66         return country;
67     }
68
69     public void setCountry(String JavaDoc country) {
70         this.country = country;
71     }
72 }
73
Popular Tags