All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.iata.ndc.schema.ServiceBundle Maven / Gradle / Ivy

The newest version!

package org.iata.ndc.schema;

import java.math.BigInteger;
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.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlIDREF;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <extension base="{http://www.iata.org/IATA/EDIST}DataListObjectBaseType">
 *       <sequence>
 *         <element name="ItemCount" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
 *         <element name="Associations">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <choice>
 *                   <element ref="{http://www.iata.org/IATA/EDIST}ServiceReference" maxOccurs="unbounded"/>
 *                   <element ref="{http://www.iata.org/IATA/EDIST}ServiceID" maxOccurs="unbounded"/>
 *                 </choice>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="Selection" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <choice maxOccurs="2">
 *                   <element name="MinimumQuantity" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
 *                   <element name="MaximumQuantity" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
 *                 </choice>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="BundleID" minOccurs="0">
 *           <complexType>
 *             <simpleContent>
 *               <extension base="<http://www.iata.org/IATA/EDIST>UniqueStringID_SimpleType">
 *                 <attGroup ref="{http://www.iata.org/IATA/EDIST}ObjectKeyAttrGroup"/>
 *               </extension>
 *             </simpleContent>
 *           </complexType>
 *         </element>
 *         <element name="Price" type="{http://www.iata.org/IATA/EDIST}ServicePriceType" minOccurs="0"/>
 *         <element name="BundleName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "itemCount", "associations", "selection", "bundleID", "price", "bundleName" }) public class ServiceBundle extends DataListObjectBaseType { @XmlElement(name = "ItemCount", required = true) @XmlSchemaType(name = "positiveInteger") protected BigInteger itemCount; @XmlElement(name = "Associations", required = true) protected ServiceBundle.Associations associations; @XmlElement(name = "Selection") protected ServiceBundle.Selection selection; @XmlElement(name = "BundleID") protected ServiceBundle.BundleID bundleID; @XmlElement(name = "Price") protected ServicePriceType price; @XmlElement(name = "BundleName") protected String bundleName; /** * Gets the value of the itemCount property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getItemCount() { return itemCount; } /** * Sets the value of the itemCount property. * * @param value * allowed object is * {@link BigInteger } * */ public void setItemCount(BigInteger value) { this.itemCount = value; } /** * Gets the value of the associations property. * * @return * possible object is * {@link ServiceBundle.Associations } * */ public ServiceBundle.Associations getAssociations() { return associations; } /** * Sets the value of the associations property. * * @param value * allowed object is * {@link ServiceBundle.Associations } * */ public void setAssociations(ServiceBundle.Associations value) { this.associations = value; } /** * Gets the value of the selection property. * * @return * possible object is * {@link ServiceBundle.Selection } * */ public ServiceBundle.Selection getSelection() { return selection; } /** * Sets the value of the selection property. * * @param value * allowed object is * {@link ServiceBundle.Selection } * */ public void setSelection(ServiceBundle.Selection value) { this.selection = value; } /** * Gets the value of the bundleID property. * * @return * possible object is * {@link ServiceBundle.BundleID } * */ public ServiceBundle.BundleID getBundleID() { return bundleID; } /** * Sets the value of the bundleID property. * * @param value * allowed object is * {@link ServiceBundle.BundleID } * */ public void setBundleID(ServiceBundle.BundleID value) { this.bundleID = value; } /** * Gets the value of the price property. * * @return * possible object is * {@link ServicePriceType } * */ public ServicePriceType getPrice() { return price; } /** * Sets the value of the price property. * * @param value * allowed object is * {@link ServicePriceType } * */ public void setPrice(ServicePriceType value) { this.price = value; } /** * Gets the value of the bundleName property. * * @return * possible object is * {@link String } * */ public String getBundleName() { return bundleName; } /** * Sets the value of the bundleName property. * * @param value * allowed object is * {@link String } * */ public void setBundleName(String value) { this.bundleName = value; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <choice>
     *         <element ref="{http://www.iata.org/IATA/EDIST}ServiceReference" maxOccurs="unbounded"/>
     *         <element ref="{http://www.iata.org/IATA/EDIST}ServiceID" maxOccurs="unbounded"/>
     *       </choice>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "serviceReference", "serviceID" }) public static class Associations { @XmlElementRef(name = "ServiceReference", namespace = "http://www.iata.org/IATA/EDIST", type = JAXBElement.class) protected List> serviceReference; @XmlElement(name = "ServiceID") protected List serviceID; /** * Gets the value of the serviceReference property. * *

* 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 set method for the serviceReference property. * *

* For example, to add a new item, do as follows: *

         *    getServiceReference().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link Object }{@code >} * * */ public List> getServiceReference() { if (serviceReference == null) { serviceReference = new ArrayList>(); } return this.serviceReference; } /** * Gets the value of the serviceID property. * *

* 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 set method for the serviceID property. * *

* For example, to add a new item, do as follows: *

         *    getServiceID().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ServiceIDType } * * */ public List getServiceID() { if (serviceID == null) { serviceID = new ArrayList(); } return this.serviceID; } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <simpleContent>
     *     <extension base="<http://www.iata.org/IATA/EDIST>UniqueStringID_SimpleType">
     *       <attGroup ref="{http://www.iata.org/IATA/EDIST}ObjectKeyAttrGroup"/>
     *     </extension>
     *   </simpleContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) public static class BundleID { @XmlValue protected String value; @XmlAttribute(name = "refs") @XmlIDREF protected List refs; @XmlAttribute(name = "ObjectKey") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String objectKey; /** * A data type for a Unique String Identifier constraint. * * @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 refs property. * *

* 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 set method for the refs property. * *

* For example, to add a new item, do as follows: *

         *    getRefs().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getRefs() { if (refs == null) { refs = new ArrayList(); } return this.refs; } /** * Gets the value of the objectKey property. * * @return * possible object is * {@link String } * */ public String getObjectKey() { return objectKey; } /** * Sets the value of the objectKey property. * * @param value * allowed object is * {@link String } * */ public void setObjectKey(String value) { this.objectKey = value; } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <choice maxOccurs="2">
     *         <element name="MinimumQuantity" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
     *         <element name="MaximumQuantity" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
     *       </choice>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "minimumQuantityOrMaximumQuantity" }) public static class Selection { @XmlElementRefs({ @XmlElementRef(name = "MinimumQuantity", namespace = "http://www.iata.org/IATA/EDIST", type = JAXBElement.class), @XmlElementRef(name = "MaximumQuantity", namespace = "http://www.iata.org/IATA/EDIST", type = JAXBElement.class) }) protected List> minimumQuantityOrMaximumQuantity; /** * Gets the value of the minimumQuantityOrMaximumQuantity property. * *

* 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 set method for the minimumQuantityOrMaximumQuantity property. * *

* For example, to add a new item, do as follows: *

         *    getMinimumQuantityOrMaximumQuantity().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} * * */ public List> getMinimumQuantityOrMaximumQuantity() { if (minimumQuantityOrMaximumQuantity == null) { minimumQuantityOrMaximumQuantity = new ArrayList>(); } return this.minimumQuantityOrMaximumQuantity; } } }