
package gov.niem.niem.structures._2;

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.XmlAttribute;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlIDREF;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import gov.niem.niem.domains.jxdm._4.ChargeEnhancingFactorType;
import gov.niem.niem.domains.jxdm._4.ChargeType;
import gov.niem.niem.domains.jxdm._4.JudicialOfficialBarMembershipType;
import gov.niem.niem.domains.jxdm._4.JudicialOfficialType;
import gov.niem.niem.domains.jxdm._4.StatuteType;
import gov.niem.niem.domains.jxdm._4.SubjectType;
import gov.niem.niem.niem_core._2.ActivityType;
import gov.niem.niem.niem_core._2.AddressType;
import gov.niem.niem.niem_core._2.AssociationType;
import gov.niem.niem.niem_core._2.BinaryType;
import gov.niem.niem.niem_core._2.BiometricType;
import gov.niem.niem.niem_core._2.ContactInformationType;
import gov.niem.niem.niem_core._2.DNALocusType;
import gov.niem.niem.niem_core._2.DNAType;
import gov.niem.niem.niem_core._2.DateRangeType;
import gov.niem.niem.niem_core._2.DateType;
import gov.niem.niem.niem_core._2.DispositionType;
import gov.niem.niem.niem_core._2.DocumentType;
import gov.niem.niem.niem_core._2.DriverLicenseBaseType;
import gov.niem.niem.niem_core._2.EntityType;
import gov.niem.niem.niem_core._2.FullTelephoneNumberType;
import gov.niem.niem.niem_core._2.IdentificationType;
import gov.niem.niem.niem_core._2.InternationalTelephoneNumberType;
import gov.niem.niem.niem_core._2.ItemRegistrationType;
import gov.niem.niem.niem_core._2.ItemType;
import gov.niem.niem.niem_core._2.JurisdictionType;
import gov.niem.niem.niem_core._2.LocaleType;
import gov.niem.niem.niem_core._2.LocationType;
import gov.niem.niem.niem_core._2.MeasureType;
import gov.niem.niem.niem_core._2.MedicalConditionType;
import gov.niem.niem.niem_core._2.MilitarySummaryType;
import gov.niem.niem.niem_core._2.NANPTelephoneNumberType;
import gov.niem.niem.niem_core._2.ObligationType;
import gov.niem.niem.niem_core._2.OrganizationType;
import gov.niem.niem.niem_core._2.PassportType;
import gov.niem.niem.niem_core._2.PersonLanguageType;
import gov.niem.niem.niem_core._2.PersonNameType;
import gov.niem.niem.niem_core._2.PersonType;
import gov.niem.niem.niem_core._2.PhysicalFeatureType;
import gov.niem.niem.niem_core._2.StatusType;
import gov.niem.niem.niem_core._2.StreetType;
import gov.niem.niem.niem_core._2.StructuredAddressType;
import gov.niem.niem.niem_core._2.TelephoneNumberType;
import gov.ojp.it.gra.awie.wq._1_0.awieextension.ArrestWarrantInformationExchangeDocumentType;
import org.ncsconline.reference.arrestwarrantextension._2.AgencyRoleType;


/**
 * The ComplexObjectType type provides a base class
 *       for object definition, association definitions, and external adapter
 *       type definitions. An instance of one of these types may have an ID.
 *       It may have metadata as it establishes the existence of an object
 *       (maybe a conceptual object). It may also have link metadata, as an
 *       element of one of these types establishes a relationship between its
 *       value and its context.
 * 
 * <p>Java class for ComplexObjectType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="ComplexObjectType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;attribute ref="{http://niem.gov/niem/structures/2.0}id"/>
 *       &lt;attribute ref="{http://niem.gov/niem/structures/2.0}metadata"/>
 *       &lt;attribute ref="{http://niem.gov/niem/structures/2.0}linkMetadata"/>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ComplexObjectType")
@XmlSeeAlso({
    AgencyRoleType.class,
    EntityType.class,
    DateType.class,
    IdentificationType.class,
    PersonNameType.class,
    SubjectType.class,
    BiometricType.class,
    BinaryType.class,
    PersonLanguageType.class,
    LocationType.class,
    StreetType.class,
    StructuredAddressType.class,
    StatusType.class,
    DNALocusType.class,
    AddressType.class,
    LocaleType.class,
    DNAType.class,
    MilitarySummaryType.class,
    FullTelephoneNumberType.class,
    TelephoneNumberType.class,
    DateRangeType.class,
    ContactInformationType.class,
    PhysicalFeatureType.class,
    PassportType.class,
    MedicalConditionType.class,
    NANPTelephoneNumberType.class,
    DriverLicenseBaseType.class,
    JurisdictionType.class,
    ItemRegistrationType.class,
    ObligationType.class,
    InternationalTelephoneNumberType.class,
    PersonType.class,
    MeasureType.class,
    ItemType.class,
    OrganizationType.class,
    DispositionType.class,
    StatuteType.class,
    AssociationType.class,
    JudicialOfficialBarMembershipType.class,
    ChargeType.class,
    JudicialOfficialType.class,
    ChargeEnhancingFactorType.class,
    ActivityType.class,
    ArrestWarrantInformationExchangeDocumentType.class,
    DocumentType.class
})
public abstract class ComplexObjectType {

    @XmlAttribute(name = "id", namespace = "http://niem.gov/niem/structures/2.0")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlID
    @XmlSchemaType(name = "ID")
    protected String id;
    @XmlAttribute(name = "metadata", namespace = "http://niem.gov/niem/structures/2.0")
    @XmlIDREF
    @XmlSchemaType(name = "IDREFS")
    protected List<Object> metadata;
    @XmlAttribute(name = "linkMetadata", namespace = "http://niem.gov/niem/structures/2.0")
    @XmlIDREF
    @XmlSchemaType(name = "IDREFS")
    protected List<Object> linkMetadata;

    /**
     * Gets the value of the id property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getId() {
        return id;
    }

    /**
     * Sets the value of the id property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setId(String value) {
        this.id = value;
    }

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

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

}
