
package com.amadeus.travelManagement.amadeus.xml._2010._06.travel_ordercancelrs_v1;

import java.util.ArrayList;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * A data type definition for Named Association Type.
 * 
 * Named Association(s).
 * 
 * Note: This capability supports implementer-specified, or "Named" reference associations to other (target) instantiated objects with &#064;Key, &#064;GroupKey and/ or &#064;ListKey attributes.
 * 
 * &lt;p&gt;Java class for NamedAssocType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="NamedAssocType"&amp;gt;
 *   &amp;lt;complexContent&amp;gt;
 *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
 *       &amp;lt;sequence&amp;gt;
 *         &amp;lt;element name="NamedAssoc" maxOccurs="unbounded"&amp;gt;
 *           &amp;lt;complexType&amp;gt;
 *             &amp;lt;complexContent&amp;gt;
 *               &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
 *                 &amp;lt;sequence&amp;gt;
 *                   &amp;lt;element name="Group" maxOccurs="unbounded" minOccurs="0"&amp;gt;
 *                     &amp;lt;complexType&amp;gt;
 *                       &amp;lt;complexContent&amp;gt;
 *                         &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
 *                           &amp;lt;attribute name="GroupKeyRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}InstanceClassRefSimpleType" /&amp;gt;
 *                           &amp;lt;attribute name="TokenRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}TokenID_SimpleType" /&amp;gt;
 *                           &amp;lt;attribute name="Seq" type="{http://www.w3.org/2001/XMLSchema}long" /&amp;gt;
 *                         &amp;lt;/restriction&amp;gt;
 *                       &amp;lt;/complexContent&amp;gt;
 *                     &amp;lt;/complexType&amp;gt;
 *                   &amp;lt;/element&amp;gt;
 *                   &amp;lt;element name="List" maxOccurs="unbounded" minOccurs="0"&amp;gt;
 *                     &amp;lt;complexType&amp;gt;
 *                       &amp;lt;complexContent&amp;gt;
 *                         &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
 *                           &amp;lt;attribute name="ListKeyRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}InstanceClassRefSimpleType" /&amp;gt;
 *                           &amp;lt;attribute name="TokenRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}TokenID_SimpleType" /&amp;gt;
 *                           &amp;lt;attribute name="Seq" type="{http://www.w3.org/2001/XMLSchema}long" /&amp;gt;
 *                         &amp;lt;/restriction&amp;gt;
 *                       &amp;lt;/complexContent&amp;gt;
 *                     &amp;lt;/complexType&amp;gt;
 *                   &amp;lt;/element&amp;gt;
 *                   &amp;lt;element name="UniqueKeyID" maxOccurs="unbounded" minOccurs="0"&amp;gt;
 *                     &amp;lt;complexType&amp;gt;
 *                       &amp;lt;complexContent&amp;gt;
 *                         &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
 *                           &amp;lt;attribute name="UniqueID_Ref" use="required" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}UniqueID_SimpleType" /&amp;gt;
 *                           &amp;lt;attribute name="Seq" type="{http://www.w3.org/2001/XMLSchema}long" /&amp;gt;
 *                         &amp;lt;/restriction&amp;gt;
 *                       &amp;lt;/complexContent&amp;gt;
 *                     &amp;lt;/complexType&amp;gt;
 *                   &amp;lt;/element&amp;gt;
 *                 &amp;lt;/sequence&amp;gt;
 *                 &amp;lt;attribute name="Target" use="required" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}ContextSimpleType" /&amp;gt;
 *                 &amp;lt;attribute name="KeyRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}InstanceClassRefSimpleType" /&amp;gt;
 *                 &amp;lt;attribute name="From" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}ContextSimpleType" /&amp;gt;
 *                 &amp;lt;attribute name="Seq" type="{http://www.w3.org/2001/XMLSchema}long" /&amp;gt;
 *               &amp;lt;/restriction&amp;gt;
 *             &amp;lt;/complexContent&amp;gt;
 *           &amp;lt;/complexType&amp;gt;
 *         &amp;lt;/element&amp;gt;
 *       &amp;lt;/sequence&amp;gt;
 *     &amp;lt;/restriction&amp;gt;
 *   &amp;lt;/complexContent&amp;gt;
 * &amp;lt;/complexType&amp;gt;
 * &lt;/pre&gt;
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NamedAssocType", propOrder = {
    "namedAssoc"
})
public class NamedAssocType {

