01: package com.silvermindsoftware.hitch.sample.model;
02:
03: /**
04: * Copyright 2007 Brandon Goodin
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: public class Address {
20:
21: private String address1;
22: private String address2;
23: private String city;
24: private String state;
25: private String zip;
26: private String nullString;
27:
28: public String getAddress1() {
29: return address1;
30: }
31:
32: public void setAddress1(String address1) {
33: this .address1 = address1;
34: }
35:
36: public String getAddress2() {
37: return address2;
38: }
39:
40: public void setAddress2(String address2) {
41: this .address2 = address2;
42: }
43:
44: public String getCity() {
45: return city;
46: }
47:
48: public void setCity(String city) {
49: this .city = city;
50: }
51:
52: public String getState() {
53: return state;
54: }
55:
56: public void setState(String state) {
57: this .state = state;
58: }
59:
60: public String getZip() {
61: return zip;
62: }
63:
64: public void setZip(String zip) {
65: this .zip = zip;
66: }
67:
68: public String getNullString() {
69: return nullString;
70: }
71:
72: public void setNullString(String nullString) {
73: this .nullString = nullString;
74: }
75:
76: public Address() {
77: }
78:
79: public Address(String address1, String address2, String city,
80: String state, String zip) {
81: this .address1 = address1;
82: this .address2 = address2;
83: this .city = city;
84: this .state = state;
85: this .zip = zip;
86: this .nullString = null;
87: }
88:
89: public String toString() {
90: return "Address1: " + address1 + " Address2: " + address2
91: + " City: " + city + " State: " + state + " Zip: "
92: + zip;
93: }
94: }
|