1 package org.springframework.rules;
2
3 /**
4 * Simple JavaBean domain object representing an person.
5 *
6 * @author Ken Krebs
7 */
8 public class Person {
9
10 /** Holds value of property firstName. */
11 private String firstName;
12
13 /** Holds value of property lastName. */
14 private String lastName;
15
16 /** Holds value of property address. */
17 private String address;
18
19 /** Holds value of property city. */
20 private String city;
21
22 /** Holds value of property telephone. */
23 private String telephone;
24
25 private String state;
26 private String zip;
27
28 /**
29 * Getter for property firstName.
30 *
31 * @return Value of property firstName.
32 */
33 public String getFirstName() {
34 return this.firstName;
35 }
36
37 /**
38 * Setter for property firstName.
39 *
40 * @param firstName
41 * New value of property firstName.
42 */
43 public void setFirstName(String firstName) {
44 this.firstName = firstName;
45 }
46
47 /**
48 * Getter for property lastName.
49 *
50 * @return Value of property lastName.
51 */
52 public String getLastName() {
53 return this.lastName;
54 }
55
56 /**
57 * Setter for property lastName.
58 *
59 * @param lastName
60 * New value of property lastName.
61 */
62 public void setLastName(String lastName) {
63 this.lastName = lastName;
64 }
65
66 /**
67 * Getter for property address.
68 *
69 * @return Value of property address.
70 */
71 public String getAddress() {
72 return this.address;
73 }
74
75 /**
76 * Setter for property address.
77 *
78 * @param address
79 * New value of property address.
80 */
81 public void setAddress(String address) {
82 this.address = address;
83 }
84
85 /**
86 * Getter for property city.
87 *
88 * @return Value of property city.
89 */
90 public String getCity() {
91 return this.city;
92 }
93
94 /**
95 * Setter for property city.
96 *
97 * @param city
98 * New value of property city.
99 */
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 }