Person.java

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


  7. package gov.ojp.it.jxdm._3_0;

  8. import java.util.ArrayList;
  9. import java.util.List;
  10. import javax.xml.bind.annotation.XmlAccessType;
  11. import javax.xml.bind.annotation.XmlAccessorType;
  12. import javax.xml.bind.annotation.XmlElement;
  13. import javax.xml.bind.annotation.XmlRootElement;
  14. import javax.xml.bind.annotation.XmlType;
  15. import gov.ojp.it.jxdm._3_0_3.proxy.xsd._1.Date;


  16. /**
  17.  * <p>Java class for anonymous complex type.
  18.  *
  19.  * <p>The following schema fragment specifies the expected content contained within this class.
  20.  *
  21.  * <pre>
  22.  * &lt;complexType&gt;
  23.  *   &lt;complexContent&gt;
  24.  *     &lt;extension base="{http://www.it.ojp.gov/jxdm/3.0.3}SuperType"&gt;
  25.  *       &lt;sequence&gt;
  26.  *         &lt;element name="PersonName" type="{http://www.it.ojp.gov/jxdm/3.0.3}PersonNameType"/&gt;
  27.  *         &lt;element name="PersonPhysicalDetails" type="{http://www.it.ojp.gov/jxdm/3.0.3}PersonPhysicalDetailsType"/&gt;
  28.  *         &lt;element name="PersonBirthDate" type="{http://www.it.ojp.gov/jxdm/3.0.3/proxy/xsd/1.0}date"/&gt;
  29.  *         &lt;element name="Residence" type="{http://www.it.ojp.gov/jxdm/3.0.3}ResidenceType" maxOccurs="unbounded" minOccurs="0"/&gt;
  30.  *       &lt;/sequence&gt;
  31.  *     &lt;/extension&gt;
  32.  *   &lt;/complexContent&gt;
  33.  * &lt;/complexType&gt;
  34.  * </pre>
  35.  *
  36.  *
  37.  */
  38. @XmlAccessorType(XmlAccessType.FIELD)
  39. @XmlType(name = "", propOrder = {
  40.     "personName",
  41.     "personPhysicalDetails",
  42.     "personBirthDate",
  43.     "residence"
  44. })
  45. @XmlRootElement(name = "Person")
  46. public class Person
  47.     extends SuperType
  48. {

  49.     @XmlElement(name = "PersonName", required = true)
  50.     protected PersonNameType personName;
  51.     @XmlElement(name = "PersonPhysicalDetails", required = true)
  52.     protected PersonPhysicalDetailsType personPhysicalDetails;
  53.     @XmlElement(name = "PersonBirthDate", required = true)
  54.     protected Date personBirthDate;
  55.     @XmlElement(name = "Residence")
  56.     protected List<ResidenceType> residence;

  57.     /**
  58.      * Default no-arg constructor
  59.      *
  60.      */
  61.     public Person() {
  62.         super();
  63.     }

  64.     /**
  65.      * Fully-initialising value constructor
  66.      *
  67.      */
  68.     public Person(final String sourceIDText, final String id, final PersonNameType personName, final PersonPhysicalDetailsType personPhysicalDetails, final Date personBirthDate, final List<ResidenceType> residence) {
  69.         super(sourceIDText, id);
  70.         this.personName = personName;
  71.         this.personPhysicalDetails = personPhysicalDetails;
  72.         this.personBirthDate = personBirthDate;
  73.         this.residence = residence;
  74.     }

  75.     /**
  76.      * Gets the value of the personName property.
  77.      *
  78.      * @return
  79.      *     possible object is
  80.      *     {@link PersonNameType }
  81.      *    
  82.      */
  83.     public PersonNameType getPersonName() {
  84.         return personName;
  85.     }

  86.     /**
  87.      * Sets the value of the personName property.
  88.      *
  89.      * @param value
  90.      *     allowed object is
  91.      *     {@link PersonNameType }
  92.      *    
  93.      */
  94.     public void setPersonName(PersonNameType value) {
  95.         this.personName = value;
  96.     }

  97.     /**
  98.      * Gets the value of the personPhysicalDetails property.
  99.      *
  100.      * @return
  101.      *     possible object is
  102.      *     {@link PersonPhysicalDetailsType }
  103.      *    
  104.      */
  105.     public PersonPhysicalDetailsType getPersonPhysicalDetails() {
  106.         return personPhysicalDetails;
  107.     }

  108.     /**
  109.      * Sets the value of the personPhysicalDetails property.
  110.      *
  111.      * @param value
  112.      *     allowed object is
  113.      *     {@link PersonPhysicalDetailsType }
  114.      *    
  115.      */
  116.     public void setPersonPhysicalDetails(PersonPhysicalDetailsType value) {
  117.         this.personPhysicalDetails = value;
  118.     }

  119.     /**
  120.      * Gets the value of the personBirthDate property.
  121.      *
  122.      * @return
  123.      *     possible object is
  124.      *     {@link Date }
  125.      *    
  126.      */
  127.     public Date getPersonBirthDate() {
  128.         return personBirthDate;
  129.     }

  130.     /**
  131.      * Sets the value of the personBirthDate property.
  132.      *
  133.      * @param value
  134.      *     allowed object is
  135.      *     {@link Date }
  136.      *    
  137.      */
  138.     public void setPersonBirthDate(Date value) {
  139.         this.personBirthDate = value;
  140.     }

  141.     /**
  142.      * Gets the value of the residence property.
  143.      *
  144.      * <p>
  145.      * This accessor method returns a reference to the live list,
  146.      * not a snapshot. Therefore any modification you make to the
  147.      * returned list will be present inside the JAXB object.
  148.      * This is why there is not a <CODE>set</CODE> method for the residence property.
  149.      *
  150.      * <p>
  151.      * For example, to add a new item, do as follows:
  152.      * <pre>
  153.      *    getResidence().add(newItem);
  154.      * </pre>
  155.      *
  156.      *
  157.      * <p>
  158.      * Objects of the following type(s) are allowed in the list
  159.      * {@link ResidenceType }
  160.      *
  161.      *
  162.      */
  163.     public List<ResidenceType> getResidence() {
  164.         if (residence == null) {
  165.             residence = new ArrayList<ResidenceType>();
  166.         }
  167.         return this.residence;
  168.     }

  169. }