1 | |
package org.kuali.rice.kim.api.identity.personal; |
2 | |
|
3 | |
import org.apache.commons.lang.StringUtils; |
4 | |
import org.kuali.rice.core.api.CoreConstants; |
5 | |
import org.kuali.rice.core.api.mo.AbstractDataTransferObject; |
6 | |
import org.kuali.rice.core.api.mo.ModelBuilder; |
7 | |
import org.kuali.rice.kim.util.KimConstants; |
8 | |
import org.w3c.dom.Element; |
9 | |
|
10 | |
import javax.xml.bind.annotation.XmlAccessType; |
11 | |
import javax.xml.bind.annotation.XmlAccessorType; |
12 | |
import javax.xml.bind.annotation.XmlAnyElement; |
13 | |
import javax.xml.bind.annotation.XmlElement; |
14 | |
import javax.xml.bind.annotation.XmlRootElement; |
15 | |
import javax.xml.bind.annotation.XmlType; |
16 | |
import java.io.Serializable; |
17 | |
import java.text.ParseException; |
18 | |
import java.text.SimpleDateFormat; |
19 | |
import java.util.Collection; |
20 | |
import java.util.Date; |
21 | |
|
22 | |
@XmlRootElement(name = EntityBioDemographics.Constants.ROOT_ELEMENT_NAME) |
23 | |
@XmlAccessorType(XmlAccessType.NONE) |
24 | |
@XmlType(name = EntityBioDemographics.Constants.TYPE_NAME, propOrder = { |
25 | |
EntityBioDemographics.Elements.ENTITY_ID, |
26 | |
EntityBioDemographics.Elements.DECEASED_DATE, |
27 | |
EntityBioDemographics.Elements.BIRTH_DATE, |
28 | |
EntityBioDemographics.Elements.GENDER_CODE, |
29 | |
EntityBioDemographics.Elements.MARITAL_STATUS_CODE, |
30 | |
EntityBioDemographics.Elements.PRIMARY_LANGUAGE_CODE, |
31 | |
EntityBioDemographics.Elements.SECONDARY_LANGUAGE_CODE, |
32 | |
EntityBioDemographics.Elements.COUNTRY_OF_BIRTH_CODE, |
33 | |
EntityBioDemographics.Elements.BIRTH_STATE_CODE, |
34 | |
EntityBioDemographics.Elements.CITY_OF_BIRTH, |
35 | |
EntityBioDemographics.Elements.GEOGRAPHIC_ORIGIN, |
36 | |
EntityBioDemographics.Elements.BIRTH_DATE_UNMASKED, |
37 | |
EntityBioDemographics.Elements.GENDER_CODE_UNMASKED, |
38 | |
EntityBioDemographics.Elements.MARITAL_STATUS_CODE_UNMASKED, |
39 | |
EntityBioDemographics.Elements.PRIMARY_LANGUAGE_CODE_UNMASKED, |
40 | |
EntityBioDemographics.Elements.SECONDARY_LANGUAGE_CODE_UNMASKED, |
41 | |
EntityBioDemographics.Elements.COUNTRY_OF_BIRTH_CODE_UNMASKED, |
42 | |
EntityBioDemographics.Elements.BIRTH_STATE_CODE_UNMASKED, |
43 | |
EntityBioDemographics.Elements.CITY_OF_BIRTH_UNMASKED, |
44 | |
EntityBioDemographics.Elements.GEOGRAPHIC_ORIGIN_UNMASKED, |
45 | |
EntityBioDemographics.Elements.SUPPRESS_PERSONAL, |
46 | |
CoreConstants.CommonElements.VERSION_NUMBER, |
47 | |
CoreConstants.CommonElements.OBJECT_ID, |
48 | |
CoreConstants.CommonElements.FUTURE_ELEMENTS |
49 | |
}) |
50 | 6 | public final class EntityBioDemographics extends AbstractDataTransferObject |
51 | |
implements EntityBioDemographicsContract |
52 | |
{ |
53 | |
|
54 | |
@XmlElement(name = Elements.ENTITY_ID, required = false) |
55 | |
private final String entityId; |
56 | |
@XmlElement(name = Elements.DECEASED_DATE, required = false) |
57 | |
private final String deceasedDate; |
58 | |
@XmlElement(name = Elements.BIRTH_DATE, required = false) |
59 | |
private final String birthDate; |
60 | |
@XmlElement(name = Elements.GENDER_CODE, required = false) |
61 | |
private final String genderCode; |
62 | |
@XmlElement(name = Elements.MARITAL_STATUS_CODE, required = false) |
63 | |
private final String maritalStatusCode; |
64 | |
@XmlElement(name = Elements.PRIMARY_LANGUAGE_CODE, required = false) |
65 | |
private final String primaryLanguageCode; |
66 | |
@XmlElement(name = Elements.SECONDARY_LANGUAGE_CODE, required = false) |
67 | |
private final String secondaryLanguageCode; |
68 | |
@XmlElement(name = Elements.COUNTRY_OF_BIRTH_CODE, required = false) |
69 | |
private final String countryOfBirthCode; |
70 | |
@XmlElement(name = Elements.BIRTH_STATE_CODE, required = false) |
71 | |
private final String birthStateCode; |
72 | |
@XmlElement(name = Elements.CITY_OF_BIRTH, required = false) |
73 | |
private final String cityOfBirth; |
74 | |
@XmlElement(name = Elements.GEOGRAPHIC_ORIGIN, required = false) |
75 | |
private final String geographicOrigin; |
76 | |
@XmlElement(name = Elements.BIRTH_DATE_UNMASKED, required = false) |
77 | |
private final String birthDateUnmasked; |
78 | |
@XmlElement(name = Elements.GENDER_CODE_UNMASKED, required = false) |
79 | |
private final String genderCodeUnmasked; |
80 | |
@XmlElement(name = Elements.MARITAL_STATUS_CODE_UNMASKED, required = false) |
81 | |
private final String maritalStatusCodeUnmasked; |
82 | |
@XmlElement(name = Elements.PRIMARY_LANGUAGE_CODE_UNMASKED, required = false) |
83 | |
private final String primaryLanguageCodeUnmasked; |
84 | |
@XmlElement(name = Elements.SECONDARY_LANGUAGE_CODE_UNMASKED, required = false) |
85 | |
private final String secondaryLanguageCodeUnmasked; |
86 | |
@XmlElement(name = Elements.COUNTRY_OF_BIRTH_CODE_UNMASKED, required = false) |
87 | |
private final String countryOfBirthCodeUnmasked; |
88 | |
@XmlElement(name = Elements.BIRTH_STATE_CODE_UNMASKED, required = false) |
89 | |
private final String birthStateCodeUnmasked; |
90 | |
@XmlElement(name = Elements.CITY_OF_BIRTH_UNMASKED, required = false) |
91 | |
private final String cityOfBirthUnmasked; |
92 | |
@XmlElement(name = Elements.GEOGRAPHIC_ORIGIN_UNMASKED, required = false) |
93 | |
private final String geographicOriginUnmasked; |
94 | |
@XmlElement(name = Elements.SUPPRESS_PERSONAL, required = false) |
95 | |
private final boolean suppressPersonal; |
96 | |
@XmlElement(name = CoreConstants.CommonElements.VERSION_NUMBER, required = false) |
97 | |
private final Long versionNumber; |
98 | |
@XmlElement(name = CoreConstants.CommonElements.OBJECT_ID, required = false) |
99 | |
private final String objectId; |
100 | 10 | @SuppressWarnings("unused") |
101 | |
@XmlAnyElement |
102 | |
private final Collection<Element> _futureElements = null; |
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | |
|
108 | 4 | private EntityBioDemographics() { |
109 | 4 | this.entityId = null; |
110 | 4 | this.deceasedDate = null; |
111 | 4 | this.birthDate = null; |
112 | 4 | this.genderCode = null; |
113 | 4 | this.maritalStatusCode = null; |
114 | 4 | this.primaryLanguageCode = null; |
115 | 4 | this.secondaryLanguageCode = null; |
116 | 4 | this.countryOfBirthCode = null; |
117 | 4 | this.birthStateCode = null; |
118 | 4 | this.cityOfBirth = null; |
119 | 4 | this.geographicOrigin = null; |
120 | 4 | this.birthDateUnmasked = null; |
121 | 4 | this.genderCodeUnmasked = null; |
122 | 4 | this.maritalStatusCodeUnmasked = null; |
123 | 4 | this.primaryLanguageCodeUnmasked = null; |
124 | 4 | this.secondaryLanguageCodeUnmasked = null; |
125 | 4 | this.countryOfBirthCodeUnmasked = null; |
126 | 4 | this.birthStateCodeUnmasked = null; |
127 | 4 | this.cityOfBirthUnmasked = null; |
128 | 4 | this.geographicOriginUnmasked = null; |
129 | 4 | this.suppressPersonal = false; |
130 | 4 | this.versionNumber = null; |
131 | 4 | this.objectId = null; |
132 | 4 | } |
133 | |
|
134 | 6 | private EntityBioDemographics(Builder builder) { |
135 | 6 | this.entityId = builder.getEntityId(); |
136 | 6 | this.deceasedDate = builder.getDeceasedDate(); |
137 | 6 | this.birthDate = builder.getBirthDate(); |
138 | 6 | this.genderCode = builder.getGenderCode(); |
139 | 6 | this.maritalStatusCode = builder.getMaritalStatusCode(); |
140 | 6 | this.primaryLanguageCode = builder.getPrimaryLanguageCode(); |
141 | 6 | this.secondaryLanguageCode = builder.getSecondaryLanguageCode(); |
142 | 6 | this.countryOfBirthCode = builder.getCountryOfBirthCode(); |
143 | 6 | this.birthStateCode = builder.getBirthStateCode(); |
144 | 6 | this.cityOfBirth = builder.getCityOfBirth(); |
145 | 6 | this.geographicOrigin = builder.getGeographicOrigin(); |
146 | 6 | this.birthDateUnmasked = builder.getBirthDateUnmasked(); |
147 | 6 | this.genderCodeUnmasked = builder.getGenderCodeUnmasked(); |
148 | 6 | this.maritalStatusCodeUnmasked = builder.getMaritalStatusCodeUnmasked(); |
149 | 6 | this.primaryLanguageCodeUnmasked = builder.getPrimaryLanguageCodeUnmasked(); |
150 | 6 | this.secondaryLanguageCodeUnmasked = builder.getSecondaryLanguageCodeUnmasked(); |
151 | 6 | this.countryOfBirthCodeUnmasked = builder.getCountryOfBirthCodeUnmasked(); |
152 | 6 | this.birthStateCodeUnmasked = builder.getBirthStateCodeUnmasked(); |
153 | 6 | this.cityOfBirthUnmasked = builder.getCityOfBirthUnmasked(); |
154 | 6 | this.geographicOriginUnmasked = builder.getGeographicOriginUnmasked(); |
155 | 6 | this.suppressPersonal = builder.isSuppressPersonal(); |
156 | 6 | this.versionNumber = builder.getVersionNumber(); |
157 | 6 | this.objectId = builder.getObjectId(); |
158 | 6 | } |
159 | |
|
160 | |
@Override |
161 | |
public String getEntityId() { |
162 | 4 | return this.entityId; |
163 | |
} |
164 | |
|
165 | |
@Override |
166 | |
public String getDeceasedDate() { |
167 | 4 | return this.deceasedDate; |
168 | |
} |
169 | |
|
170 | |
@Override |
171 | |
public String getBirthDate() { |
172 | 4 | return this.birthDate; |
173 | |
} |
174 | |
|
175 | |
@Override |
176 | |
public String getGenderCode() { |
177 | 4 | return this.genderCode; |
178 | |
} |
179 | |
|
180 | |
@Override |
181 | |
public String getMaritalStatusCode() { |
182 | 4 | return this.maritalStatusCode; |
183 | |
} |
184 | |
|
185 | |
@Override |
186 | |
public String getPrimaryLanguageCode() { |
187 | 4 | return this.primaryLanguageCode; |
188 | |
} |
189 | |
|
190 | |
@Override |
191 | |
public String getSecondaryLanguageCode() { |
192 | 4 | return this.secondaryLanguageCode; |
193 | |
} |
194 | |
|
195 | |
@Override |
196 | |
public String getCountryOfBirthCode() { |
197 | 4 | return this.countryOfBirthCode; |
198 | |
} |
199 | |
|
200 | |
@Override |
201 | |
public String getBirthStateCode() { |
202 | 4 | return this.birthStateCode; |
203 | |
} |
204 | |
|
205 | |
@Override |
206 | |
public String getCityOfBirth() { |
207 | 4 | return this.cityOfBirth; |
208 | |
} |
209 | |
|
210 | |
@Override |
211 | |
public String getGeographicOrigin() { |
212 | 4 | return this.geographicOrigin; |
213 | |
} |
214 | |
|
215 | |
@Override |
216 | |
public String getBirthDateUnmasked() { |
217 | 1 | return this.birthDateUnmasked; |
218 | |
} |
219 | |
|
220 | |
@Override |
221 | |
public String getGenderCodeUnmasked() { |
222 | 1 | return this.genderCodeUnmasked; |
223 | |
} |
224 | |
|
225 | |
@Override |
226 | |
public String getMaritalStatusCodeUnmasked() { |
227 | 1 | return this.maritalStatusCodeUnmasked; |
228 | |
} |
229 | |
|
230 | |
@Override |
231 | |
public String getPrimaryLanguageCodeUnmasked() { |
232 | 1 | return this.primaryLanguageCodeUnmasked; |
233 | |
} |
234 | |
|
235 | |
@Override |
236 | |
public String getSecondaryLanguageCodeUnmasked() { |
237 | 1 | return this.secondaryLanguageCodeUnmasked; |
238 | |
} |
239 | |
|
240 | |
@Override |
241 | |
public String getCountryOfBirthCodeUnmasked() { |
242 | 1 | return this.countryOfBirthCodeUnmasked; |
243 | |
} |
244 | |
|
245 | |
@Override |
246 | |
public String getBirthStateCodeUnmasked() { |
247 | 1 | return this.birthStateCodeUnmasked; |
248 | |
} |
249 | |
|
250 | |
@Override |
251 | |
public String getCityOfBirthUnmasked() { |
252 | 1 | return this.cityOfBirthUnmasked; |
253 | |
} |
254 | |
|
255 | |
@Override |
256 | |
public String getGeographicOriginUnmasked() { |
257 | 1 | return this.geographicOriginUnmasked; |
258 | |
} |
259 | |
|
260 | |
@Override |
261 | |
public boolean isSuppressPersonal() { |
262 | 4 | return this.suppressPersonal; |
263 | |
} |
264 | |
|
265 | |
@Override |
266 | |
public Long getVersionNumber() { |
267 | 4 | return this.versionNumber; |
268 | |
} |
269 | |
|
270 | |
@Override |
271 | |
public String getObjectId() { |
272 | 4 | return this.objectId; |
273 | |
} |
274 | |
|
275 | |
|
276 | |
|
277 | |
|
278 | |
|
279 | 4 | public final static class Builder |
280 | |
implements Serializable, ModelBuilder, EntityBioDemographicsContract |
281 | |
{ |
282 | |
|
283 | |
private String entityId; |
284 | |
private String deceasedDate; |
285 | |
private String birthDate; |
286 | |
private String genderCode; |
287 | |
private String maritalStatusCode; |
288 | |
private String primaryLanguageCode; |
289 | |
private String secondaryLanguageCode; |
290 | |
private String countryOfBirthCode; |
291 | |
private String birthStateCode; |
292 | |
private String cityOfBirth; |
293 | |
private String geographicOrigin; |
294 | |
private boolean suppressPersonal; |
295 | |
private Long versionNumber; |
296 | |
private String objectId; |
297 | |
|
298 | 11 | private Builder(String entityId, String genderCode) { |
299 | 11 | setEntityId(entityId); |
300 | 9 | setGenderCode(genderCode); |
301 | 7 | } |
302 | |
|
303 | |
public static Builder create(String entityId, String genderCode) { |
304 | |
|
305 | 11 | return new Builder(entityId, genderCode); |
306 | |
} |
307 | |
|
308 | |
public static Builder create(EntityBioDemographicsContract contract) { |
309 | 5 | if (contract == null) { |
310 | 0 | throw new IllegalArgumentException("contract was null"); |
311 | |
} |
312 | 5 | Builder builder = create(contract.getEntityId(), contract.getGenderCode()); |
313 | 5 | builder.setDeceasedDate(contract.getDeceasedDate()); |
314 | 5 | builder.setBirthDate(contract.getBirthDate()); |
315 | 5 | builder.setMaritalStatusCode(contract.getMaritalStatusCode()); |
316 | 5 | builder.setPrimaryLanguageCode(contract.getPrimaryLanguageCode()); |
317 | 5 | builder.setSecondaryLanguageCode(contract.getSecondaryLanguageCode()); |
318 | 5 | builder.setCountryOfBirthCode(contract.getCountryOfBirthCode()); |
319 | 5 | builder.setBirthStateCode(contract.getBirthStateCode()); |
320 | 5 | builder.setCityOfBirth(contract.getCityOfBirth()); |
321 | 5 | builder.setGeographicOrigin(contract.getGeographicOrigin()); |
322 | 5 | builder.setSuppressPersonal(contract.isSuppressPersonal()); |
323 | 5 | builder.setVersionNumber(contract.getVersionNumber()); |
324 | 5 | builder.setObjectId(contract.getObjectId()); |
325 | 5 | return builder; |
326 | |
} |
327 | |
|
328 | |
public EntityBioDemographics build() { |
329 | 6 | return new EntityBioDemographics(this); |
330 | |
} |
331 | |
|
332 | |
@Override |
333 | |
public String getEntityId() { |
334 | 6 | return this.entityId; |
335 | |
} |
336 | |
|
337 | |
@Override |
338 | |
public String getDeceasedDate() { |
339 | 6 | return this.deceasedDate; |
340 | |
} |
341 | |
|
342 | |
@Override |
343 | |
public String getBirthDate() { |
344 | 6 | if (isSuppressPersonal()) { |
345 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
346 | |
} |
347 | 6 | return this.birthDate; |
348 | |
} |
349 | |
|
350 | |
@Override |
351 | |
public String getGenderCode() { |
352 | 6 | if (isSuppressPersonal()) { |
353 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
354 | |
} |
355 | 6 | return this.genderCode; |
356 | |
} |
357 | |
|
358 | |
@Override |
359 | |
public String getMaritalStatusCode() { |
360 | 6 | if (isSuppressPersonal()) { |
361 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
362 | |
} |
363 | 6 | return this.maritalStatusCode; |
364 | |
} |
365 | |
|
366 | |
@Override |
367 | |
public String getPrimaryLanguageCode() { |
368 | 6 | if (isSuppressPersonal()) { |
369 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
370 | |
} |
371 | 6 | return this.primaryLanguageCode; |
372 | |
} |
373 | |
|
374 | |
@Override |
375 | |
public String getSecondaryLanguageCode() { |
376 | 6 | if (isSuppressPersonal()) { |
377 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
378 | |
} |
379 | 6 | return this.secondaryLanguageCode; |
380 | |
} |
381 | |
|
382 | |
@Override |
383 | |
public String getCountryOfBirthCode() { |
384 | 6 | if (isSuppressPersonal()) { |
385 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
386 | |
} |
387 | 6 | return this.countryOfBirthCode; |
388 | |
} |
389 | |
|
390 | |
@Override |
391 | |
public String getBirthStateCode() { |
392 | 6 | if (isSuppressPersonal()) { |
393 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
394 | |
} |
395 | 6 | return this.birthStateCode; |
396 | |
} |
397 | |
|
398 | |
@Override |
399 | |
public String getCityOfBirth() { |
400 | 6 | if (isSuppressPersonal()) { |
401 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
402 | |
} |
403 | 6 | return this.cityOfBirth; |
404 | |
} |
405 | |
|
406 | |
@Override |
407 | |
public String getGeographicOrigin() { |
408 | 6 | if (isSuppressPersonal()) { |
409 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
410 | |
} |
411 | 6 | return this.geographicOrigin; |
412 | |
} |
413 | |
|
414 | |
@Override |
415 | |
public String getBirthDateUnmasked() { |
416 | 6 | return this.birthDate; |
417 | |
} |
418 | |
|
419 | |
@Override |
420 | |
public String getGenderCodeUnmasked() { |
421 | 6 | return this.genderCode; |
422 | |
} |
423 | |
|
424 | |
@Override |
425 | |
public String getMaritalStatusCodeUnmasked() { |
426 | 6 | return this.maritalStatusCode; |
427 | |
} |
428 | |
|
429 | |
@Override |
430 | |
public String getPrimaryLanguageCodeUnmasked() { |
431 | 6 | return this.primaryLanguageCode; |
432 | |
} |
433 | |
|
434 | |
@Override |
435 | |
public String getSecondaryLanguageCodeUnmasked() { |
436 | 6 | return this.secondaryLanguageCode; |
437 | |
} |
438 | |
|
439 | |
@Override |
440 | |
public String getCountryOfBirthCodeUnmasked() { |
441 | 6 | return this.countryOfBirthCode; |
442 | |
} |
443 | |
|
444 | |
@Override |
445 | |
public String getBirthStateCodeUnmasked() { |
446 | 6 | return this.birthStateCode; |
447 | |
} |
448 | |
|
449 | |
@Override |
450 | |
public String getCityOfBirthUnmasked() { |
451 | 6 | return this.cityOfBirth; |
452 | |
} |
453 | |
|
454 | |
@Override |
455 | |
public String getGeographicOriginUnmasked() { |
456 | 6 | return this.geographicOrigin; |
457 | |
} |
458 | |
|
459 | |
@Override |
460 | |
public boolean isSuppressPersonal() { |
461 | 60 | return this.suppressPersonal; |
462 | |
} |
463 | |
|
464 | |
@Override |
465 | |
public Long getVersionNumber() { |
466 | 6 | return this.versionNumber; |
467 | |
} |
468 | |
|
469 | |
@Override |
470 | |
public String getObjectId() { |
471 | 6 | return this.objectId; |
472 | |
} |
473 | |
|
474 | |
public void setEntityId(String entityId) { |
475 | 11 | if (StringUtils.isEmpty(entityId)) { |
476 | 2 | throw new IllegalArgumentException("id is empty"); |
477 | |
} |
478 | 9 | this.entityId = entityId; |
479 | 9 | } |
480 | |
|
481 | |
public void setDeceasedDate(String deceasedDate) { |
482 | 5 | if (deceasedDate != null) { |
483 | 4 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); |
484 | |
try{ |
485 | 4 | format.parse(deceasedDate); |
486 | 4 | this.deceasedDate = deceasedDate; |
487 | |
} |
488 | 0 | catch(ParseException e) { |
489 | 0 | throw new IllegalArgumentException("deceasedDate is not of the format 'yyyy-MM-DD'"); |
490 | 4 | } |
491 | |
} |
492 | 5 | } |
493 | |
|
494 | |
public void setBirthDate(String birthDate) { |
495 | 5 | if (birthDate != null) { |
496 | 4 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); |
497 | |
try{ |
498 | 4 | format.parse(birthDate); |
499 | 4 | this.birthDate = birthDate; |
500 | |
} |
501 | 0 | catch(ParseException e) { |
502 | 0 | throw new IllegalArgumentException("birthDate is not of the format 'yyyy-MM-DD'"); |
503 | 4 | } |
504 | |
} |
505 | 5 | } |
506 | |
|
507 | |
public void setDeceasedDate(Date deceasedDate) { |
508 | 0 | this.deceasedDate = new SimpleDateFormat("yyyy-MM-dd").format(deceasedDate); |
509 | 0 | } |
510 | |
|
511 | |
public void setBirthDate(Date birthDate) { |
512 | 0 | this.birthDate = new SimpleDateFormat("yyyy-MM-dd").format(birthDate); |
513 | 0 | } |
514 | |
|
515 | |
public void setGenderCode(String genderCode) { |
516 | 9 | if (StringUtils.isEmpty(genderCode)) { |
517 | 2 | throw new IllegalArgumentException("genderCode is empty"); |
518 | |
} |
519 | 7 | this.genderCode = genderCode; |
520 | 7 | } |
521 | |
|
522 | |
public void setMaritalStatusCode(String maritalStatusCode) { |
523 | 5 | this.maritalStatusCode = maritalStatusCode; |
524 | 5 | } |
525 | |
|
526 | |
public void setPrimaryLanguageCode(String primaryLanguageCode) { |
527 | 5 | this.primaryLanguageCode = primaryLanguageCode; |
528 | 5 | } |
529 | |
|
530 | |
public void setSecondaryLanguageCode(String secondaryLanguageCode) { |
531 | 5 | this.secondaryLanguageCode = secondaryLanguageCode; |
532 | 5 | } |
533 | |
|
534 | |
public void setCountryOfBirthCode(String countryOfBirthCode) { |
535 | 5 | this.countryOfBirthCode = countryOfBirthCode; |
536 | 5 | } |
537 | |
|
538 | |
public void setBirthStateCode(String birthStateCode) { |
539 | 5 | this.birthStateCode = birthStateCode; |
540 | 5 | } |
541 | |
|
542 | |
public void setCityOfBirth(String cityOfBirth) { |
543 | 5 | this.cityOfBirth = cityOfBirth; |
544 | 5 | } |
545 | |
|
546 | |
public void setGeographicOrigin(String geographicOrigin) { |
547 | 5 | this.geographicOrigin = geographicOrigin; |
548 | 5 | } |
549 | |
|
550 | |
private void setSuppressPersonal(boolean suppressPersonal) { |
551 | 5 | this.suppressPersonal = suppressPersonal; |
552 | 5 | } |
553 | |
|
554 | |
public void setVersionNumber(Long versionNumber) { |
555 | 5 | this.versionNumber = versionNumber; |
556 | 5 | } |
557 | |
|
558 | |
public void setObjectId(String objectId) { |
559 | 5 | this.objectId = objectId; |
560 | 5 | } |
561 | |
|
562 | |
} |
563 | |
|
564 | |
|
565 | |
|
566 | |
|
567 | |
|
568 | |
|
569 | 0 | static class Constants { |
570 | |
|
571 | |
final static String ROOT_ELEMENT_NAME = "entityBioDemographics"; |
572 | |
final static String TYPE_NAME = "EntityBioDemographicsType"; |
573 | |
} |
574 | |
|
575 | |
|
576 | |
|
577 | |
|
578 | |
|
579 | |
|
580 | 0 | static class Elements { |
581 | |
|
582 | |
final static String ENTITY_ID = "entityId"; |
583 | |
final static String DECEASED_DATE = "deceasedDate"; |
584 | |
final static String BIRTH_DATE = "birthDate"; |
585 | |
final static String GENDER_CODE = "genderCode"; |
586 | |
final static String MARITAL_STATUS_CODE = "maritalStatusCode"; |
587 | |
final static String PRIMARY_LANGUAGE_CODE = "primaryLanguageCode"; |
588 | |
final static String SECONDARY_LANGUAGE_CODE = "secondaryLanguageCode"; |
589 | |
final static String COUNTRY_OF_BIRTH_CODE = "countryOfBirthCode"; |
590 | |
final static String BIRTH_STATE_CODE = "birthStateCode"; |
591 | |
final static String CITY_OF_BIRTH = "cityOfBirth"; |
592 | |
final static String GEOGRAPHIC_ORIGIN = "geographicOrigin"; |
593 | |
final static String BIRTH_DATE_UNMASKED = "birthDateUnmasked"; |
594 | |
final static String GENDER_CODE_UNMASKED = "genderCodeUnmasked"; |
595 | |
final static String MARITAL_STATUS_CODE_UNMASKED = "maritalStatusCodeUnmasked"; |
596 | |
final static String PRIMARY_LANGUAGE_CODE_UNMASKED = "primaryLanguageCodeUnmasked"; |
597 | |
final static String SECONDARY_LANGUAGE_CODE_UNMASKED = "secondaryLanguageCodeUnmasked"; |
598 | |
final static String COUNTRY_OF_BIRTH_CODE_UNMASKED = "countryOfBirthCodeUnmasked"; |
599 | |
final static String BIRTH_STATE_CODE_UNMASKED = "birthStateCodeUnmasked"; |
600 | |
final static String CITY_OF_BIRTH_UNMASKED = "cityOfBirthUnmasked"; |
601 | |
final static String GEOGRAPHIC_ORIGIN_UNMASKED = "geographicOriginUnmasked"; |
602 | |
final static String SUPPRESS_PERSONAL = "suppressPersonal"; |
603 | |
|
604 | |
} |
605 | |
|
606 | |
} |