    @XmlElement(name = "NamedAssoc", required = true)
    protected java.util.List<NamedAssocType.NamedAssoc> namedAssoc;

    /**
     * Gets the value of the namedAssoc property.
     * 
     * &lt;p&gt;
     * 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 &lt;CODE&gt;set&lt;/CODE&gt; method for the namedAssoc property.
     * 
     * &lt;p&gt;
     * For example, to add a new item, do as follows:
     * &lt;pre&gt;
     *    getNamedAssoc().add(newItem);
     * &lt;/pre&gt;
     * 
     * 
     * &lt;p&gt;
     * Objects of the following type(s) are allowed in the list
     * {@link NamedAssocType.NamedAssoc }
     * 
     * 
     */
    public java.util.List<NamedAssocType.NamedAssoc> getNamedAssoc() {
        if (namedAssoc == null) {
            namedAssoc = new ArrayList<NamedAssocType.NamedAssoc>();
        }
        return this.namedAssoc;
    }


    /**
     * &lt;p&gt;Java class for anonymous complex type.
     * 
     * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
     * 
     * &lt;pre&gt;
     * &amp;lt;complexType&amp;gt;
     *   &amp;lt;complexContent&amp;gt;
     *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
     *       &amp;lt;sequence&amp;gt;
     *         &amp;lt;element name="Group" maxOccurs="unbounded" minOccurs="0"&amp;gt;
     *           &amp;lt;complexType&amp;gt;
     *             &amp;lt;complexContent&amp;gt;
     *               &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
     *                 &amp;lt;attribute name="GroupKeyRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}InstanceClassRefSimpleType" /&amp;gt;
     *                 &amp;lt;attribute name="TokenRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}TokenID_SimpleType" /&amp;gt;
     *                 &amp;lt;attribute name="Seq" type="{http://www.w3.org/2001/XMLSchema}long" /&amp;gt;
     *               &amp;lt;/restriction&amp;gt;
     *             &amp;lt;/complexContent&amp;gt;
     *           &amp;lt;/complexType&amp;gt;
     *         &amp;lt;/element&amp;gt;
     *         &amp;lt;element name="List" maxOccurs="unbounded" minOccurs="0"&amp;gt;
     *           &amp;lt;complexType&amp;gt;
     *             &amp;lt;complexContent&amp;gt;
     *               &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
     *                 &amp;lt;attribute name="ListKeyRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}InstanceClassRefSimpleType" /&amp;gt;
     *                 &amp;lt;attribute name="TokenRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}TokenID_SimpleType" /&amp;gt;
     *                 &amp;lt;attribute name="Seq" type="{http://www.w3.org/2001/XMLSchema}long" /&amp;gt;
     *               &amp;lt;/restriction&amp;gt;
     *             &amp;lt;/complexContent&amp;gt;
     *           &amp;lt;/complexType&amp;gt;
     *         &amp;lt;/element&amp;gt;
     *         &amp;lt;element name="UniqueKeyID" maxOccurs="unbounded" minOccurs="0"&amp;gt;
     *           &amp;lt;complexType&amp;gt;
     *             &amp;lt;complexContent&amp;gt;
     *               &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
     *                 &amp;lt;attribute name="UniqueID_Ref" use="required" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}UniqueID_SimpleType" /&amp;gt;
     *                 &amp;lt;attribute name="Seq" type="{http://www.w3.org/2001/XMLSchema}long" /&amp;gt;
     *               &amp;lt;/restriction&amp;gt;
     *             &amp;lt;/complexContent&amp;gt;
     *           &amp;lt;/complexType&amp;gt;
     *         &amp;lt;/element&amp;gt;
     *       &amp;lt;/sequence&amp;gt;
     *       &amp;lt;attribute name="Target" use="required" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}ContextSimpleType" /&amp;gt;
     *       &amp;lt;attribute name="KeyRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}InstanceClassRefSimpleType" /&amp;gt;
     *       &amp;lt;attribute name="From" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}ContextSimpleType" /&amp;gt;
     *       &amp;lt;attribute name="Seq" type="{http://www.w3.org/2001/XMLSchema}long" /&amp;gt;
     *     &amp;lt;/restriction&amp;gt;
     *   &amp;lt;/complexContent&amp;gt;
     * &amp;lt;/complexType&amp;gt;
     * &lt;/pre&gt;
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "group",
        "list",
        "uniqueKeyID"
    })
    public static class NamedAssoc {

        @XmlElement(name = "Group")
        protected java.util.List<NamedAssocType.NamedAssoc.Group> group;
        @XmlElement(name = "List")
        protected java.util.List<NamedAssocType.NamedAssoc.List> list;
        @XmlElement(name = "UniqueKeyID")
        protected java.util.List<NamedAssocType.NamedAssoc.UniqueKeyID> uniqueKeyID;
        @XmlAttribute(name = "Target", required = true)
        protected String target;
        @XmlAttribute(name = "KeyRef")
        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
        protected String keyRef;
        @XmlAttribute(name = "From")
        protected String from;
        @XmlAttribute(name = "Seq")
        protected Long seq;

        /**
         * Gets the value of the group property.
         * 
         * &lt;p&gt;
         * 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 &lt;CODE&gt;set&lt;/CODE&gt; method for the group property.
         * 
         * &lt;p&gt;
         * For example, to add a new item, do as follows:
         * &lt;pre&gt;
         *    getGroup().add(newItem);
         * &lt;/pre&gt;
         * 
         * 
         * &lt;p&gt;
         * Objects of the following type(s) are allowed in the list
         * {@link NamedAssocType.NamedAssoc.Group }
         * 
         * 
         */
        public java.util.List<NamedAssocType.NamedAssoc.Group> getGroup() {
            if (group == null) {
                group = new ArrayList<NamedAssocType.NamedAssoc.Group>();
            }
            return this.group;
        }

