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

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.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * A data type for Policy Notification and Text, e.g. for sensitive data notification and/or handling.
 * 
 * &lt;p&gt;Java class for PolicyDefaultType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="PolicyDefaultType"&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="Policy" 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="DataPolicyInd" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&amp;gt;
 *                   &amp;lt;element name="PolicyID" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}CodesetValueSimpleType" minOccurs="0"/&amp;gt;
 *                   &amp;lt;element name="Type" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/&amp;gt;
 *                   &amp;lt;choice&amp;gt;
 *                     &amp;lt;element name="Description" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}ShortDescSimpleType"/&amp;gt;
 *                     &amp;lt;element ref="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}PolicyLink"/&amp;gt;
 *                   &amp;lt;/choice&amp;gt;
 *                   &amp;lt;element ref="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}NodePath" minOccurs="0"/&amp;gt;
 *                 &amp;lt;/sequence&amp;gt;
 *                 &amp;lt;attribute name="refs" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}InstanceClassRefSimpleType" /&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 = "PolicyDefaultType", propOrder = {
    "policy"
})
public class PolicyDefaultType {

    @XmlElement(name = "Policy", required = true)
    protected List<PolicyDefaultType.Policy> policy;

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


    /**
     * &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="DataPolicyInd" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&amp;gt;
     *         &amp;lt;element name="PolicyID" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}CodesetValueSimpleType" minOccurs="0"/&amp;gt;
     *         &amp;lt;element name="Type" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/&amp;gt;
     *         &amp;lt;choice&amp;gt;
     *           &amp;lt;element name="Description" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}ShortDescSimpleType"/&amp;gt;
     *           &amp;lt;element ref="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}PolicyLink"/&amp;gt;
     *         &amp;lt;/choice&amp;gt;
     *         &amp;lt;element ref="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}NodePath" minOccurs="0"/&amp;gt;
     *       &amp;lt;/sequence&amp;gt;
     *       &amp;lt;attribute name="refs" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}InstanceClassRefSimpleType" /&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 = {
        "dataPolicyInd",
        "policyID",
        "type",
        "description",
        "policyLink",
        "nodePath"
    })
    public static class Policy {

        @XmlElement(name = "DataPolicyInd")
        protected Boolean dataPolicyInd;
        @XmlElement(name = "PolicyID")
        protected String policyID;
        @XmlElement(name = "Type")
        protected Object type;
        @XmlElement(name = "Description")
        protected String description;
        @XmlElement(name = "PolicyLink")
        @XmlSchemaType(name = "anyURI")
        protected String policyLink;
        @XmlElement(name = "NodePath")
        protected NodePathType nodePath;
        @XmlAttribute(name = "refs")
        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
        protected String refs;

        /**
         * Gets the value of the dataPolicyInd property.
         * 
         * @return
         *     possible object is
         *     {@link Boolean }
         *     
         */
        public Boolean isDataPolicyInd() {
            return dataPolicyInd;
        }

        /**
         * Sets the value of the dataPolicyInd property.
         * 
         * @param value
         *     allowed object is
         *     {@link Boolean }
         *     
         */
        public void setDataPolicyInd(Boolean value) {
            this.dataPolicyInd = value;
        }

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

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

        /**
         * Gets the value of the type property.
         * 
         * @return
         *     possible object is
         *     {@link Object }
         *     
         */
        public Object getType() {
            return type;
        }

        /**
         * Sets the value of the type property.
         * 
         * @param value
         *     allowed object is
         *     {@link Object }
         *     
         */
        public void setType(Object value) {
            this.type = value;
        }

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

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

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

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

        /**
         * Message Property Path information for this policy-associated element.
         * 
         * @return
         *     possible object is
         *     {@link NodePathType }
         *     
         */
        public NodePathType getNodePath() {
            return nodePath;
        }

        /**
         * Sets the value of the nodePath property.
         * 
         * @param value
         *     allowed object is
         *     {@link NodePathType }
         *     
         */
        public void setNodePath(NodePathType value) {
            this.nodePath = value;
        }

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

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

    }

}
