org.ota.pkg
Class PkgPassengerListItem

java.lang.Object
  extended by org.ota.pkg.PkgPassengerListItem

public class PkgPassengerListItem
extends java.lang.Object

Details of a passenger or of a quantity of generic passengers e.g. 2 children aged 5. 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="PkgPassengerListItem">
   <xs:sequence>
     <xs:element type="ns:PersonNameType" name="Name" minOccurs="0"/>
     <xs:element name="SpecialNeed" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class SpecialNeed -->
     </xs:element>
     <xs:element type="ns:DocumentType" name="PassportInformation" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="RPH"/>
   <xs:attribute type="xs:string" use="optional" name="InsuranceRPH"/>
   <xs:attributeGroup ref="ns:GenderGroup"/>
   <xs:attribute type="xs:string" use="optional" name="Nationality"/>
   <xs:attributeGroup ref="ns:BirthDateGroup"/>
   <xs:attribute type="xs:boolean" use="optional" name="LeadCustomerInd"/>
   <xs:attributeGroup ref="ns:TravelerCountGroup"/>
 </xs:complexType>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="BirthDateGroup">
   <xs:attribute type="xs:date" use="optional" name="BirthDate"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class PkgPassengerListItem.SpecialNeed
          A special requirement e.g.
 
Constructor Summary
PkgPassengerListItem()
           
 
Method Summary
 void addSpecialNeed(PkgPassengerListItem.SpecialNeed item)
          Add a 'SpecialNeed' element item.
 void clearSpecialNeeds()
          Remove all 'SpecialNeed' element items.
 java.sql.Date getBirthDate()
          Get the 'BirthDate' attribute value.
 GenderGroup getGenderGroup()
          Get the 'GenderGroup' attributeGroup value.
 java.lang.String getInsuranceRPH()
          Get the 'InsuranceRPH' attribute value.
 java.lang.Boolean getLeadCustomerInd()
          Get the 'LeadCustomerInd' attribute value.
 PersonName getName()
          Get the 'Name' element value.
 java.lang.String getNationality()
          Get the 'Nationality' attribute value.
 Document getPassportInformation()
          Get the 'PassportInformation' element value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 PkgPassengerListItem.SpecialNeed getSpecialNeed(int index)
          Get 'SpecialNeed' element item by position.
 java.util.List<PkgPassengerListItem.SpecialNeed> getSpecialNeeds()
          Get the list of 'SpecialNeed' element items.
 TravelerCountGroup getTravelerCountGroup()
          Get the 'TravelerCountGroup' attributeGroup value.
 void setBirthDate(java.sql.Date birthDate)
          Set the 'BirthDate' attribute value.
 void setGenderGroup(GenderGroup genderGroup)
          Set the 'GenderGroup' attributeGroup value.
 void setInsuranceRPH(java.lang.String insuranceRPH)
          Set the 'InsuranceRPH' attribute value.
 void setLeadCustomerInd(java.lang.Boolean leadCustomerInd)
          Set the 'LeadCustomerInd' attribute value.
 void setName(PersonName name)
          Set the 'Name' element value.
 void setNationality(java.lang.String nationality)
          Set the 'Nationality' attribute value.
 void setPassportInformation(Document passportInformation)
          Set the 'PassportInformation' element value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setSpecialNeeds(java.util.List<PkgPassengerListItem.SpecialNeed> list)
          Set the list of 'SpecialNeed' element items.
 void setTravelerCountGroup(TravelerCountGroup travelerCountGroup)
          Set the 'TravelerCountGroup' attributeGroup value.
 int sizeSpecialNeeds()
          Get the number of 'SpecialNeed' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PkgPassengerListItem

public PkgPassengerListItem()
Method Detail

getName

public PersonName getName()
Get the 'Name' element value. The name of the passenger.

Returns:
value

setName

public void setName(PersonName name)
Set the 'Name' element value. The name of the passenger.

Parameters:
name -

getSpecialNeeds

public java.util.List<PkgPassengerListItem.SpecialNeed> getSpecialNeeds()
Get the list of 'SpecialNeed' element items.

Returns:
list

setSpecialNeeds

public void setSpecialNeeds(java.util.List<PkgPassengerListItem.SpecialNeed> list)
Set the list of 'SpecialNeed' element items.

Parameters:
list -

sizeSpecialNeeds

public int sizeSpecialNeeds()
Get the number of 'SpecialNeed' element items.

Returns:
count

addSpecialNeed

public void addSpecialNeed(PkgPassengerListItem.SpecialNeed item)
Add a 'SpecialNeed' element item.

Parameters:
item -

getSpecialNeed

public PkgPassengerListItem.SpecialNeed getSpecialNeed(int index)
Get 'SpecialNeed' element item by position.

Parameters:
index -
Returns:
item

clearSpecialNeeds

public void clearSpecialNeeds()
Remove all 'SpecialNeed' element items.


getPassportInformation

public Document getPassportInformation()
Get the 'PassportInformation' element value. Details of the passenger's passport.

Returns:
value

setPassportInformation

public void setPassportInformation(Document passportInformation)
Set the 'PassportInformation' element value. Details of the passenger's passport.

Parameters:
passportInformation -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. (Reference Place Holder) - an index code to identify an instance in a collection of like items.. For example, used to assign individual passengers or clients to particular itinerary items.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. (Reference Place Holder) - an index code to identify an instance in a collection of like items.. For example, used to assign individual passengers or clients to particular itinerary items.

Parameters:
RPH -

getInsuranceRPH

public java.lang.String getInsuranceRPH()
Get the 'InsuranceRPH' attribute value. Used to associate this passenger with their insurance cover provided by the supplier.

Returns:
value

setInsuranceRPH

public void setInsuranceRPH(java.lang.String insuranceRPH)
Set the 'InsuranceRPH' attribute value. Used to associate this passenger with their insurance cover provided by the supplier.

Parameters:
insuranceRPH -

getGenderGroup

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

Returns:
value

setGenderGroup

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

Parameters:
genderGroup -

getNationality

public java.lang.String getNationality()
Get the 'Nationality' attribute value.

Returns:
value

setNationality

public void setNationality(java.lang.String nationality)
Set the 'Nationality' attribute value.

Parameters:
nationality -

getBirthDate

public java.sql.Date getBirthDate()
Get the 'BirthDate' attribute value. Indicates the date of birth as indicated in the document, in ISO 8601 prescribed format.

Returns:
value

setBirthDate

public void setBirthDate(java.sql.Date birthDate)
Set the 'BirthDate' attribute value. Indicates the date of birth as indicated in the document, in ISO 8601 prescribed format.

Parameters:
birthDate -

getLeadCustomerInd

public java.lang.Boolean getLeadCustomerInd()
Get the 'LeadCustomerInd' attribute value. When 'true', indicates that this is the 'lead' passenger (i.e., the primary contact making the booking).

Returns:
value

setLeadCustomerInd

public void setLeadCustomerInd(java.lang.Boolean leadCustomerInd)
Set the 'LeadCustomerInd' attribute value. When 'true', indicates that this is the 'lead' passenger (i.e., the primary contact making the booking).

Parameters:
leadCustomerInd -

getTravelerCountGroup

public TravelerCountGroup getTravelerCountGroup()
Get the 'TravelerCountGroup' attributeGroup value.

Returns:
value

setTravelerCountGroup

public void setTravelerCountGroup(TravelerCountGroup travelerCountGroup)
Set the 'TravelerCountGroup' attributeGroup value.

Parameters:
travelerCountGroup -