org.ota.air
Class AvailRQ

java.lang.Object
  extended by org.ota.air.AvailRQ

public class AvailRQ
extends java.lang.Object

The Availability Request message requests Flight Availability for a city pair on a specific date for a specific number and type of passengers. Optional request information can include: - Time / Time Window - Connecting cities. - Client Preferences (airlines, cabin, flight types etc.) The request can be narrowed to request availability for a specific airline, specific flight, or specific booking class on a specific flight. The availability request message contains similar information to a standard Airline CRS or GDS availability request message. 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="OTA_AirAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="ProcessingInfo" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:AirProcessingInfoGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="OriginDestinationInformation" maxOccurs="99">
         <!-- Reference to inner class OriginDestinationInformation -->
       </xs:element>
       <xs:element type="ns:SpecificFlightInfoType" name="SpecificFlightInfo" minOccurs="0"/>
       <xs:element type="ns:AirSearchPrefsType" name="TravelPreferences" minOccurs="0"/>
       <xs:element type="ns:TravelerInfoSummaryType" name="TravelerInfoSummary" minOccurs="0"/>
       <xs:element type="ns:BookFlightSegmentType" name="BookedFlightSegment" minOccurs="0" maxOccurs="99"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:MaxResponsesGroup"/>
     <xs:attributeGroup ref="ns:DirectAndStopsGroup"/>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="MaxResponsesGroup">
   <xs:attribute type="xs:string" use="optional" name="MaxResponses"/>
 </xs:attributeGroup>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="DirectAndStopsGroup">
   <xs:attribute type="xs:boolean" use="optional" name="DirectFlightsOnly"/>
   <xs:attribute type="xs:int" use="optional" name="NumberStops"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class AvailRQ.OriginDestinationInformation
          Information on the locations between which availability is to be checked.
 
Constructor Summary
AvailRQ()
           
 
Method Summary
 void addBookedFlightSegment(BookFlightSegment item)
          Add a 'BookedFlightSegment' element item.
 void addOriginDestinationInformation(AvailRQ.OriginDestinationInformation item)
          Add a 'OriginDestinationInformation' element item.
 void clearBookedFlightSegments()
          Remove all 'BookedFlightSegment' element items.
 void clearOriginDestinationInformations()
          Remove all 'OriginDestinationInformation' element items.
 BookFlightSegment getBookedFlightSegment(int index)
          Get 'BookedFlightSegment' element item by position.
 java.util.List<BookFlightSegment> getBookedFlightSegments()
          Get the list of 'BookedFlightSegment' element items.
 java.lang.Boolean getDirectFlightsOnly()
          Get the 'DirectFlightsOnly' attribute value.
 java.lang.String getMaxResponses()
          Get the 'MaxResponses' attribute value.
 java.lang.Integer getNumberStops()
          Get the 'NumberStops' attribute value.
 AvailRQ.OriginDestinationInformation getOriginDestinationInformation(int index)
          Get 'OriginDestinationInformation' element item by position.
 java.util.List<AvailRQ.OriginDestinationInformation> getOriginDestinationInformations()
          Get the list of 'OriginDestinationInformation' element items.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 AirProcessingInfoGroup getProcessingInfo()
          Get the 'AirProcessingInfoGroup' attributeGroup value.
 SpecificFlightInfo getSpecificFlightInfo()
          Get the 'SpecificFlightInfo' element value.
 TravelerInfoSummary getTravelerInfoSummary()
          Get the 'TravelerInfoSummary' element value.
 AirSearchPrefs getTravelPreferences()
          Get the 'TravelPreferences' element value.
 void setBookedFlightSegments(java.util.List<BookFlightSegment> list)
          Set the list of 'BookedFlightSegment' element items.
 void setDirectFlightsOnly(java.lang.Boolean directFlightsOnly)
          Set the 'DirectFlightsOnly' attribute value.
 void setMaxResponses(java.lang.String maxResponses)
          Set the 'MaxResponses' attribute value.
 void setNumberStops(java.lang.Integer numberStops)
          Set the 'NumberStops' attribute value.
 void setOriginDestinationInformations(java.util.List<AvailRQ.OriginDestinationInformation> list)
          Set the list of 'OriginDestinationInformation' element items.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setProcessingInfo(AirProcessingInfoGroup processingInfo)
          Set the 'AirProcessingInfoGroup' attributeGroup value.
 void setSpecificFlightInfo(SpecificFlightInfo specificFlightInfo)
          Set the 'SpecificFlightInfo' element value.
 void setTravelerInfoSummary(TravelerInfoSummary travelerInfoSummary)
          Set the 'TravelerInfoSummary' element value.
 void setTravelPreferences(AirSearchPrefs travelPreferences)
          Set the 'TravelPreferences' element value.
 int sizeBookedFlightSegments()
          Get the number of 'BookedFlightSegment' element items.
 int sizeOriginDestinationInformations()
          Get the number of 'OriginDestinationInformation' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailRQ

public AvailRQ()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. Point of sale object.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. Point of sale object.

