KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > olstore > dto > AddressValue


1 /**
2  * Copyright (c) 2004 Red Hat, Inc. All rights reserved.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17  * USA
18  *
19  * Component of: Red Hat Application Server
20  *
21  * Initial Developers: Aizaz Ahmed
22  * Vivek Lakshmanan
23  * Andrew Overholt
24  * Matthew Wringe
25  *
26  */

27 package olstore.dto;
28
29 /**
30  * This DTO is used to store the user's address information.
31  */

32 public class AddressValue {
33     
34     private String country = null;
35     private String city = null;
36     private String postalCode = null;
37     private String street1 = null;
38     private String street2 = null;
39     private String province = null;
40     
41     public String getCountry()
42     {
43         return country;
44     }
45     
46     public void setCountry(String country)
47     {
48         this.country=country;
49     }
50     
51     public String getCity()
52     {
53         return city;
54     }
55     
56     public void setCity(String city)
57     {
58         this.city=city;
59     }
60     
61     public String getPostalCode()
62     {
63         return postalCode;
64     }
65     
66     public void setPostalCode(String postalCode)
67     {
68         this.postalCode=postalCode;
69     }
70     
71     public String getStreet1()
72     {
73         return street1;
74     }
75     
76     public void setStreet1(String street1)
77     {
78         this.street1=street1;
79     }
80     
81     public String getStreet2()
82     {
83         return street2;
84     }
85     
86     public void setStreet2(String street2)
87     {
88         this.street2=street2;
89     }
90     
91     public String getProvince()
92     {
93         return province;
94     }
95     
96     public void setProvince(String province)
97     {
98         this.province=province;
99     }
100 }
101
Popular Tags