org.ota.air
Class AirTraveler

java.lang.Object
  extended by org.ota.air.AirTraveler
Direct Known Subclasses:
TravelerInfo.AirTraveler

public class AirTraveler
extends java.lang.Object

Information about the person traveling. Gender - the gender of the customer, if needed. BirthDate - Date of Birth. Currency - the preferred currency in which monetary amounts should be returned. Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="AirTravelerType">
   <xs:sequence>
     <xs:element name="ProfileRef" minOccurs="0">
       <xs:complexType>
         <xs:sequence>
           <xs:element type="ns:UniqueID_Type" name="UniqueID"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:PersonNameType" name="PersonName" minOccurs="0"/>
     <xs:element name="Telephone" minOccurs="0" maxOccurs="20">
       <!-- Reference to inner class Telephone -->
     </xs:element>
     <xs:element name="Email" minOccurs="0" maxOccurs="3">
       <!-- Reference to inner class Email -->
     </xs:element>
     <xs:element name="Address" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class Address -->
     </xs:element>
     <xs:element name="CustLoyalty" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class CustLoyalty -->
     </xs:element>
     <xs:element name="Document" minOccurs="0" maxOccurs="10">
       <!-- Reference to inner class Document -->
     </xs:element>
     <xs:element type="ns:PassengerTypeQuantityType" name="PassengerTypeQuantity" minOccurs="0"/>
     <xs:element name="TravelerRefNumber" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:TravelerRefNumberGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="FlightSegmentRPHs" minOccurs="0">
       <!-- Reference to inner class FlightSegmentRPHs -->
     </xs:element>
   </xs:sequence>
   <xs:attributeGroup ref="ns:GenderGroup"/>
   <xs:attributeGroup ref="ns:PrivacyGroup"/>
   <xs:attribute type="xs:date" use="optional" name="BirthDate"/>
   <xs:attribute type="xs:string" use="optional" name="CurrencyCode"/>
   <xs:attribute type="xs:string" use="optional" name="PassengerTypeCode"/>
   <xs:attribute type="xs:boolean" use="optional" name="AccompaniedByInfant"/>
 </xs:complexType>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PassengerTypeQuantityType">
   <xs:attributeGroup ref="ns:TravelerCountGroup"/>
 </xs:complexType>
 


Nested Class Summary
static class AirTraveler.Address
          Address information of the person traveling.
static class AirTraveler.CustLoyalty
          Identifies the loyalty program(s) that the customer belongs to and associated information.
static class AirTraveler.Document
          Official travel document information associated with the person traveling.
static class AirTraveler.Email
          Email address of the person traveling.
static class AirTraveler.FlightSegmentRPHs
          Reference pointers to flight segments Schema fragment(s) for this class:
static class AirTraveler.Telephone
          Telephone number for the person traveling.
 
