org.ota.air
Class FlightLeg

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

public class FlightLeg
extends java.lang.Object

Specifies minimal information about a flight. 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="FlightLegType">
   <xs:sequence>
     <xs:element name="DepartureAirport" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:LocationGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="ArrivalAirport" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:LocationGroup"/>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="FlightNumber"/>
   <xs:attribute type="xs:string" use="optional" name="ResBookDesigCode"/>
   <xs:attribute type="xs:dateTime" use="optional" name="Date"/>
 </xs:complexType>
 


Constructor Summary
FlightLeg()
           
 
Method Summary
 LocationGroup getArrivalAirport()
          Get the 'LocationGroup' attributeGroup value.
 java.util.Date getDate()
          Get the 'Date' attribute value.
 LocationGroup getDepartureAirport()
          Get the 'LocationGroup' attributeGroup value.
 java.lang.String getFlightNumber()
          Get the 'FlightNumber' attribute value.
 java.lang.String getResBookDesigCode()
          Get the 'ResBookDesigCode' attribute value.
 void setArrivalAirport(LocationGroup arrivalAirport)
          Set the 'LocationGroup' attributeGroup value.
 void setDate(java.util.Date date)
          Set the 'Date' attribute value.
 void setDepartureAirport(LocationGroup departureAirport)
          Set the 'LocationGroup' attributeGroup value.
 void setFlightNumber(java.lang.String flightNumber)
          Set the 'FlightNumber' attribute value.
 void setResBookDesigCode(java.lang.String resBookDesigCode)
          Set the 'ResBookDesigCode' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlightLeg

public FlightLeg()
Method Detail

getDepartureAirport

public LocationGroup getDepartureAirport()
Get the 'LocationGroup' attributeGroup value. The departure airport/city code.

Returns:
value

setDepartureAirport

public void setDepartureAirport(LocationGroup departureAirport)
Set the 'LocationGroup' attributeGroup value. The departure airport/city code.

Parameters:
departureAirport -

getArrivalAirport

public LocationGroup getArrivalAirport()
Get the 'LocationGroup' attributeGroup value. The arrival airport/city code.

Returns:
value

setArrivalAirport

public void setArrivalAirport(LocationGroup arrivalAirport)
Set the 'LocationGroup' attributeGroup value. The arrival airport/city code.

Parameters:
arrivalAirport -

getFlightNumber

public java.lang.String getFlightNumber()
Get the 'FlightNumber' attribute value. A flight number.

Returns:
value

setFlightNumber

public void setFlightNumber(java.lang.String flightNumber)
Set the 'FlightNumber' attribute value. A flight number.

Parameters:
flightNumber -

getResBookDesigCode

public java.lang.String getResBookDesigCode()
Get the 'ResBookDesigCode' attribute value. The reservation booking designator for a flight.

Returns:
value

setResBookDesigCode

public void setResBookDesigCode(java.lang.String resBookDesigCode)
Set the 'ResBookDesigCode' attribute value. The reservation booking designator for a flight.

Parameters:
resBookDesigCode -

getDate

public java.util.Date getDate()
Get the 'Date' attribute value. A date for the flight.

Returns:
value

setDate

public void setDate(java.util.Date date)
Set the 'Date' attribute value. A date for the flight.

Parameters:
date -