org.ota.air
Class AirCheckIn.PassengerFlightInfo.APIInfo

java.lang.Object
  extended by org.ota.shared.Document
      extended by org.ota.air.AirCheckIn.PassengerFlightInfo.APIInfo
Enclosing class:
AirCheckIn.PassengerFlightInfo

public static class AirCheckIn.PassengerFlightInfo.APIInfo
extends Document

Advanced passenger information that can pertain to an adult or an infant for up to five unique document types (e.g., visa, passport). The AIRIMP 0405 spec (sections 3.12 through 3.14) specifies these data elements. 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="API_Info" minOccurs="0" maxOccurs="10">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:DocumentType">
         <xs:sequence>
           <xs:element type="ns:AddressType" name="Address" minOccurs="0" maxOccurs="2"/>
         </xs:sequence>
         <xs:attribute type="xs:string" use="optional" name="API_InfoSource"/>
         <xs:attribute type="xs:boolean" use="optional" name="InfantInd"/>
         <xs:attribute type="xs:string" use="optional" name="BirthStateProv"/>
         <xs:attribute type="xs:string" use="optional" name="BirthLocation"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
 
Nested classes/interfaces inherited from class org.ota.shared.Document
Document.AdditionalPersonNames, Document.Choice, Document.Holder
 
Constructor Summary
AirCheckIn.PassengerFlightInfo.APIInfo()
           
 
Method Summary
 void addAddress(Address item)
          Add a 'Address' element item.
 void clearAddresses()
          Remove all 'Address' element items.
 Address getAddress(int index)
          Get 'Address' element item by position.
 java.util.List<Address> getAddresses()
          Get the list of 'Address' element items.
 java.lang.String getAPIInfoSource()
          Get the 'API_InfoSource' attribute value.
 java.lang.String getBirthLocation()
          Get the 'BirthLocation' attribute value.
 java.lang.String getBirthStateProv()
          Get the 'BirthStateProv' attribute value.
 java.lang.Boolean getInfantInd()
          Get the 'InfantInd' attribute value.
 void setAddresses(java.util.List<Address> list)
          Set the list of 'Address' element items.
 void setAPIInfoSource(java.lang.String APIInfoSource)
          Set the 'API_InfoSource' attribute value.
 void setBirthLocation(java.lang.String birthLocation)
          Set the 'BirthLocation' attribute value.
 void setBirthStateProv(java.lang.String birthStateProv)
          Set the 'BirthStateProv' attribute value.
 void setInfantInd(java.lang.Boolean infantInd)
          Set the 'InfantInd' attribute value.
 int sizeAddresses()
          Get the number of 'Address' element items.
 
Methods inherited from class org.ota.shared.Document
addDocLimitation, clearDocLimitations, getAdditionalPersonNames, getBirthCountry, getBirthDate, getBirthPlace, getChoice, getContactName, getDoc, getDocHolderNationality, getDocID, getDocIssueAuthority, getDocIssueCountry, getDocIssueLocation, getDocIssueStateProv, getDocLimitation, getDocLimitations, getEffectiveExpireOptionalDateGroup, getGenderGroup, getHolder, getPostalCode, getPrivacyGroup, getRemark, setAdditionalPersonNames, setBirthCountry, setBirthDate, setBirthPlace, setChoice, setContactName, setDoc, setDocHolderNationality, setDocID, setDocIssueAuthority, setDocIssueCountry, setDocIssueLocation, setDocIssueStateProv, setDocLimitations, setEffectiveExpireOptionalDateGroup, setGenderGroup, setHolder, setPostalCode, setPrivacyGroup, setRemark, sizeDocLimitations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AirCheckIn.PassengerFlightInfo.APIInfo

public AirCheckIn.PassengerFlightInfo.APIInfo()
Method Detail

getAddresses

public java.util.List<Address> getAddresses()
Get the list of 'Address' element items. The residence (home) or destination address of the passenger.

Returns:
list

setAddresses

public void setAddresses(java.util.List<Address> list)
Set the list of 'Address' element items. The residence (home) or destination address of the passenger.

Parameters:
list -

sizeAddresses

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

Returns:
count

addAddress

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

Parameters:
item -

getAddress

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

Parameters:
index -
Returns:
item

clearAddresses

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


getAPIInfoSource

public java.lang.String getAPIInfoSource()
Get the 'API_InfoSource' attribute value. Method for data input. For example, optical input (OCR reader) or manual input.

Returns:
value

setAPIInfoSource

public void setAPIInfoSource(java.lang.String APIInfoSource)
Set the 'API_InfoSource' attribute value. Method for data input. For example, optical input (OCR reader) or manual input.

Parameters:
APIInfoSource -

getInfantInd

public java.lang.Boolean getInfantInd()
Get the 'InfantInd' attribute value. If true, the API info pertains to an infant.

Returns:
value

setInfantInd

public void setInfantInd(java.lang.Boolean infantInd)
Set the 'InfantInd' attribute value. If true, the API info pertains to an infant.

Parameters:
infantInd -

getBirthStateProv

public java.lang.String getBirthStateProv()
Get the 'BirthStateProv' attribute value. State or Province where this passenger was born.

Returns:
value

setBirthStateProv

public void setBirthStateProv(java.lang.String birthStateProv)
Set the 'BirthStateProv' attribute value. State or Province where this passenger was born.

Parameters:
birthStateProv -

getBirthLocation

public java.lang.String getBirthLocation()
Get the 'BirthLocation' attribute value. The city or location where this passenger was born. A person may have been born in a place that has no city associated with it (e.g., a military base) .

Returns:
value

setBirthLocation

public void setBirthLocation(java.lang.String birthLocation)
Set the 'BirthLocation' attribute value. The city or location where this passenger was born. A person may have been born in a place that has no city associated with it (e.g., a military base) .

Parameters:
birthLocation -