Constructor Summary
AirTraveler()
           
 
Method Summary
 void addAddress(AirTraveler.Address item)
          Add a 'Address' element item.
 void addCustLoyalty(AirTraveler.CustLoyalty item)
          Add a 'CustLoyalty' element item.
 void addDocument(AirTraveler.Document item)
          Add a 'Document' element item.
 void addEmail(AirTraveler.Email item)
          Add a 'Email' element item.
 void addTelephone(AirTraveler.Telephone item)
          Add a 'Telephone' element item.
 void clearAddresses()
          Remove all 'Address' element items.
 void clearCustLoyalties()
          Remove all 'CustLoyalty' element items.
 void clearDocuments()
          Remove all 'Document' element items.
 void clearEmails()
          Remove all 'Email' element items.
 void clearTelephones()
          Remove all 'Telephone' element items.
 java.lang.Boolean getAccompaniedByInfant()
          Get the 'AccompaniedByInfant' attribute value.
 AirTraveler.Address getAddress(int index)
          Get 'Address' element item by position.
 java.util.List<AirTraveler.Address> getAddresses()
          Get the list of 'Address' element items.
 java.sql.Date getBirthDate()
          Get the 'BirthDate' attribute value.
 java.lang.String getCurrencyCode()
          Get the 'CurrencyCode' attribute value.
 java.util.List<AirTraveler.CustLoyalty> getCustLoyalties()
          Get the list of 'CustLoyalty' element items.
 AirTraveler.CustLoyalty getCustLoyalty(int index)
          Get 'CustLoyalty' element item by position.
 AirTraveler.Document getDocument(int index)
          Get 'Document' element item by position.
 java.util.List<AirTraveler.Document> getDocuments()
          Get the list of 'Document' element items.
 AirTraveler.Email getEmail(int index)
          Get 'Email' element item by position.
 java.util.List<AirTraveler.Email> getEmails()
          Get the list of 'Email' element items.
 AirTraveler.FlightSegmentRPHs getFlightSegmentRPHs()
          Get the 'FlightSegmentRPHs' element value.
 GenderGroup getGenderGroup()
          Get the 'GenderGroup' attributeGroup value.
 java.lang.String getPassengerTypeCode()
          Get the 'PassengerTypeCode' attribute value.
 PersonName getPersonName()
          Get the 'PersonName' element value.
 PrivacyGroup getPrivacyGroup()
          Get the 'PrivacyGroup' attributeGroup value.
 AirTraveler.Telephone getTelephone(int index)
          Get 'Telephone' element item by position.
 java.util.List<AirTraveler.Telephone> getTelephones()
          Get the list of 'Telephone' element items.
 TravelerCountGroup getTravelerCountGroup()
          Get the 'TravelerCountGroup' attributeGroup value.
 TravelerRefNumberGroup getTravelerRefNumber()
          Get the 'TravelerRefNumberGroup' attributeGroup value.
 UniqueID getUniqueID()
          Get the 'UniqueID' element value.
 void setAccompaniedByInfant(java.lang.Boolean accompaniedByInfant)
          Set the 'AccompaniedByInfant' attribute value.
 void setAddresses(java.util.List<AirTraveler.Address> list)
          Set the list of 'Address' element items.
 void setBirthDate(java.sql.Date birthDate)
          Set the 'BirthDate' attribute value.
 void setCurrencyCode(java.lang.String currencyCode)
          Set the 'CurrencyCode' attribute value.
 void setCustLoyalties(java.util.List<AirTraveler.CustLoyalty> list)
          Set the list of 'CustLoyalty' element items.
 void setDocuments(java.util.List<AirTraveler.Document> list)
          Set the list of 'Document' element items.
 void setEmails(java.util.List<AirTraveler.Email> list)
          Set the list of 'Email' element items.
 void setFlightSegmentRPHs(AirTraveler.FlightSegmentRPHs flightSegmentRPHs)
          Set the 'FlightSegmentRPHs' element value.
 void setGenderGroup(GenderGroup genderGroup)
          Set the 'GenderGroup' attributeGroup value.
 void setPassengerTypeCode(java.lang.String passengerTypeCode)
          Set the 'PassengerTypeCode' attribute value.
 void setPersonName(PersonName personName)
          Set the 'PersonName' element value.
 void setPrivacyGroup(PrivacyGroup privacyGroup)
          Set the 'PrivacyGroup' attributeGroup value.
 void setTelephones(java.util.List<AirTraveler.Telephone> list)
          Set the list of 'Telephone' element items.
 void setTravelerCountGroup(TravelerCountGroup travelerCountGroup)
          Set the 'TravelerCountGroup' attributeGroup value.
 void setTravelerRefNumber(TravelerRefNumberGroup travelerRefNumber)
          Set the 'TravelerRefNumberGroup' attributeGroup value.
 void setUniqueID(UniqueID uniqueID)
          Set the 'UniqueID' element value.
 int sizeAddresses()
          Get the number of 'Address' element items.
 int sizeCustLoyalties()
          Get the number of 'CustLoyalty' element items.
 int sizeDocuments()
          Get the number of 'Document' element items.
 int sizeEmails()
          Get the number of 'Email' element items.
 int sizeTelephones()
          Get the number of 'Telephone' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AirTraveler

public AirTraveler()
Method Detail

getUniqueID

