001 /* 002 * Copyright 2002-2006 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 005 * use this file except in compliance with the License. You may obtain a copy of 006 * the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 013 * License for the specific language governing permissions and limitations under 014 * the License. 015 */ 016 package org.springframework.richclient.samples.simple.domain; 017 018 /** 019 * This class provides a simple domain object to hold a single US address. 020 * @author Larry Streepy 021 */ 022 public class Address { 023 024 private String address1; 025 026 private String address2; 027 028 private String address3; 029 030 private String city; 031 032 private String state; 033 034 private String zip; 035 036 /** 037 * @return the city 038 */ 039 public String getCity() { 040 return city; 041 } 042 043 /** 044 * @param city the city to set 045 */ 046 public void setCity(String city) { 047 this.city = city; 048 } 049 050 /** 051 * @return the address1 052 */ 053 public String getAddress1() { 054 return address1; 055 } 056 057 /** 058 * @param line1 the line1 to set 059 */ 060 public void setAddress1(String address1) { 061 this.address1 = address1; 062 } 063 064 /** 065 * @return the address2 066 */ 067 public String getAddress2() { 068 return address2; 069 } 070 071 /** 072 * @param address2 the address2 to set 073 */ 074 public void setAddress2(String address2) { 075 this.address2 = address2; 076 } 077 078 /** 079 * @return the address3 080 */ 081 public String getAddress3() { 082 return address3; 083 } 084 085 /** 086 * @param address3 the address3 to set 087 */ 088 public void setAddress3(String line3) { 089 this.address3 = line3; 090 } 091 092 /** 093 * @return the state 094 */ 095 public String getState() { 096 return state; 097 } 098 099 /** 100 * @param state the state to set 101 */ 102 public void setState(String state) { 103 this.state = state; 104 } 105 106 /** 107 * @return the zip 108 */ 109 public String getZip() { 110 return zip; 111 } 112 113 /** 114 * @param zip the zip to set 115 */ 116 public void setZip(String zip) { 117 this.zip = zip; 118 } 119 }