org.ota.air
Class FlightSegment

java.lang.Object
  extended by org.ota.shared.FlightSegmentBase
      extended by org.ota.air.FlightSegment
Direct Known Subclasses:
AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment, AvailRS.SearchResults.AirResults.OriginDestinationInformation.OriginDestinationOption.FlightSegment, BookFlightSegment, ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment

public class FlightSegment
extends FlightSegmentBase

FlightSegmentType extends FlightSegmentBaseType to provide additional functionality. 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="FlightSegmentType">
   <xs:complexContent>
     <xs:extension base="ns:FlightSegmentBaseType">
       <xs:sequence>
         <xs:element name="MarketingAirline" minOccurs="0">
           <!-- Reference to inner class MarketingAirline -->
         </xs:element>
       </xs:sequence>
       <xs:attribute type="xs:string" use="optional" name="FlightNumber"/>
       <xs:attribute type="xs:string" use="optional" name="TourOperatorFlightID"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 


Nested Class Summary
static class FlightSegment.MarketingAirline
          The marketing airline.
 
Constructor Summary
FlightSegment()
           
 
Method Summary
 java.lang.String getFlightNumber()
          Get the 'FlightNumber' attribute value.
 FlightSegment.MarketingAirline getMarketingAirline()
          Get the 'MarketingAirline' element value.
 java.lang.String getTourOperatorFlightID()
          Get the 'TourOperatorFlightID' attribute value.
 void setFlightNumber(java.lang.String flightNumber)
          Set the 'FlightNumber' attribute value.
 void setMarketingAirline(FlightSegment.MarketingAirline marketingAirline)
          Set the 'MarketingAirline' element value.
 void setTourOperatorFlightID(java.lang.String tourOperatorFlightID)
          Set the 'TourOperatorFlightID' attribute value.
 
Methods inherited from class org.ota.shared.FlightSegmentBase
addEquipment, clearEquipments, getArrivalAirport, getArrivalDateTime, getDepartureAirport, getDepartureDateTime, getEquipment, getEquipments, getInfoSource, getOperatingAirline, getRPH, getStopQuantity, setArrivalAirport, setArrivalDateTime, setDepartureAirport, setDepartureDateTime, setEquipments, setInfoSource, setOperatingAirline, setRPH, setStopQuantity, sizeEquipments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlightSegment

public FlightSegment()
Method Detail

getMarketingAirline

public FlightSegment.MarketingAirline getMarketingAirline()
Get the 'MarketingAirline' element value.

Returns:
value

setMarketingAirline

public void setMarketingAirline(FlightSegment.MarketingAirline marketingAirline)
Set the 'MarketingAirline' element value.

Parameters:
marketingAirline -

getFlightNumber

public java.lang.String getFlightNumber()
Get the 'FlightNumber' attribute value. The flight number of the flight. This is required for use with scheduled airline messages but may be omitted for requests by tour operators.

Returns:
value

setFlightNumber

public void setFlightNumber(java.lang.String flightNumber)
Set the 'FlightNumber' attribute value. The flight number of the flight. This is required for use with scheduled airline messages but may be omitted for requests by tour operators.

Parameters:
flightNumber -

getTourOperatorFlightID

public java.lang.String getTourOperatorFlightID()
Get the 'TourOperatorFlightID' attribute value. ID of a flight in the Tour Operator's inventory. This flight is not necessarily in the inventory of an airline. Rather, it is a code created by tour operators.

Returns:
value

setTourOperatorFlightID

public void setTourOperatorFlightID(java.lang.String tourOperatorFlightID)
Set the 'TourOperatorFlightID' attribute value. ID of a flight in the Tour Operator's inventory. This flight is not necessarily in the inventory of an airline. Rather, it is a code created by tour operators.

Parameters:
tourOperatorFlightID -