        /**
         * Gets the value of the list property.
         * 
         * &lt;p&gt;
         * 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 &lt;CODE&gt;set&lt;/CODE&gt; method for the list property.
         * 
         * &lt;p&gt;
         * For example, to add a new item, do as follows:
         * &lt;pre&gt;
         *    getList().add(newItem);
         * &lt;/pre&gt;
         * 
         * 
         * &lt;p&gt;
         * Objects of the following type(s) are allowed in the list
         * {@link NamedAssocType.NamedAssoc.List }
         * 
         * 
         */
        public java.util.List<NamedAssocType.NamedAssoc.List> getList() {
            if (list == null) {
                list = new ArrayList<NamedAssocType.NamedAssoc.List>();
            }
            return this.list;
        }

        /**
         * Gets the value of the uniqueKeyID property.
         * 
         * &lt;p&gt;
         * 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 &lt;CODE&gt;set&lt;/CODE&gt; method for the uniqueKeyID property.
         * 
         * &lt;p&gt;
         * For example, to add a new item, do as follows:
         * &lt;pre&gt;
         *    getUniqueKeyID().add(newItem);
         * &lt;/pre&gt;
         * 
         * 
         * &lt;p&gt;
         * Objects of the following type(s) are allowed in the list
         * {@link NamedAssocType.NamedAssoc.UniqueKeyID }
         * 
         * 
         */
        public java.util.List<NamedAssocType.NamedAssoc.UniqueKeyID> getUniqueKeyID() {
            if (uniqueKeyID == null) {
                uniqueKeyID = new ArrayList<NamedAssocType.NamedAssoc.UniqueKeyID>();
            }
            return this.uniqueKeyID;
        }

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

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

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

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

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

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

        /**
         * Gets the value of the seq property.
         * 
         * @return
         *     possible object is
         *     {@link Long }
         *     
         */
        public Long getSeq() {
            return seq;
        }

        /**
         * Sets the value of the seq property.
         * 
         * @param value
         *     allowed object is
         *     {@link Long }
         *     
         */
        public void setSeq(Long value) {
            this.seq = value;
        }


