Person.java

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2019.08.22 at 12:18:25 PM UTC 
//


package gov.ojp.it.jxdm._3_0;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import gov.ojp.it.jxdm._3_0_3.proxy.xsd._1.Date;


/**
 * <p>Java class for anonymous complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;extension base="{http://www.it.ojp.gov/jxdm/3.0.3}SuperType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="PersonName" type="{http://www.it.ojp.gov/jxdm/3.0.3}PersonNameType"/&gt;
 *         &lt;element name="PersonPhysicalDetails" type="{http://www.it.ojp.gov/jxdm/3.0.3}PersonPhysicalDetailsType"/&gt;
 *         &lt;element name="PersonBirthDate" type="{http://www.it.ojp.gov/jxdm/3.0.3/proxy/xsd/1.0}date"/&gt;
 *         &lt;element name="Residence" type="{http://www.it.ojp.gov/jxdm/3.0.3}ResidenceType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *     &lt;/extension&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "personName",
    "personPhysicalDetails",
    "personBirthDate",
    "residence"
})
@XmlRootElement(name = "Person")
public class Person
    extends SuperType
{

    @XmlElement(name = "PersonName", required = true)
    protected PersonNameType personName;
    @XmlElement(name = "PersonPhysicalDetails", required = true)
    protected PersonPhysicalDetailsType personPhysicalDetails;
    @XmlElement(name = "PersonBirthDate", required = true)
    protected Date personBirthDate;
    @XmlElement(name = "Residence")
    protected List<ResidenceType> residence;

    /**
     * Default no-arg constructor
     * 
     */
    public Person() {
        super();
    }

    /**
     * Fully-initialising value constructor
     * 
     */
    public Person(final String sourceIDText, final String id, final PersonNameType personName, final PersonPhysicalDetailsType personPhysicalDetails, final Date personBirthDate, final List<ResidenceType> residence) {
        super(sourceIDText, id);
        this.personName = personName;
        this.personPhysicalDetails = personPhysicalDetails;
        this.personBirthDate = personBirthDate;
        this.residence = residence;
    }

    /**
     * Gets the value of the personName property.
     * 
     * @return
     *     possible object is
     *     {@link PersonNameType }
     *     
     */
    public PersonNameType getPersonName() {
        return personName;
    }

    /**
     * Sets the value of the personName property.
     * 
     * @param value
     *     allowed object is
     *     {@link PersonNameType }
     *     
     */
    public void setPersonName(PersonNameType value) {
        this.personName = value;
    }

    /**
     * Gets the value of the personPhysicalDetails property.
     * 
     * @return
     *     possible object is
     *     {@link PersonPhysicalDetailsType }
     *     
     */
    public PersonPhysicalDetailsType getPersonPhysicalDetails() {
        return personPhysicalDetails;
    }

    /**
     * Sets the value of the personPhysicalDetails property.
     * 
     * @param value
     *     allowed object is
     *     {@link PersonPhysicalDetailsType }
     *     
     */
    public void setPersonPhysicalDetails(PersonPhysicalDetailsType value) {
        this.personPhysicalDetails = value;
    }

    /**
     * Gets the value of the personBirthDate property.
     * 
     * @return
     *     possible object is
     *     {@link Date }
     *     
     */
    public Date getPersonBirthDate() {
        return personBirthDate;
    }

    /**
     * Sets the value of the personBirthDate property.
     * 
     * @param value
     *     allowed object is
     *     {@link Date }
     *     
     */
    public void setPersonBirthDate(Date value) {
        this.personBirthDate = value;
    }

    /**
     * Gets the value of the residence property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the residence property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getResidence().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ResidenceType }
     * 
     * 
     */
    public List<ResidenceType> getResidence() {
        if (residence == null) {
            residence = new ArrayList<ResidenceType>();
        }
        return this.residence;
    }

}