org.ota.air
Class SpecificFlightInfo

java.lang.Object
  extended by org.ota.air.SpecificFlightInfo
Direct Known Subclasses:
AvailRQ.OriginDestinationInformation.SpecificFlightInfo, FareDisplayRQ.SpecificFlightInfo

public class SpecificFlightInfo
extends java.lang.Object

Specify actual airline, flight number, or booking class 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="SpecificFlightInfoType">
   <xs:sequence>
     <xs:element type="xs:string" name="FlightNumber" minOccurs="0"/>
     <xs:element type="ns:CompanyNameType" name="Airline" minOccurs="0"/>
     <xs:element name="BookingClassPref" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class BookingClassPref -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class SpecificFlightInfo.BookingClassPref
          Specifies specific booking classes to include and/or exclude in the response.
 
Constructor Summary
SpecificFlightInfo()
           
 
Method Summary
 void addBookingClassPref(SpecificFlightInfo.BookingClassPref item)
          Add a 'BookingClassPref' element item.
 void clearBookingClassPrefs()
          Remove all 'BookingClassPref' element items.
 CompanyName getAirline()
          Get the 'Airline' element value.
 SpecificFlightInfo.BookingClassPref getBookingClassPref(int index)
          Get 'BookingClassPref' element item by position.
 java.util.List<SpecificFlightInfo.BookingClassPref> getBookingClassPrefs()
          Get the list of 'BookingClassPref' element items.
 java.lang.String getFlightNumber()
          Get the 'FlightNumber' element value.
 void setAirline(CompanyName airline)
          Set the 'Airline' element value.
 void setBookingClassPrefs(java.util.List<SpecificFlightInfo.BookingClassPref> list)
          Set the list of 'BookingClassPref' element items.
 void setFlightNumber(java.lang.String flightNumber)
          Set the 'FlightNumber' element value.
 int sizeBookingClassPrefs()
          Get the number of 'BookingClassPref' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecificFlightInfo

public SpecificFlightInfo()
Method Detail

getFlightNumber

public java.lang.String getFlightNumber()
Get the 'FlightNumber' element value. Specific flight number to request availability for. Requires that Airline is also supplied.

Returns:
value

setFlightNumber

public void setFlightNumber(java.lang.String flightNumber)
Set the 'FlightNumber' element value. Specific flight number to request availability for. Requires that Airline is also supplied.

Parameters:
flightNumber -

getAirline

public CompanyName getAirline()
Get the 'Airline' element value. Specify airline to request availability for.

Returns:
value

setAirline

public void setAirline(CompanyName airline)
Set the 'Airline' element value. Specify airline to request availability for.

Parameters:
airline -

getBookingClassPrefs

public java.util.List<SpecificFlightInfo.BookingClassPref> getBookingClassPrefs()
Get the list of 'BookingClassPref' element items.

Returns:
list

setBookingClassPrefs

public void setBookingClassPrefs(java.util.List<SpecificFlightInfo.BookingClassPref> list)
Set the list of 'BookingClassPref' element items.

Parameters:
list -

sizeBookingClassPrefs

public int sizeBookingClassPrefs()
Get the number of 'BookingClassPref' element items.

Returns:
count

addBookingClassPref

public void addBookingClassPref(SpecificFlightInfo.BookingClassPref item)
Add a 'BookingClassPref' element item.

Parameters:
item -

getBookingClassPref

public SpecificFlightInfo.BookingClassPref getBookingClassPref(int index)
Get 'BookingClassPref' element item by position.

Parameters:
index -
Returns:
item

clearBookingClassPrefs

public void clearBookingClassPrefs()
Remove all 'BookingClassPref' element items.