Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
KimEntityAddressInfo |
|
| 1.0263157894736843;1.026 |
1 | /* | |
2 | * Copyright 2007-2009 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
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.kuali.rice.kim.bo.entity.dto; | |
17 | ||
18 | import org.kuali.rice.kim.bo.entity.KimEntityAddress; | |
19 | ||
20 | /** | |
21 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
22 | */ | |
23 | public class KimEntityAddressInfo extends KimDefaultableInfo implements KimEntityAddress { | |
24 | ||
25 | private static final long serialVersionUID = 1L; | |
26 | ||
27 | protected String entityAddressId; | |
28 | protected String addressTypeCode; | |
29 | protected String entityTypeCode; | |
30 | protected String cityName; | |
31 | protected String cityNameUnmasked; | |
32 | protected String stateCode; | |
33 | protected String stateCodeUnmasked; | |
34 | protected String postalCode; | |
35 | protected String postalCodeUnmasked; | |
36 | protected String countryCode; | |
37 | protected String countryCodeUnmasked; | |
38 | protected String line1; | |
39 | protected String line1Unmasked; | |
40 | protected String line2; | |
41 | protected String line2Unmasked; | |
42 | protected String line3; | |
43 | protected String line3Unmasked; | |
44 | ||
45 | 0 | protected boolean suppressAddress = false; |
46 | ||
47 | /** | |
48 | * This constructs an empty {@link KimEntityAddressInfo} | |
49 | * | |
50 | */ | |
51 | public KimEntityAddressInfo() { | |
52 | 0 | super(); |
53 | 0 | active = true; |
54 | 0 | } |
55 | ||
56 | /** | |
57 | * This constructs a {@link KimEntityAddressInfo} derived from the given {@link KimEntityAddress} | |
58 | */ | |
59 | public KimEntityAddressInfo( KimEntityAddress addr ) { | |
60 | 0 | this(); |
61 | 0 | if ( addr != null ) { |
62 | 0 | this.entityAddressId = addr.getEntityAddressId(); |
63 | 0 | this.entityTypeCode = addr.getEntityTypeCode(); |
64 | 0 | this.addressTypeCode = addr.getAddressTypeCode(); |
65 | 0 | this.cityName = addr.getCityName(); |
66 | 0 | this.cityNameUnmasked = addr.getCityNameUnmasked(); |
67 | 0 | this.stateCode = addr.getStateCode(); |
68 | 0 | this.stateCodeUnmasked = addr.getStateCodeUnmasked(); |
69 | 0 | this.postalCode = addr.getPostalCode(); |
70 | 0 | this.postalCodeUnmasked = addr.getPostalCodeUnmasked(); |
71 | 0 | this.countryCode = addr.getCountryCode(); |
72 | 0 | this.countryCodeUnmasked = addr.getCountryCodeUnmasked(); |
73 | 0 | this.line1 = addr.getLine1(); |
74 | 0 | this.line1Unmasked = addr.getLine1Unmasked(); |
75 | 0 | this.line2 = addr.getLine2(); |
76 | 0 | this.line2Unmasked = addr.getLine2Unmasked(); |
77 | 0 | this.line3 = addr.getLine3(); |
78 | 0 | this.line3Unmasked = addr.getLine3Unmasked(); |
79 | 0 | this.defaultValue = addr.isDefaultValue(); |
80 | 0 | this.active = addr.isActive(); |
81 | 0 | this.suppressAddress = addr.isSuppressAddress(); |
82 | } | |
83 | 0 | } |
84 | ||
85 | /** | |
86 | * {@inheritDoc} | |
87 | * @see KimEntityAddressInfo#getEntityAddressId() | |
88 | */ | |
89 | public String getEntityAddressId() { | |
90 | 0 | return this.entityAddressId; |
91 | } | |
92 | ||
93 | /** | |
94 | * @param entityAddressId the entityAddressId to set | |
95 | */ | |
96 | public void setEntityAddressId(String entityAddressId) { | |
97 | 0 | this.entityAddressId = entityAddressId; |
98 | 0 | } |
99 | ||
100 | /** | |
101 | * {@inheritDoc} | |
102 | * @see KimEntityAddressInfo#getAddressTypeCode() | |
103 | */ | |
104 | public String getAddressTypeCode() { | |
105 | 0 | return this.addressTypeCode; |
106 | } | |
107 | ||
108 | /** | |
109 | * @param addressTypeCode the addressTypeCode to set | |
110 | */ | |
111 | public void setAddressTypeCode(String addressTypeCode) { | |
112 | 0 | this.addressTypeCode = addressTypeCode; |
113 | 0 | } |
114 | ||
115 | /** | |
116 | * {@inheritDoc} | |
117 | * @see KimEntityAddressInfo#getEntityTypeCode() | |
118 | */ | |
119 | public String getEntityTypeCode() { | |
120 | 0 | return this.entityTypeCode; |
121 | } | |
122 | ||
123 | /** | |
124 | * @param entityTypeCode the entityTypeCode to set | |
125 | */ | |
126 | public void setEntityTypeCode(String entityTypeCode) { | |
127 | 0 | this.entityTypeCode = entityTypeCode; |
128 | 0 | } |
129 | ||
130 | /** | |
131 | * {@inheritDoc} | |
132 | * @see KimEntityAddressInfo#getCityName() | |
133 | */ | |
134 | public String getCityName() { | |
135 | 0 | return this.cityName; |
136 | } | |
137 | ||
138 | /** | |
139 | * @param cityName the cityName to set | |
140 | */ | |
141 | public void setCityName(String cityName) { | |
142 | 0 | this.cityName = cityName; |
143 | 0 | } |
144 | ||
145 | /** | |
146 | * {@inheritDoc} | |
147 | * @see KimEntityAddressInfo#getCityNameUnmasked() | |
148 | */ | |
149 | public String getCityNameUnmasked() { | |
150 | 0 | return this.cityNameUnmasked; |
151 | } | |
152 | ||
153 | /** | |
154 | * @param cityNameUnmasked the cityNameUnmasked to set | |
155 | */ | |
156 | public void setCityNameUnmasked(String cityNameUnmasked) { | |
157 | 0 | this.cityNameUnmasked = cityNameUnmasked; |
158 | 0 | } |
159 | ||
160 | /** | |
161 | * {@inheritDoc} | |
162 | * @see KimEntityAddressInfo#getStateCode() | |
163 | */ | |
164 | public String getStateCode() { | |
165 | 0 | return this.stateCode; |
166 | } | |
167 | ||
168 | /** | |
169 | * @param stateCode the stateCode to set | |
170 | */ | |
171 | public void setStateCode(String stateCode) { | |
172 | 0 | this.stateCode = stateCode; |
173 | 0 | } |
174 | ||
175 | /** | |
176 | * {@inheritDoc} | |
177 | * @see KimEntityAddressInfo#getStateCodeUnmasked() | |
178 | */ | |
179 | public String getStateCodeUnmasked() { | |
180 | 0 | return this.stateCodeUnmasked; |
181 | } | |
182 | ||
183 | /** | |
184 | * @param stateCodeUnmasked the stateCodeUnmasked to set | |
185 | */ | |
186 | public void setStateCodeUnmasked(String stateCodeUnmasked) { | |
187 | 0 | this.stateCodeUnmasked = stateCodeUnmasked; |
188 | 0 | } |
189 | ||
190 | /** | |
191 | * {@inheritDoc} | |
192 | * @see KimEntityAddressInfo#getPostalCode() | |
193 | */ | |
194 | public String getPostalCode() { | |
195 | 0 | return this.postalCode; |
196 | } | |
197 | ||
198 | /** | |
199 | * @param postalCode the postalCode to set | |
200 | */ | |
201 | public void setPostalCode(String postalCode) { | |
202 | 0 | this.postalCode = postalCode; |
203 | 0 | } |
204 | ||
205 | /** | |
206 | * {@inheritDoc} | |
207 | * @see KimEntityAddressInfo#getPostalCodeUnmasked() | |
208 | */ | |
209 | public String getPostalCodeUnmasked() { | |
210 | 0 | return this.postalCodeUnmasked; |
211 | } | |
212 | ||
213 | /** | |
214 | * @param postalCodeUnmasked the postalCodeUnmasked to set | |
215 | */ | |
216 | public void setPostalCodeUnmasked(String postalCodeUnmasked) { | |
217 | 0 | this.postalCodeUnmasked = postalCodeUnmasked; |
218 | 0 | } |
219 | ||
220 | /** | |
221 | * {@inheritDoc} | |
222 | * @see KimEntityAddressInfo#getCountryCode() | |
223 | */ | |
224 | public String getCountryCode() { | |
225 | 0 | return this.countryCode; |
226 | } | |
227 | ||
228 | /** | |
229 | * @param countryCode the countryCode to set | |
230 | */ | |
231 | public void setCountryCode(String countryCode) { | |
232 | 0 | this.countryCode = countryCode; |
233 | 0 | } |
234 | ||
235 | /** | |
236 | * {@inheritDoc} | |
237 | * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getCountryCodeUnmasked() | |
238 | */ | |
239 | public String getCountryCodeUnmasked() { | |
240 | 0 | return this.countryCodeUnmasked; |
241 | } | |
242 | ||
243 | public void setCountryCodeUnmasked(String countryCodeUnmasked) { | |
244 | 0 | this.countryCodeUnmasked = countryCodeUnmasked; |
245 | 0 | } |
246 | ||
247 | /** | |
248 | * {@inheritDoc} | |
249 | * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getLine1() | |
250 | */ | |
251 | public String getLine1() { | |
252 | 0 | return this.line1; |
253 | } | |
254 | ||
255 | /** | |
256 | * @param line1 the line1 to set | |
257 | */ | |
258 | public void setLine1(String line1) { | |
259 | 0 | this.line1 = line1; |
260 | 0 | } |
261 | ||
262 | /** | |
263 | * {@inheritDoc} | |
264 | * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getLine1Unmasked() | |
265 | */ | |
266 | public String getLine1Unmasked() { | |
267 | 0 | return this.line1Unmasked; |
268 | } | |
269 | ||
270 | /** | |
271 | * @param line1Unmasked the line1Unmasked to set | |
272 | */ | |
273 | public void setLine1Unmasked(String line1Unmasked) { | |
274 | 0 | this.line1Unmasked = line1Unmasked; |
275 | 0 | } |
276 | ||
277 | /** | |
278 | * {@inheritDoc} | |
279 | * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getLine2() | |
280 | */ | |
281 | public String getLine2() { | |
282 | 0 | return this.line2; |
283 | } | |
284 | ||
285 | /** | |
286 | * @param line2 the line2 to set | |
287 | */ | |
288 | public void setLine2(String line2) { | |
289 | 0 | this.line2 = line2; |
290 | 0 | } |
291 | ||
292 | /** | |
293 | * {@inheritDoc} | |
294 | * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getLine2Unmasked() | |
295 | */ | |
296 | public String getLine2Unmasked() { | |
297 | 0 | return this.line2Unmasked; |
298 | } | |
299 | ||
300 | /** | |
301 | * @param line2Unmasked the line2Unmasked to set | |
302 | */ | |
303 | public void setLine2Unmasked(String line2Unmasked) { | |
304 | 0 | this.line2Unmasked = line2Unmasked; |
305 | 0 | } |
306 | ||
307 | /** | |
308 | * {@inheritDoc} | |
309 | * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getLine3() | |
310 | */ | |
311 | public String getLine3() { | |
312 | 0 | return this.line3; |
313 | } | |
314 | ||
315 | /** | |
316 | * @param line3 the line3 to set | |
317 | */ | |
318 | public void setLine3(String line3) { | |
319 | 0 | this.line3 = line3; |
320 | 0 | } |
321 | ||
322 | /** | |
323 | * {@inheritDoc} | |
324 | * @see org.kuali.rice.kim.bo.entity.KimEntityAddress#getLine3Unmasked() | |
325 | */ | |
326 | public String getLine3Unmasked() { | |
327 | 0 | return this.line3Unmasked; |
328 | } | |
329 | ||
330 | /** | |
331 | * @param line3Unmasked the line3Unmasked to set | |
332 | */ | |
333 | public void setLine3Unmasked(String line3Unmasked) { | |
334 | 0 | this.line3Unmasked = line3Unmasked; |
335 | 0 | } |
336 | ||
337 | /** | |
338 | * @return the suppressAddress | |
339 | */ | |
340 | public boolean isSuppressAddress() { | |
341 | 0 | return this.suppressAddress; |
342 | } | |
343 | ||
344 | /** | |
345 | * @param suppressAddress the suppressAddress to set | |
346 | */ | |
347 | public void setSuppressAddress(boolean suppressAddress) { | |
348 | 0 | this.suppressAddress = suppressAddress; |
349 | 0 | } |
350 | ||
351 | } |