
package gov.niem.niem.domains.jxdm._4;

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.XmlType;
import gov.niem.niem.fbi._2.CMCCodeType;
import gov.niem.niem.niem_core._2.LocationType;
import gov.niem.niem.structures._2.ComplexObjectType;
import gov.niem.niem.structures._2.ReferenceType;


/**
 * <p>Java class for SubjectType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="SubjectType">
 *   &lt;complexContent>
 *     &lt;extension base="{http://niem.gov/niem/structures/2.0}ComplexObjectType">
 *       &lt;sequence>
 *         &lt;element ref="{http://niem.gov/niem/niem-core/2.0}RoleOfPersonReference" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element ref="{http://niem.gov/niem/niem-core/2.0}RoleOfOrganizationReference" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element ref="{http://niem.gov/niem/domains/jxdm/4.0}SubjectCautionInformationCode" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element ref="{http://niem.gov/niem/domains/jxdm/4.0}SubjectDetainmentLocation" maxOccurs="unbounded" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SubjectType", propOrder = {
    "roleOfPersonReference",
    "roleOfOrganizationReference",
    "subjectCautionInformationCode",
    "subjectDetainmentLocation"
})
public class SubjectType
    extends ComplexObjectType
{

    @XmlElement(name = "RoleOfPersonReference", namespace = "http://niem.gov/niem/niem-core/2.0")
    protected List<ReferenceType> roleOfPersonReference;
    @XmlElement(name = "RoleOfOrganizationReference", namespace = "http://niem.gov/niem/niem-core/2.0")
    protected List<ReferenceType> roleOfOrganizationReference;
    @XmlElement(name = "SubjectCautionInformationCode", nillable = true)
    protected List<CMCCodeType> subjectCautionInformationCode;
    @XmlElement(name = "SubjectDetainmentLocation", nillable = true)
    protected List<LocationType> subjectDetainmentLocation;

    /**
     * Gets the value of the roleOfPersonReference 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 roleOfPersonReference property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getRoleOfPersonReference().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ReferenceType }
     * 
     * 
     */
    public List<ReferenceType> getRoleOfPersonReference() {
        if (roleOfPersonReference == null) {
            roleOfPersonReference = new ArrayList<ReferenceType>();
        }
        return this.roleOfPersonReference;
    }

    /**
     * Gets the value of the roleOfOrganizationReference 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 roleOfOrganizationReference property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getRoleOfOrganizationReference().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ReferenceType }
     * 
     * 
     */
    public List<ReferenceType> getRoleOfOrganizationReference() {
        if (roleOfOrganizationReference == null) {
            roleOfOrganizationReference = new ArrayList<ReferenceType>();
        }
        return this.roleOfOrganizationReference;
    }

    /**
     * Gets the value of the subjectCautionInformationCode 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 subjectCautionInformationCode property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getSubjectCautionInformationCode().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link CMCCodeType }
     * 
     * 
     */
    public List<CMCCodeType> getSubjectCautionInformationCode() {
        if (subjectCautionInformationCode == null) {
            subjectCautionInformationCode = new ArrayList<CMCCodeType>();
        }
        return this.subjectCautionInformationCode;
    }

    /**
     * Gets the value of the subjectDetainmentLocation 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 subjectDetainmentLocation property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getSubjectDetainmentLocation().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link LocationType }
     * 
     * 
     */
    public List<LocationType> getSubjectDetainmentLocation() {
        if (subjectDetainmentLocation == null) {
            subjectDetainmentLocation = new ArrayList<LocationType>();
        }
        return this.subjectDetainmentLocation;
    }

}
