
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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import gov.niem.niem.niem_core._2.ActivityType;
import gov.niem.niem.niem_core._2.EntityType;
import gov.niem.niem.niem_core._2.OrganizationType;
import gov.niem.niem.niem_core._2.TextType;


/**
 * <p>Java class for CourtOrderType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="CourtOrderType">
 *   &lt;complexContent>
 *     &lt;extension base="{http://niem.gov/niem/niem-core/2.0}ActivityType">
 *       &lt;sequence>
 *         &lt;element ref="{http://niem.gov/niem/domains/jxdm/4.0}CourtOrderDesignatedOrganization" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element ref="{http://niem.gov/niem/domains/jxdm/4.0}CourtOrderRequestReasonText" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element ref="{http://niem.gov/niem/domains/jxdm/4.0}CourtOrderRequestEntity" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element ref="{http://niem.gov/niem/domains/jxdm/4.0}CourtOrderServiceRestrictionText" maxOccurs="unbounded" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CourtOrderType", propOrder = {
    "courtOrderDesignatedOrganization",
    "courtOrderRequestReasonText",
    "courtOrderRequestEntity",
    "courtOrderServiceRestrictionText"
})
@XmlSeeAlso({
    WarrantType.class
})
public class CourtOrderType
    extends ActivityType
{

    @XmlElement(name = "CourtOrderDesignatedOrganization", nillable = true)
    protected List<OrganizationType> courtOrderDesignatedOrganization;
    @XmlElement(name = "CourtOrderRequestReasonText", nillable = true)
    protected List<TextType> courtOrderRequestReasonText;
    @XmlElement(name = "CourtOrderRequestEntity", nillable = true)
    protected List<EntityType> courtOrderRequestEntity;
    @XmlElement(name = "CourtOrderServiceRestrictionText", nillable = true)
    protected List<TextType> courtOrderServiceRestrictionText;

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

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

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

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

}