Parameters:
POS -

getProcessingInfo

public AirProcessingInfoGroup getProcessingInfo()
Get the 'AirProcessingInfoGroup' attributeGroup value. A collection of information that specifies how the message processing should occur or how the data should be returned.

Returns:
value

setProcessingInfo

public void setProcessingInfo(AirProcessingInfoGroup processingInfo)
Set the 'AirProcessingInfoGroup' attributeGroup value. A collection of information that specifies how the message processing should occur or how the data should be returned.

Parameters:
processingInfo -

getOriginDestinationInformations

public java.util.List<AvailRQ.OriginDestinationInformation> getOriginDestinationInformations()
Get the list of 'OriginDestinationInformation' element items.

Returns:
list

setOriginDestinationInformations

public void setOriginDestinationInformations(java.util.List<AvailRQ.OriginDestinationInformation> list)
Set the list of 'OriginDestinationInformation' element items.

Parameters:
list -

sizeOriginDestinationInformations

public int sizeOriginDestinationInformations()
Get the number of 'OriginDestinationInformation' element items.

Returns:
count

addOriginDestinationInformation

public void addOriginDestinationInformation(AvailRQ.OriginDestinationInformation item)
Add a 'OriginDestinationInformation' element item.

Parameters:
item -

getOriginDestinationInformation

public AvailRQ.OriginDestinationInformation getOriginDestinationInformation(int index)
Get 'OriginDestinationInformation' element item by position.

Parameters:
index -
Returns:
item

clearOriginDestinationInformations

public void clearOriginDestinationInformations()
Remove all 'OriginDestinationInformation' element items.


getSpecificFlightInfo

public SpecificFlightInfo getSpecificFlightInfo()
Get the 'SpecificFlightInfo' element value. Information used to specify a flight for which availablity is to be checked.

Returns:
value

setSpecificFlightInfo

public void setSpecificFlightInfo(SpecificFlightInfo specificFlightInfo)
Set the 'SpecificFlightInfo' element value. Information used to specify a flight for which availablity is to be checked.

Parameters:
specificFlightInfo -

getTravelPreferences

public AirSearchPrefs getTravelPreferences()
Get the 'TravelPreferences' element value. Air Availability Request preference information.

Returns:
value

setTravelPreferences

public void setTravelPreferences(AirSearchPrefs travelPreferences)
Set the 'TravelPreferences' element value. Air Availability Request preference information.

Parameters:
travelPreferences -

getTravelerInfoSummary

public TravelerInfoSummary getTravelerInfoSummary()
Get the 'TravelerInfoSummary' element value. Used to specify passenger and fare information for which availablity is to be checked.

Returns:
value

setTravelerInfoSummary

public void setTravelerInfoSummary(TravelerInfoSummary travelerInfoSummary)
Set the 'TravelerInfoSummary' element value. Used to specify passenger and fare information for which availablity is to be checked.

Parameters:
travelerInfoSummary -

getBookedFlightSegments

public java.util.List<BookFlightSegment> getBookedFlightSegments()
Get the list of 'BookedFlightSegment' element items. The flight segment information contained in the passenger's current booking.

Returns:
list

setBookedFlightSegments

public void setBookedFlightSegments(java.util.List<BookFlightSegment> list)
Set the list of 'BookedFlightSegment' element items. The flight segment information contained in the passenger's current booking.

Parameters:
list -

sizeBookedFlightSegments

public int sizeBookedFlightSegments()
Get the number of 'BookedFlightSegment' element items.

Returns:
count

addBookedFlightSegment

public void addBookedFlightSegment(BookFlightSegment item)
Add a 'BookedFlightSegment' element item.

Parameters:
item -

getBookedFlightSegment

public BookFlightSegment getBookedFlightSegment(int index)
Get 'BookedFlightSegment' element item by position.

Parameters:
index -
Returns:
item

clearBookedFlightSegments

public void clearBookedFlightSegments()
Remove all 'BookedFlightSegment' element items.


getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes -

getMaxResponses

public java.lang.String getMaxResponses()
Get the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

Returns:
value

setMaxResponses

public void setMaxResponses(java.lang.String maxResponses)
Set the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

Parameters:
maxResponses -

getDirectFlightsOnly

public java.lang.Boolean getDirectFlightsOnly()
Get the 'DirectFlightsOnly' attribute value. Indicates the same flight number on the same airline regardless of number of stops in most cases. false

Returns:
value

setDirectFlightsOnly

public void setDirectFlightsOnly(java.lang.Boolean directFlightsOnly)
Set the 'DirectFlightsOnly' attribute value. Indicates the same flight number on the same airline regardless of number of stops in most cases. false

Parameters:
directFlightsOnly -

getNumberStops

public java.lang.Integer getNumberStops()
Get the 'NumberStops' attribute value. Information regarding the number of stops made.

Returns:
value

setNumberStops

public void setNumberStops(java.lang.Integer numberStops)
Set the 'NumberStops' attribute value. Information regarding the number of stops made.

Parameters:
numberStops -