org.ota.destination
Class Travelers.Traveler

java.lang.Object
  extended by org.ota.destination.Travelers.Traveler
Enclosing class:
Travelers

public static class Travelers.Traveler
extends java.lang.Object

Contains the details of a traveler. Schema fragment(s) for this class:

 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Traveler" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:ProfileType" name="Profile" minOccurs="0"/>
       <xs:element name="TravelerCharacteristic" minOccurs="0" maxOccurs="2">
         <!-- Reference to inner class TravelerCharacteristic -->
       </xs:element>
       <xs:element type="ns:SpecialRequestType" name="SpecialRequests" minOccurs="0"/>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="RPH"/>
   </xs:complexType>
 </xs:element>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Nested Class Summary
static class Travelers.Traveler.TravelerCharacteristic
          Used to define a traveler's physical characteristic.
 
Constructor Summary
Travelers.Traveler()
           
 
Method Summary
 void addTravelerCharacteristic(Travelers.Traveler.TravelerCharacteristic item)
          Add a 'TravelerCharacteristic' element item.
 void clearTravelerCharacteristics()
          Remove all 'TravelerCharacteristic' element items.
 Profile getProfile()
          Get the 'Profile' element value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 SpecialRequest getSpecialRequests()
          Get the 'SpecialRequests' element value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 Travelers.Traveler.TravelerCharacteristic getTravelerCharacteristic(int index)
          Get 'TravelerCharacteristic' element item by position.
 java.util.List<Travelers.Traveler.TravelerCharacteristic> getTravelerCharacteristics()
          Get the list of 'TravelerCharacteristic' element items.
 void setProfile(Profile profile)
          Set the 'Profile' element value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setSpecialRequests(SpecialRequest specialRequests)
          Set the 'SpecialRequests' element value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setTravelerCharacteristics(java.util.List<Travelers.Traveler.TravelerCharacteristic> list)
          Set the list of 'TravelerCharacteristic' element items.
 int sizeTravelerCharacteristics()
          Get the number of 'TravelerCharacteristic' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Travelers.Traveler

public Travelers.Traveler()
Method Detail

getProfile

public Profile getProfile()
Get the 'Profile' element value. Basic traveler profile.

Returns:
value

setProfile

public void setProfile(Profile profile)
Set the 'Profile' element value. Basic traveler profile.

Parameters:
profile -

getTravelerCharacteristics

public java.util.List<Travelers.Traveler.TravelerCharacteristic> getTravelerCharacteristics()
Get the list of 'TravelerCharacteristic' element items.

Returns:
list

setTravelerCharacteristics

public void setTravelerCharacteristics(java.util.List<Travelers.Traveler.TravelerCharacteristic> list)
Set the list of 'TravelerCharacteristic' element items.

Parameters:
list -

sizeTravelerCharacteristics

public int sizeTravelerCharacteristics()
Get the number of 'TravelerCharacteristic' element items.

Returns:
count

addTravelerCharacteristic

public void addTravelerCharacteristic(Travelers.Traveler.TravelerCharacteristic item)
Add a 'TravelerCharacteristic' element item.

Parameters:
item -

getTravelerCharacteristic

public Travelers.Traveler.TravelerCharacteristic getTravelerCharacteristic(int index)
Get 'TravelerCharacteristic' element item by position.

Parameters:
index -
Returns:
item

clearTravelerCharacteristics

public void clearTravelerCharacteristics()
Remove all 'TravelerCharacteristic' element items.


getSpecialRequests

public SpecialRequest getSpecialRequests()
Get the 'SpecialRequests' element value. The SpecialRequest object indicates special requests for a particular traveler.

Returns:
value

setSpecialRequests

public void setSpecialRequests(SpecialRequest specialRequests)
Set the 'SpecialRequests' element value. The SpecialRequest object indicates special requests for a particular traveler.

Parameters:
specialRequests -

getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. This is a reference placeholder, used as an index for this traveler in this reservation.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. This is a reference placeholder, used as an index for this traveler in this reservation.

Parameters:
RPH -