
package com.amadeus.travelManagement.amadeus.xml._2010._06.travel_orderpayrq_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.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;


/**
 * The amount of checked or carry-on luggage the airline will allow per passenger.
 * 
 * &lt;p&gt;Java class for BaggageAllowanceType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="BaggageAllowanceType"&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="BaggageAllowanceID" type="{http://xml.amadeus.com/2010/06/Travel_OrderPayRQ_v1}ID_Type"/&amp;gt;
 *         &amp;lt;element name="TypeCode" type="{http://xml.amadeus.com/2010/06/Travel_OrderPayRQ_v1}BaggageTypeCodeType"/&amp;gt;
 *         &amp;lt;element name="ApplicableBagText" type="{http://xml.amadeus.com/2010/06/Travel_OrderPayRQ_v1}TextType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="ApplicablePartyText" type="{http://xml.amadeus.com/2010/06/Travel_OrderPayRQ_v1}TextType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="DescText" type="{http://xml.amadeus.com/2010/06/Travel_OrderPayRQ_v1}TextType" maxOccurs="99" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="WeightAllowance" type="{http://xml.amadeus.com/2010/06/Travel_OrderPayRQ_v1}WeightAllowanceType" maxOccurs="unbounded" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="BDC" type="{http://xml.amadeus.com/2010/06/Travel_OrderPayRQ_v1}BDC_Type" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="DimensionAllowance" type="{http://xml.amadeus.com/2010/06/Travel_OrderPayRQ_v1}DimensionAllowanceType" maxOccurs="unbounded" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="PieceAllowance" type="{http://xml.amadeus.com/2010/06/Travel_OrderPayRQ_v1}PieceAllowanceType" maxOccurs="unbounded" 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 = "BaggageAllowanceType", propOrder = {
    "baggageAllowanceID",
    "typeCode",
    "applicableBagText",
    "applicablePartyText",
    "descText",
    "weightAllowance",
    "bdc",
    "dimensionAllowance",
    "pieceAllowance"
})
public class BaggageAllowanceType {

    @XmlElement(name = "BaggageAllowanceID", required = true)
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "token")
    protected String baggageAllowanceID;
    @XmlElement(name = "TypeCode", required = true)
    @XmlSchemaType(name = "string")
    protected BaggageTypeContentType typeCode;
    @XmlElement(name = "ApplicableBagText")
    protected String applicableBagText;
    @XmlElement(name = "ApplicablePartyText")
    protected String applicablePartyText;
    @XmlElement(name = "DescText")
    protected List<String> descText;
    @XmlElement(name = "WeightAllowance")
    protected List<WeightAllowanceType> weightAllowance;
    @XmlElement(name = "BDC")
    protected BDCType bdc;
    @XmlElement(name = "DimensionAllowance")
    protected List<DimensionAllowanceType> dimensionAllowance;
    @XmlElement(name = "PieceAllowance")
    protected List<PieceAllowanceType> pieceAllowance;

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

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

    /**
     * Gets the value of the typeCode property.
     * 
     * @return
     *     possible object is
     *     {@link BaggageTypeContentType }
     *     
     */
    public BaggageTypeContentType getTypeCode() {
        return typeCode;
    }

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

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

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

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

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

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

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

    /**
     * Gets the value of the bdc property.
     * 
     * @return
     *     possible object is
     *     {@link BDCType }
     *     
     */
    public BDCType getBDC() {
        return bdc;
    }

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

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

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

}
