public static final class EntityBioDemographics.Builder extends Object implements Serializable, ModelBuilder, EntityBioDemographicsContract
EntityBioDemographics
instances. Enforces the constraints of the EntityBioDemographicsContract
.BIRTH_DATE_FORMAT, DECEASED_DATE_FORMAT
Modifier and Type | Method and Description |
---|---|
EntityBioDemographics |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static EntityBioDemographics.Builder |
create(EntityBioDemographicsContract contract) |
static EntityBioDemographics.Builder |
create(String entityId,
String genderCode) |
Integer |
getAge()
Gets this
EntityBioDemographicsContract 's current age based on birth date if present. |
String |
getBirthCity()
Gets this
EntityBioDemographicsContract 's city of birth. |
String |
getBirthCityUnmasked()
Gets this
EntityBioDemographicsContract 's unmasked city of birth. |
String |
getBirthCountry()
Gets this
EntityBioDemographicsContract 's country of birth code. |
String |
getBirthCountryUnmasked()
Gets this
EntityBioDemographicsContract 's unmasked country of birth code. |
String |
getBirthDate()
Gets this
EntityBioDemographicsContract 's birth date. |
String |
getBirthDateUnmasked()
Gets this
EntityBioDemographicsContract 's unmasked birth date. |
String |
getBirthStateProvinceCode()
Gets this
EntityBioDemographicsContract 's birth state or extra-state jurisdiction code. |
String |
getBirthStateProvinceCodeUnmasked()
Gets this
EntityBioDemographicsContract 's unmasked birth state or extra-state jurisdiction code. |
String |
getDeceasedDate()
Gets this
EntityBioDemographicsContract 's deceased date. |
String |
getEntityId()
Gets this
EntityBioDemographicsContract 's identity id. |
String |
getGenderChangeCode()
Get the
EntityBioDemographicsContract 's gender change code
Corresponds to PESC GenderChangeCode |
String |
getGenderChangeCodeUnmasked()
Get the
EntityBioDemographicsContract 's gender change code
Corresponds to PESC GenderChangeCode |
String |
getGenderCode()
Gets this
EntityBioDemographicsContract 's gender code. |
String |
getGenderCodeUnmasked()
Gets this
EntityBioDemographicsContract 's unmasked gender code. |
String |
getGeographicOrigin()
Gets this
EntityBioDemographicsContract 's geographic origin. |
String |
getGeographicOriginUnmasked()
Gets this
EntityBioDemographicsContract 's unmasked geographic origin. |
String |
getMaritalStatusCode()
Gets this
EntityBioDemographicsContract 's marital status code. |
String |
getMaritalStatusCodeUnmasked()
Gets this
EntityBioDemographicsContract 's unmasked martial status code. |
String |
getNoteMessage()
Get the note associated with this
EntityBioDemographicsContract
Corresponds to PESC NoteMessage |
String |
getObjectId()
Return the globally unique object id of this object.
|
String |
getPrimaryLanguageCode()
Gets this
EntityBioDemographicsContract 's primary language code. |
String |
getPrimaryLanguageCodeUnmasked()
Gets this
EntityBioDemographicsContract 's unmasked primary language code. |
String |
getSecondaryLanguageCode()
Gets this
EntityBioDemographicsContract 's secondary language code. |
String |
getSecondaryLanguageCodeUnmasked()
Gets this
EntityBioDemographicsContract 's unmasked secondary language code. |
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isSuppressPersonal()
Returns a boolean value that determines if personal fields should be suppressed.
|
void |
setBirthCity(String birthCity) |
void |
setBirthCountry(String birthCountry) |
void |
setBirthDate(Date birthDate) |
void |
setBirthDate(String birthDate) |
void |
setBirthStateProvinceCode(String birthStateProvinceCode) |
void |
setDeceasedDate(Date deceasedDate) |
void |
setDeceasedDate(String deceasedDate) |
void |
setEntityId(String entityId) |
void |
setGenderChangeCode(String genderChangeCode) |
void |
setGenderCode(String genderCode) |
void |
setGeographicOrigin(String geographicOrigin) |
void |
setMaritalStatusCode(String maritalStatusCode) |
void |
setObjectId(String objectId) |
void |
setPrimaryLanguageCode(String primaryLanguageCode) |
void |
setSecondaryLanguageCode(String secondaryLanguageCode) |
void |
setVersionNumber(Long versionNumber) |
public static EntityBioDemographics.Builder create(String entityId, String genderCode)
public static EntityBioDemographics.Builder create(EntityBioDemographicsContract contract)
public EntityBioDemographics build()
ModelBuilder
build
in interface ModelBuilder
public String getEntityId()
EntityBioDemographicsContract
EntityBioDemographicsContract
's identity id.getEntityId
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getDeceasedDate()
EntityBioDemographicsContract
EntityBioDemographicsContract
's deceased date.getDeceasedDate
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getBirthDate()
EntityBioDemographicsContract
EntityBioDemographicsContract
's birth date.getBirthDate
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public Integer getAge()
EntityBioDemographicsContract
EntityBioDemographicsContract
's current age based on birth date if present. Age calculation uses
deceased date if present.getAge
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if EntityBioDemographicsContract.getBirthDate()
is unpresent, suppressed, or there is a calculation error.public String getGenderCode()
EntityBioDemographicsContract
EntityBioDemographicsContract
's gender code.getGenderCode
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getGenderChangeCode()
EntityBioDemographicsContract
EntityBioDemographicsContract
's gender change code
Corresponds to PESC GenderChangeCodegetGenderChangeCode
in interface EntityBioDemographicsContract
public String getMaritalStatusCode()
EntityBioDemographicsContract
EntityBioDemographicsContract
's marital status code.getMaritalStatusCode
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getPrimaryLanguageCode()
EntityBioDemographicsContract
EntityBioDemographicsContract
's primary language code.getPrimaryLanguageCode
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getSecondaryLanguageCode()
EntityBioDemographicsContract
EntityBioDemographicsContract
's secondary language code.getSecondaryLanguageCode
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getBirthCountry()
EntityBioDemographicsContract
EntityBioDemographicsContract
's country of birth code.
Corresponds to PESC BirthCountry.getBirthCountry
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getBirthStateProvinceCode()
EntityBioDemographicsContract
EntityBioDemographicsContract
's birth state or extra-state jurisdiction code. Corresponds to PESC BirthStateProvinceCode.getBirthStateProvinceCode
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getBirthCity()
EntityBioDemographicsContract
EntityBioDemographicsContract
's city of birth. Corresponds to PESC BirthCity.getBirthCity
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getGeographicOrigin()
EntityBioDemographicsContract
EntityBioDemographicsContract
's geographic origin.getGeographicOrigin
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getBirthDateUnmasked()
EntityBioDemographicsContract
EntityBioDemographicsContract
's unmasked birth date.getBirthDateUnmasked
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getGenderCodeUnmasked()
EntityBioDemographicsContract
EntityBioDemographicsContract
's unmasked gender code.getGenderCodeUnmasked
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getGenderChangeCodeUnmasked()
EntityBioDemographicsContract
EntityBioDemographicsContract
's gender change code
Corresponds to PESC GenderChangeCodegetGenderChangeCodeUnmasked
in interface EntityBioDemographicsContract
public String getMaritalStatusCodeUnmasked()
EntityBioDemographicsContract
EntityBioDemographicsContract
's unmasked martial status code.getMaritalStatusCodeUnmasked
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getPrimaryLanguageCodeUnmasked()
EntityBioDemographicsContract
EntityBioDemographicsContract
's unmasked primary language code.getPrimaryLanguageCodeUnmasked
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getSecondaryLanguageCodeUnmasked()
EntityBioDemographicsContract
EntityBioDemographicsContract
's unmasked secondary language code.getSecondaryLanguageCodeUnmasked
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getBirthCountryUnmasked()
EntityBioDemographicsContract
EntityBioDemographicsContract
's unmasked country of birth code.getBirthCountryUnmasked
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getBirthStateProvinceCodeUnmasked()
EntityBioDemographicsContract
EntityBioDemographicsContract
's unmasked birth state or extra-state jurisdiction code. Corresponds to PESC BirthStateProvinceCode.getBirthStateProvinceCodeUnmasked
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getBirthCityUnmasked()
EntityBioDemographicsContract
EntityBioDemographicsContract
's unmasked city of birth. Corresponds to PESC BirthCity.getBirthCityUnmasked
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getGeographicOriginUnmasked()
EntityBioDemographicsContract
EntityBioDemographicsContract
's unmasked geographic origin.getGeographicOriginUnmasked
in interface EntityBioDemographicsContract
EntityBioDemographicsContract
, or null if none has been assigned.public String getNoteMessage()
EntityBioDemographicsContract
EntityBioDemographicsContract
Corresponds to PESC NoteMessagegetNoteMessage
in interface EntityBioDemographicsContract
public boolean isSuppressPersonal()
EntityBioDemographicsContract
isSuppressPersonal
in interface EntityBioDemographicsContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public void setEntityId(String entityId)
public void setDeceasedDate(String deceasedDate)
public void setBirthDate(String birthDate)
public void setDeceasedDate(Date deceasedDate)
public void setBirthDate(Date birthDate)
public void setGenderCode(String genderCode)
public void setGenderChangeCode(String genderChangeCode)
public void setMaritalStatusCode(String maritalStatusCode)
public void setPrimaryLanguageCode(String primaryLanguageCode)
public void setSecondaryLanguageCode(String secondaryLanguageCode)
public void setBirthCountry(String birthCountry)
public void setBirthStateProvinceCode(String birthStateProvinceCode)
public void setBirthCity(String birthCity)
public void setGeographicOrigin(String geographicOrigin)
public void setVersionNumber(Long versionNumber)
public void setObjectId(String objectId)
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.