public UniqueID getUniqueID()
Get the 'UniqueID' element value. An identifier used to uniquely reference a customer profile.

Returns:
value

setUniqueID

public void setUniqueID(UniqueID uniqueID)
Set the 'UniqueID' element value. An identifier used to uniquely reference a customer profile.

Parameters:
uniqueID -

getPersonName

public PersonName getPersonName()
Get the 'PersonName' element value. Name information of the person traveling.

Returns:
value

setPersonName

public void setPersonName(PersonName personName)
Set the 'PersonName' element value. Name information of the person traveling.

Parameters:
personName -

getTelephones

public java.util.List<AirTraveler.Telephone> getTelephones()
Get the list of 'Telephone' element items.

Returns:
list

setTelephones

public void setTelephones(java.util.List<AirTraveler.Telephone> list)
Set the list of 'Telephone' element items.

Parameters:
list -

sizeTelephones

public int sizeTelephones()
Get the number of 'Telephone' element items.

Returns:
count

addTelephone

public void addTelephone(AirTraveler.Telephone item)
Add a 'Telephone' element item.

Parameters:
item -

getTelephone

public AirTraveler.Telephone getTelephone(int index)
Get 'Telephone' element item by position.

Parameters:
index -
Returns:
item

clearTelephones

public void clearTelephones()
Remove all 'Telephone' element items.


getEmails

public java.util.List<AirTraveler.Email> getEmails()
Get the list of 'Email' element items.

Returns:
list

setEmails

public void setEmails(java.util.List<AirTraveler.Email> list)
Set the list of 'Email' element items.

Parameters:
list -

sizeEmails

public int sizeEmails()
Get the number of 'Email' element items.

Returns:
count

addEmail

public void addEmail(AirTraveler.Email item)
Add a 'Email' element item.

Parameters:
item -

getEmail

public AirTraveler.Email getEmail(int index)
Get 'Email' element item by position.

Parameters:
index -
Returns:
item

clearEmails

public void clearEmails()
Remove all 'Email' element items.


getAddresses

public java.util.List<AirTraveler.Address> getAddresses()
Get the list of 'Address' element items.

Returns:
list

setAddresses

public void setAddresses(java.util.List<AirTraveler.Address> list)
Set the list of 'Address' element items.

Parameters:
list -

sizeAddresses

public int sizeAddresses()
Get the number of 'Address' element items.

Returns:
count

addAddress

public void addAddress(AirTraveler.Address item)
Add a 'Address' element item.

Parameters:
item -

getAddress

public AirTraveler.Address getAddress(int index)
Get 'Address' element item by position.

Parameters:
index -
Returns:
item

clearAddresses

public void clearAddresses()
Remove all 'Address' element items.


getCustLoyalties

public java.util.List<AirTraveler.CustLoyalty> getCustLoyalties()
Get the list of 'CustLoyalty' element items.

Returns:
list

setCustLoyalties

public void setCustLoyalties(java.util.List<AirTraveler.CustLoyalty> list)
Set the list of 'CustLoyalty' element items.

Parameters:
list -

sizeCustLoyalties

public int sizeCustLoyalties()
Get the number of 'CustLoyalty' element items.

Returns:
count

addCustLoyalty

public void addCustLoyalty(AirTraveler.CustLoyalty item)
Add a 'CustLoyalty' element item.

Parameters:
item -

getCustLoyalty

public AirTraveler.CustLoyalty getCustLoyalty(int index)
Get 'CustLoyalty' element item by position.

Parameters:
index -
Returns:
item

clearCustLoyalties

public void clearCustLoyalties()
Remove all 'CustLoyalty' element items.


getDocuments

public java.util.List<AirTraveler.Document> getDocuments()
Get the list of 'Document' element items.

Returns:
list

setDocuments

public void setDocuments(java.util.List<AirTraveler.Document> list)
Set the list of 'Document' element items.

Parameters:
list -

sizeDocuments

public int sizeDocuments()
Get the number of 'Document' element items.

Returns:
count

addDocument

public void addDocument(AirTraveler.Document item)
Add a 'Document' element item.

