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

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.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;


/**
 * Parameter for invoice's format (type of invoice, language, time, ...).
 * 
 * &lt;p&gt;Java class for FormattingType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="FormattingType"&amp;gt;
 *   &amp;lt;complexContent&amp;gt;
 *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
 *       &amp;lt;sequence maxOccurs="unbounded"&amp;gt;
 *         &amp;lt;element name="Type"&amp;gt;
 *           &amp;lt;complexType&amp;gt;
 *             &amp;lt;simpleContent&amp;gt;
 *               &amp;lt;extension base="&amp;lt;http://xml.amadeus.com/2010/06/Travel_OrderChangeRQ_v1&amp;gt;StringLength1to16"&amp;gt;
 *                 &amp;lt;attribute name="Joint" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" /&amp;gt;
 *               &amp;lt;/extension&amp;gt;
 *             &amp;lt;/simpleContent&amp;gt;
 *           &amp;lt;/complexType&amp;gt;
 *         &amp;lt;/element&amp;gt;
 *         &amp;lt;element name="Language" type="{http://www.w3.org/2001/XMLSchema}language" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="TimeFormat" type="{http://xml.amadeus.com/2010/06/Travel_OrderChangeRQ_v1}StringLength1to16" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="HotelTerms" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&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 = "FormattingType", propOrder = {
    "typeAndLanguageAndTimeFormat"
})
public class FormattingType {

    @XmlElementRefs({
        @XmlElementRef(name = "Type", namespace = "http://xml.amadeus.com/2010/06/Travel_OrderChangeRQ_v1", type = JAXBElement.class),
        @XmlElementRef(name = "Language", namespace = "http://xml.amadeus.com/2010/06/Travel_OrderChangeRQ_v1", type = JAXBElement.class),
        @XmlElementRef(name = "TimeFormat", namespace = "http://xml.amadeus.com/2010/06/Travel_OrderChangeRQ_v1", type = JAXBElement.class),
        @XmlElementRef(name = "HotelTerms", namespace = "http://xml.amadeus.com/2010/06/Travel_OrderChangeRQ_v1", type = JAXBElement.class)
    })
    protected List<JAXBElement<?>> typeAndLanguageAndTimeFormat;

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


    /**
     * &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;simpleContent&amp;gt;
     *     &amp;lt;extension base="&amp;lt;http://xml.amadeus.com/2010/06/Travel_OrderChangeRQ_v1&amp;gt;StringLength1to16"&amp;gt;
     *       &amp;lt;attribute name="Joint" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" /&amp;gt;
     *     &amp;lt;/extension&amp;gt;
     *   &amp;lt;/simpleContent&amp;gt;
     * &amp;lt;/complexType&amp;gt;
     * &lt;/pre&gt;
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "value"
    })
    public static class Type {

        @XmlValue
        protected String value;
        @XmlAttribute(name = "Joint", required = true)
        protected boolean joint;

        /**
         * Used for strings, length 1 to 16.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getValue() {
            return value;
        }

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

        /**
         * Gets the value of the joint property.
         * 
         */
        public boolean isJoint() {
            return joint;
        }

        /**
         * Sets the value of the joint property.
         * 
         */
        public void setJoint(boolean value) {
            this.joint = value;
        }

    }

}
