
package gov.niem.niem.niem_core._2;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import gov.niem.niem.domains.jxdm._4.BailType;
import gov.niem.niem.domains.jxdm._4.BondType;
import gov.niem.niem.domains.jxdm._4.CourtOrderType;
import gov.niem.niem.domains.jxdm._4.SanctionType;
import gov.niem.niem.structures._2.ComplexObjectType;


/**
 * <p>Java class for ActivityType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="ActivityType">
 *   &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}ActivityIdentification" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element ref="{http://niem.gov/niem/niem-core/2.0}ActivityCategoryText" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element ref="{http://niem.gov/niem/niem-core/2.0}ActivityDateRepresentation" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element ref="{http://niem.gov/niem/niem-core/2.0}ActivityDescriptionText" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element ref="{http://niem.gov/niem/niem-core/2.0}ActivityStatus" maxOccurs="unbounded" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ActivityType", propOrder = {
    "activityIdentification",
    "activityCategoryText",
    "activityDateRepresentation",
    "activityDescriptionText",
    "activityStatus"
})
@XmlSeeAlso({
    IncidentType.class,
    CaseType.class,
    SanctionType.class,
    BailType.class,
    BondType.class,
    CourtOrderType.class
})
public class ActivityType
    extends ComplexObjectType
{

    @XmlElement(name = "ActivityIdentification", nillable = true)
    protected List<IdentificationType> activityIdentification;
    @XmlElement(name = "ActivityCategoryText", nillable = true)
    protected List<TextType> activityCategoryText;
    @XmlElementRef(name = "ActivityDateRepresentation", namespace = "http://niem.gov/niem/niem-core/2.0", type = JAXBElement.class, required = false)
    protected List<JAXBElement<?>> activityDateRepresentation;
    @XmlElement(name = "ActivityDescriptionText", nillable = true)
    protected List<TextType> activityDescriptionText;
    @XmlElement(name = "ActivityStatus", nillable = true)
    protected List<StatusType> activityStatus;

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

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

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

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

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

}