        /**
         * &lt;p&gt;Java class for anonymous complex type.
         * 
         * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
         * 
         * &lt;pre&gt;
         * &amp;lt;complexType&amp;gt;
         *   &amp;lt;complexContent&amp;gt;
         *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
         *       &amp;lt;attribute name="GroupKeyRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}InstanceClassRefSimpleType" /&amp;gt;
         *       &amp;lt;attribute name="TokenRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}TokenID_SimpleType" /&amp;gt;
         *       &amp;lt;attribute name="Seq" type="{http://www.w3.org/2001/XMLSchema}long" /&amp;gt;
         *     &amp;lt;/restriction&amp;gt;
         *   &amp;lt;/complexContent&amp;gt;
         * &amp;lt;/complexType&amp;gt;
         * &lt;/pre&gt;
         * 
         * 
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "")
        public static class Group {

            @XmlAttribute(name = "GroupKeyRef")
            @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
            protected String groupKeyRef;
            @XmlAttribute(name = "TokenRef")
            protected String tokenRef;
            @XmlAttribute(name = "Seq")
            protected Long seq;

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

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

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

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

            /**
             * Gets the value of the seq property.
             * 
             * @return
             *     possible object is
             *     {@link Long }
             *     
             */
            public Long getSeq() {
                return seq;
            }

            /**
             * Sets the value of the seq property.
             * 
             * @param value
             *     allowed object is
             *     {@link Long }
             *     
             */
            public void setSeq(Long value) {
                this.seq = value;
            }

        }


        /**
         * &lt;p&gt;Java class for anonymous complex type.
         * 
         * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
         * 
         * &lt;pre&gt;
         * &amp;lt;complexType&amp;gt;
         *   &amp;lt;complexContent&amp;gt;
         *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
         *       &amp;lt;attribute name="ListKeyRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}InstanceClassRefSimpleType" /&amp;gt;
         *       &amp;lt;attribute name="TokenRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}TokenID_SimpleType" /&amp;gt;
         *       &amp;lt;attribute name="Seq" type="{http://www.w3.org/2001/XMLSchema}long" /&amp;gt;
         *     &amp;lt;/restriction&amp;gt;
         *   &amp;lt;/complexContent&amp;gt;
         * &amp;lt;/complexType&amp;gt;
         * &lt;/pre&gt;
         * 
         * 
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "")
        public static class List {

            @XmlAttribute(name = "ListKeyRef")
            @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
            protected String listKeyRef;
            @XmlAttribute(name = "TokenRef")
            protected String tokenRef;
            @XmlAttribute(name = "Seq")
            protected Long seq;

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

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

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

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

            /**
             * Gets the value of the seq property.
             * 
             * @return
             *     possible object is
             *     {@link Long }
             *     
             */
            public Long getSeq() {
                return seq;
            }

            /**
             * Sets the value of the seq property.
             * 
             * @param value
             *     allowed object is
             *     {@link Long }
             *     
             */
            public void setSeq(Long value) {
                this.seq = value;
            }

        }


        /**
         * &lt;p&gt;Java class for anonymous complex type.
         * 
         * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
         * 
         * &lt;pre&gt;
         * &amp;lt;complexType&amp;gt;
         *   &amp;lt;complexContent&amp;gt;
         *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
         *       &amp;lt;attribute name="UniqueID_Ref" use="required" type="{http://xml.amadeus.com/2010/06/Travel_OrderCancelRS_v1}UniqueID_SimpleType" /&amp;gt;
         *       &amp;lt;attribute name="Seq" type="{http://www.w3.org/2001/XMLSchema}long" /&amp;gt;
         *     &amp;lt;/restriction&amp;gt;
         *   &amp;lt;/complexContent&amp;gt;
         * &amp;lt;/complexType&amp;gt;
         * &lt;/pre&gt;
         * 
         * 
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "")
        public static class UniqueKeyID {

            @XmlAttribute(name = "UniqueID_Ref", required = true)
            protected String uniqueIDRef;
            @XmlAttribute(name = "Seq")
            protected Long seq;

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

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

            /**
             * Gets the value of the seq property.
             * 
             * @return
             *     possible object is
             *     {@link Long }
             *     
             */
            public Long getSeq() {
                return seq;
            }

            /**
             * Sets the value of the seq property.
             * 
             * @param value
             *     allowed object is
             *     {@link Long }
             *     
             */
            public void setSeq(Long value) {
                this.seq = value;
            }

        }

    }

}
