001 package org.springframework.rules; 002 003 /** 004 * Simple JavaBean domain object representing an person. 005 * 006 * @author Ken Krebs 007 */ 008 public class Person { 009 010 /** Holds value of property firstName. */ 011 private String firstName; 012 013 /** Holds value of property lastName. */ 014 private String lastName; 015 016 /** Holds value of property address. */ 017 private String address; 018 019 /** Holds value of property city. */ 020 private String city; 021 022 /** Holds value of property telephone. */ 023 private String telephone; 024 025 private String state; 026 private String zip; 027 028 /** 029 * Getter for property firstName. 030 * 031 * @return Value of property firstName. 032 */ 033 public String getFirstName() { 034 return this.firstName; 035 } 036 037 /** 038 * Setter for property firstName. 039 * 040 * @param firstName 041 * New value of property firstName. 042 */ 043 public void setFirstName(String firstName) { 044 this.firstName = firstName; 045 } 046 047 /** 048 * Getter for property lastName. 049 * 050 * @return Value of property lastName. 051 */ 052 public String getLastName() { 053 return this.lastName; 054 } 055 056 /** 057 * Setter for property lastName. 058 * 059 * @param lastName 060 * New value of property lastName. 061 */ 062 public void setLastName(String lastName) { 063 this.lastName = lastName; 064 } 065 066 /** 067 * Getter for property address. 068 * 069 * @return Value of property address. 070 */ 071 public String getAddress() { 072 return this.address; 073 } 074 075 /** 076 * Setter for property address. 077 * 078 * @param address 079 * New value of property address. 080 */ 081 public void setAddress(String address) { 082 this.address = address; 083 } 084 085 /** 086 * Getter for property city. 087 * 088 * @return Value of property city. 089 */ 090 public String getCity() { 091 return this.city; 092 } 093 094 /** 095 * Setter for property city. 096 * 097 * @param city 098 * New value of property city. 099 */ 100 public void setCity(String city) { 101 this.city = city; 102 } 103 104 /** 105 * Getter for property telephone. 106 * 107 * @return Value of property telephone. 108 */ 109 public String getTelephone() { 110 return this.telephone; 111 } 112 113 /** 114 * Setter for property telephone. 115 * 116 * @param telephone 117 * New value of property telephone. 118 */ 119 public void setTelephone(String telephone) { 120 this.telephone = telephone; 121 } 122 123 /** 124 * @return the state 125 */ 126 public String getState() { 127 return state; 128 } 129 130 /** 131 * @param state the state to set 132 */ 133 public void setState( String state ) { 134 this.state = state; 135 } 136 137 /** 138 * @return the zip 139 */ 140 public String getZip() { 141 return zip; 142 } 143 144 /** 145 * @param zip the zip to set 146 */ 147 public void setZip( String zip ) { 148 this.zip = zip; 149 } 150 151 }