01: /*
02: * Copyright 2007 Dan Shellman
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.iscreen.samples;
17:
18: /**
19: * This class is a sample class that represents an address of a customer.
20: *
21: * @author Shellman, Dan
22: */
23: public class Address {
24: private String address1;
25: private String address2;
26: private String city;
27: private String state;
28: private String zip;
29:
30: /**
31: * Default constructor.
32: */
33: public Address() {
34: } //end Address()
35:
36: public void setAddress1(String addr1) {
37: address1 = addr1;
38: } //end setAddress1()
39:
40: public String getAddress1() {
41: return address1;
42: } //end getAddress1()
43:
44: public void setAddress2(String addr2) {
45: address2 = addr2;
46: } //end setAddress2()
47:
48: public String getAddress2() {
49: return address2;
50: } //end getAddress2()
51:
52: public void setCity(String theCity) {
53: city = theCity;
54: } //end setCity()
55:
56: public String getCity() {
57: return city;
58: } //end getCity()
59:
60: public void setState(String theState) {
61: state = theState;
62: } //end setState()
63:
64: public String getState() {
65: return state;
66: } //end getState()
67:
68: public void setZip(String theZip) {
69: zip = theZip;
70: } //end setZip()
71:
72: public String getZip() {
73: return zip;
74: } //end getZip()
75: } //end Address
|