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