Java tutorial
package com.travelport.schema.common_v12_0; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; import javax.annotation.Generated; 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.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlTransient; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; import com.sun.xml.bind.Locatable; import com.sun.xml.bind.annotation.XmlLocation; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.cxf.xjc.runtime.JAXBToStringStyle; import org.xml.sax.Locator; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{http://www.travelport.com/schema/common_v12_0}BookingTravelerName"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}DeliveryInfo" minOccurs="0"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}PhoneNumber" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}Email" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}LoyaltyCard" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}DiscountCard" maxOccurs="9" minOccurs="0"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}SSR" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}NameRemark" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}AirSeatAssignment" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}RailSeatAssignment" maxOccurs="unbounded" minOccurs="0"/> * <element name="EmergencyInfo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="Address" type="{http://www.travelport.com/schema/common_v12_0}typeStructuredAddress" minOccurs="0"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}DriversLicense" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}AppliedProfile" maxOccurs="unbounded" minOccurs="0"/> * <element ref="{http://www.travelport.com/schema/common_v12_0}CustomizedNameData" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * <attribute name="Key" type="{http://www.travelport.com/schema/common_v12_0}typeRef" /> * <attribute name="TravelerType" type="{http://www.travelport.com/schema/common_v12_0}typePTC" /> * <attribute name="Age" type="{http://www.w3.org/2001/XMLSchema}integer" /> * <attribute name="VIP" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> * <attribute name="DOB" type="{http://www.w3.org/2001/XMLSchema}date" /> * <attribute name="Gender" type="{http://www.travelport.com/schema/common_v12_0}typeGender" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "bookingTravelerName", "deliveryInfo", "phoneNumber", "email", "loyaltyCard", "discountCard", "ssr", "nameRemark", "airSeatAssignment", "railSeatAssignment", "emergencyInfo", "address", "driversLicense", "appliedProfile", "customizedNameData" }) @XmlRootElement(name = "BookingTraveler") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public class BookingTraveler implements Locatable { @XmlElement(name = "BookingTravelerName", required = true) @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected BookingTravelerName bookingTravelerName; @XmlElement(name = "DeliveryInfo") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected DeliveryInfo deliveryInfo; @XmlElement(name = "PhoneNumber") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected List<PhoneNumber> phoneNumber; @XmlElement(name = "Email") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected List<Email> email; @XmlElement(name = "LoyaltyCard") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected List<LoyaltyCard> loyaltyCard; @XmlElement(name = "DiscountCard") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected List<DiscountCard> discountCard; @XmlElement(name = "SSR") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected List<SSR> ssr; @XmlElement(name = "NameRemark") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected List<NameRemark> nameRemark; @XmlElement(name = "AirSeatAssignment") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected List<AirSeatAssignment> airSeatAssignment; @XmlElement(name = "RailSeatAssignment") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected List<RailSeatAssignment> railSeatAssignment; @XmlElement(name = "EmergencyInfo") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected String emergencyInfo; @XmlElement(name = "Address") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected TypeStructuredAddress address; @XmlElement(name = "DriversLicense") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected List<DriversLicense> driversLicense; @XmlElement(name = "AppliedProfile") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected List<AppliedProfile> appliedProfile; @XmlElement(name = "CustomizedNameData") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected List<CustomizedNameData> customizedNameData; @XmlAttribute(name = "Key") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected String key; @XmlAttribute(name = "TravelerType") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected String travelerType; @XmlAttribute(name = "Age") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected BigInteger age; @XmlAttribute(name = "VIP") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected Boolean vip; @XmlAttribute(name = "DOB") @XmlSchemaType(name = "date") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected XMLGregorianCalendar dob; @XmlAttribute(name = "Gender") @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected String gender; @XmlLocation @XmlTransient @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") protected Locator locator; /** * Gets the value of the bookingTravelerName property. * * @return * possible object is * {@link BookingTravelerName } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public BookingTravelerName getBookingTravelerName() { return bookingTravelerName; } /** * Sets the value of the bookingTravelerName property. * * @param value * allowed object is * {@link BookingTravelerName } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public void setBookingTravelerName(BookingTravelerName value) { this.bookingTravelerName = value; } /** * Gets the value of the deliveryInfo property. * * @return * possible object is * {@link DeliveryInfo } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public DeliveryInfo getDeliveryInfo() { return deliveryInfo; } /** * Sets the value of the deliveryInfo property. * * @param value * allowed object is * {@link DeliveryInfo } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public void setDeliveryInfo(DeliveryInfo value) { this.deliveryInfo = value; } /** * Gets the value of the phoneNumber property. * * <p> * 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 <CODE>set</CODE> method for the phoneNumber property. * * <p> * For example, to add a new item, do as follows: * <pre> * getPhoneNumber().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link PhoneNumber } * * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public List<PhoneNumber> getPhoneNumber() { if (phoneNumber == null) { phoneNumber = new ArrayList<PhoneNumber>(); } return this.phoneNumber; } /** * Gets the value of the email property. * * <p> * 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 <CODE>set</CODE> method for the email property. * * <p> * For example, to add a new item, do as follows: * <pre> * getEmail().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Email } * * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public List<Email> getEmail() { if (email == null) { email = new ArrayList<Email>(); } return this.email; } /** * Gets the value of the loyaltyCard property. * * <p> * 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 <CODE>set</CODE> method for the loyaltyCard property. * * <p> * For example, to add a new item, do as follows: * <pre> * getLoyaltyCard().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link LoyaltyCard } * * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public List<LoyaltyCard> getLoyaltyCard() { if (loyaltyCard == null) { loyaltyCard = new ArrayList<LoyaltyCard>(); } return this.loyaltyCard; } /** * Gets the value of the discountCard property. * * <p> * 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 <CODE>set</CODE> method for the discountCard property. * * <p> * For example, to add a new item, do as follows: * <pre> * getDiscountCard().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link DiscountCard } * * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public List<DiscountCard> getDiscountCard() { if (discountCard == null) { discountCard = new ArrayList<DiscountCard>(); } return this.discountCard; } /** * Gets the value of the ssr property. * * <p> * 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 <CODE>set</CODE> method for the ssr property. * * <p> * For example, to add a new item, do as follows: * <pre> * getSSR().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link SSR } * * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public List<SSR> getSSR() { if (ssr == null) { ssr = new ArrayList<SSR>(); } return this.ssr; } /** * Gets the value of the nameRemark property. * * <p> * 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 <CODE>set</CODE> method for the nameRemark property. * * <p> * For example, to add a new item, do as follows: * <pre> * getNameRemark().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link NameRemark } * * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public List<NameRemark> getNameRemark() { if (nameRemark == null) { nameRemark = new ArrayList<NameRemark>(); } return this.nameRemark; } /** * Gets the value of the airSeatAssignment property. * * <p> * 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 <CODE>set</CODE> method for the airSeatAssignment property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAirSeatAssignment().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link AirSeatAssignment } * * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public List<AirSeatAssignment> getAirSeatAssignment() { if (airSeatAssignment == null) { airSeatAssignment = new ArrayList<AirSeatAssignment>(); } return this.airSeatAssignment; } /** * Gets the value of the railSeatAssignment property. * * <p> * 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 <CODE>set</CODE> method for the railSeatAssignment property. * * <p> * For example, to add a new item, do as follows: * <pre> * getRailSeatAssignment().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link RailSeatAssignment } * * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public List<RailSeatAssignment> getRailSeatAssignment() { if (railSeatAssignment == null) { railSeatAssignment = new ArrayList<RailSeatAssignment>(); } return this.railSeatAssignment; } /** * Gets the value of the emergencyInfo property. * * @return * possible object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public String getEmergencyInfo() { return emergencyInfo; } /** * Sets the value of the emergencyInfo property. * * @param value * allowed object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public void setEmergencyInfo(String value) { this.emergencyInfo = value; } /** * Gets the value of the address property. * * @return * possible object is * {@link TypeStructuredAddress } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public TypeStructuredAddress getAddress() { return address; } /** * Sets the value of the address property. * * @param value * allowed object is * {@link TypeStructuredAddress } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public void setAddress(TypeStructuredAddress value) { this.address = value; } /** * Gets the value of the driversLicense property. * * <p> * 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 <CODE>set</CODE> method for the driversLicense property. * * <p> * For example, to add a new item, do as follows: * <pre> * getDriversLicense().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link DriversLicense } * * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public List<DriversLicense> getDriversLicense() { if (driversLicense == null) { driversLicense = new ArrayList<DriversLicense>(); } return this.driversLicense; } /** * Gets the value of the appliedProfile property. * * <p> * 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 <CODE>set</CODE> method for the appliedProfile property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAppliedProfile().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link AppliedProfile } * * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public List<AppliedProfile> getAppliedProfile() { if (appliedProfile == null) { appliedProfile = new ArrayList<AppliedProfile>(); } return this.appliedProfile; } /** * Gets the value of the customizedNameData property. * * <p> * 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 <CODE>set</CODE> method for the customizedNameData property. * * <p> * For example, to add a new item, do as follows: * <pre> * getCustomizedNameData().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link CustomizedNameData } * * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public List<CustomizedNameData> getCustomizedNameData() { if (customizedNameData == null) { customizedNameData = new ArrayList<CustomizedNameData>(); } return this.customizedNameData; } /** * Gets the value of the key property. * * @return * possible object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public String getKey() { return key; } /** * Sets the value of the key property. * * @param value * allowed object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public void setKey(String value) { this.key = value; } /** * Gets the value of the travelerType property. * * @return * possible object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public String getTravelerType() { return travelerType; } /** * Sets the value of the travelerType property. * * @param value * allowed object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public void setTravelerType(String value) { this.travelerType = value; } /** * Gets the value of the age property. * * @return * possible object is * {@link BigInteger } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public BigInteger getAge() { return age; } /** * Sets the value of the age property. * * @param value * allowed object is * {@link BigInteger } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public void setAge(BigInteger value) { this.age = value; } /** * Gets the value of the vip property. * * @return * possible object is * {@link Boolean } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public boolean isVIP() { if (vip == null) { return false; } else { return vip; } } /** * Sets the value of the vip property. * * @param value * allowed object is * {@link Boolean } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public void setVIP(Boolean value) { this.vip = value; } /** * Gets the value of the dob property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public XMLGregorianCalendar getDOB() { return dob; } /** * Sets the value of the dob property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public void setDOB(XMLGregorianCalendar value) { this.dob = value; } /** * Gets the value of the gender property. * * @return * possible object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public String getGender() { return gender; } /** * Sets the value of the gender property. * * @param value * allowed object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public void setGender(String value) { this.gender = value; } /** * Generates a String representation of the contents of this type. * This is an extension method, produced by the 'ts' xjc plugin * */ @Override @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public String toString() { return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.MULTI_LINE_STYLE); } @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public Locator sourceLocation() { return locator; } @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7") public void setSourceLocation(Locator newLocator) { locator = newLocator; } }