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
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–2016 The Kuali Foundation. All rights reserved.