Parameters:
item -

getDocument

public AirTraveler.Document getDocument(int index)
Get 'Document' element item by position.

Parameters:
index -
Returns:
item

clearDocuments

public void clearDocuments()
Remove all 'Document' element items.


getTravelerCountGroup

public TravelerCountGroup getTravelerCountGroup()
Get the 'TravelerCountGroup' attributeGroup value. Specifies a PTC and the associated number of PTC's - for use in specifying passenger lists.

Returns:
value

setTravelerCountGroup

public void setTravelerCountGroup(TravelerCountGroup travelerCountGroup)
Set the 'TravelerCountGroup' attributeGroup value. Specifies a PTC and the associated number of PTC's - for use in specifying passenger lists.

Parameters:
travelerCountGroup -

getTravelerRefNumber

public TravelerRefNumberGroup getTravelerRefNumber()
Get the 'TravelerRefNumberGroup' attributeGroup value. Direct reference of traveler assigned by requesting system. Used as a cross reference between data segments.

Returns:
value

setTravelerRefNumber

public void setTravelerRefNumber(TravelerRefNumberGroup travelerRefNumber)
Set the 'TravelerRefNumberGroup' attributeGroup value. Direct reference of traveler assigned by requesting system. Used as a cross reference between data segments.

Parameters:
travelerRefNumber -

getFlightSegmentRPHs

public AirTraveler.FlightSegmentRPHs getFlightSegmentRPHs()
Get the 'FlightSegmentRPHs' element value.

Returns:
value

setFlightSegmentRPHs

public void setFlightSegmentRPHs(AirTraveler.FlightSegmentRPHs flightSegmentRPHs)
Set the 'FlightSegmentRPHs' element value.

Parameters:
flightSegmentRPHs -

getGenderGroup

public GenderGroup getGenderGroup()
Get the 'GenderGroup' attributeGroup value.

Returns:
value

setGenderGroup

public void setGenderGroup(GenderGroup genderGroup)
Set the 'GenderGroup' attributeGroup value.

Parameters:
genderGroup -

getPrivacyGroup

public PrivacyGroup getPrivacyGroup()
Get the 'PrivacyGroup' attributeGroup value.

Returns:
value

setPrivacyGroup

public void setPrivacyGroup(PrivacyGroup privacyGroup)
Set the 'PrivacyGroup' attributeGroup value.

Parameters:
privacyGroup -

getBirthDate

public java.sql.Date getBirthDate()
Get the 'BirthDate' attribute value. Traveler's date of birth.

Returns:
value

setBirthDate

public void setBirthDate(java.sql.Date birthDate)
Set the 'BirthDate' attribute value. Traveler's date of birth.

Parameters:
birthDate -

getCurrencyCode

public java.lang.String getCurrencyCode()
Get the 'CurrencyCode' attribute value. Specifies the code for the currency units.

Returns:
value

setCurrencyCode

public void setCurrencyCode(java.lang.String currencyCode)
Set the 'CurrencyCode' attribute value. Specifies the code for the currency units.

Parameters:
currencyCode -

getPassengerTypeCode

public java.lang.String getPassengerTypeCode()
Get the 'PassengerTypeCode' attribute value. Code used to indicate the type of traveler that will be traveling (e.g., ADT, CHD, INF, GRP).

Returns:
value

setPassengerTypeCode

public void setPassengerTypeCode(java.lang.String passengerTypeCode)
Set the 'PassengerTypeCode' attribute value. Code used to indicate the type of traveler that will be traveling (e.g., ADT, CHD, INF, GRP).

Parameters:
passengerTypeCode -

getAccompaniedByInfant

public java.lang.Boolean getAccompaniedByInfant()
Get the 'AccompaniedByInfant' attribute value. Indicates if an infant accompanying a traveler is with or without a seat.

Returns:
value

setAccompaniedByInfant

public void setAccompaniedByInfant(java.lang.Boolean accompaniedByInfant)
Set the 'AccompaniedByInfant' attribute value. Indicates if an infant accompanying a traveler is with or without a seat.

Parameters:
accompaniedByInfant -