org.ota.air
Class FlifoRS.FlightInfoDetails.FlightLegInfo

java.lang.Object
  extended by org.ota.air.FlifoRS.FlightInfoDetails.FlightLegInfo
Enclosing class:
FlifoRS.FlightInfoDetails

public static class FlifoRS.FlightInfoDetails.FlightLegInfo
extends java.lang.Object

Information regarding each leg of the flight. A flight leg is one departure and one arrival (non-stop sector). 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="FlightLegInfo" maxOccurs="10">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="DepartureAirport" minOccurs="0">
         <!-- Reference to inner class DepartureAirport -->
       </xs:element>
       <xs:element name="ArrivalAirport" minOccurs="0" maxOccurs="2">
         <!-- Reference to inner class ArrivalAirport -->
       </xs:element>
       <xs:element type="ns:CompanyNameType" name="MarketingAirline"/>
       <xs:element type="ns:OperatingAirlineType" name="OperatingAirline" minOccurs="0"/>
       <xs:element type="ns:EquipmentType" name="Equipment" minOccurs="0"/>
       <xs:element type="ns:FreeTextType" name="Comment" minOccurs="0" maxOccurs="5"/>
       <xs:element name="DepartureDateTime" minOccurs="0">
         <!-- Reference to inner class DepartureDateTime -->
       </xs:element>
       <xs:element name="ArrivalDateTime" minOccurs="0">
         <!-- Reference to inner class ArrivalDateTime -->
       </xs:element>
       <xs:element name="OperationTimes" minOccurs="0">
         <!-- Reference to inner class OperationTimes -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:FlifoLegAttributes"/>
     <xs:attribute type="xs:string" use="optional" name="FlightStatus"/>
     <xs:attribute type="xs:float" use="optional" name="OnTimeRate"/>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="FlifoLegAttributes">
   <xs:attribute type="xs:string" use="optional" name="FlightNumber"/>
   <xs:attribute type="xs:string" use="optional" name="JourneyDuration"/>
   <xs:attribute type="xs:string" use="optional" name="GroundDuration"/>
   <xs:attribute type="xs:string" use="optional" name="AccumulatedDuration"/>
   <xs:attribute type="xs:int" use="optional" name="LegDistance"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalAirport
          Arrival point of flight segment.
static class FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalDateTime
          Specifies scheduled and other date time information.
static class FlifoRS.FlightInfoDetails.FlightLegInfo.DepartureAirport
          Departure airport for flight leg.
static class FlifoRS.FlightInfoDetails.FlightLegInfo.DepartureDateTime
          Specifies scheduled and other date time information.
static class FlifoRS.FlightInfoDetails.FlightLegInfo.OperationTimes
          A collection of OperationTimes.
 
Constructor Summary
FlifoRS.FlightInfoDetails.FlightLegInfo()
           
 
Method Summary
 void addArrivalAirport(FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalAirport item)
          Add a 'ArrivalAirport' element item.
 void addComment(FreeText item)
          Add a 'Comment' element item.
 void clearArrivalAirports()
          Remove all 'ArrivalAirport' element items.
 void clearComments()
          Remove all 'Comment' element items.
 java.lang.String getAccumulatedDuration()
          Get the 'AccumulatedDuration' attribute value.
 FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalAirport getArrivalAirport(int index)
          Get 'ArrivalAirport' element item by position.
 java.util.List<FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalAirport> getArrivalAirports()
          Get the list of 'ArrivalAirport' element items.
 FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalDateTime getArrivalDateTime()
          Get the 'ArrivalDateTime' element value.
 FreeText getComment(int index)
          Get 'Comment' element item by position.
 java.util.List<FreeText> getComments()
          Get the list of 'Comment' element items.
 FlifoRS.FlightInfoDetails.FlightLegInfo.DepartureAirport getDepartureAirport()
          Get the 'DepartureAirport' element value.
 FlifoRS.FlightInfoDetails.FlightLegInfo.DepartureDateTime getDepartureDateTime()
          Get the 'DepartureDateTime' element value.
 Equipment getEquipment()
          Get the 'Equipment' element value.
 java.lang.String getFlightNumber()
          Get the 'FlightNumber' attribute value.
 java.lang.String getFlightStatus()
          Get the 'FlightStatus' attribute value.
 java.lang.String getGroundDuration()
          Get the 'GroundDuration' attribute value.
 java.lang.String getJourneyDuration()
          Get the 'JourneyDuration' attribute value.
 java.lang.Integer getLegDistance()
          Get the 'LegDistance' attribute value.
 CompanyName getMarketingAirline()
          Get the 'MarketingAirline' element value.
 java.lang.Float getOnTimeRate()
          Get the 'OnTimeRate' attribute value.
 OperatingAirline getOperatingAirline()
          Get the 'OperatingAirline' element value.
 FlifoRS.FlightInfoDetails.FlightLegInfo.OperationTimes getOperationTimes()
          Get the 'OperationTimes' element value.
 void setAccumulatedDuration(java.lang.String accumulatedDuration)
          Set the 'AccumulatedDuration' attribute value.
 void setArrivalAirports(java.util.List<FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalAirport> list)
          Set the list of 'ArrivalAirport' element items.
 void setArrivalDateTime(FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalDateTime arrivalDateTime)
          Set the 'ArrivalDateTime' element value.
 void setComments(java.util.List<FreeText> list)
          Set the list of 'Comment' element items.
 void setDepartureAirport(FlifoRS.FlightInfoDetails.FlightLegInfo.DepartureAirport departureAirport)
          Set the 'DepartureAirport' element value.
 void setDepartureDateTime(FlifoRS.FlightInfoDetails.FlightLegInfo.DepartureDateTime departureDateTime)
          Set the 'DepartureDateTime' element value.
 void setEquipment(Equipment equipment)
          Set the 'Equipment' element value.
 void setFlightNumber(java.lang.String flightNumber)
          Set the 'FlightNumber' attribute value.
 void setFlightStatus(java.lang.String flightStatus)
          Set the 'FlightStatus' attribute value.
 void setGroundDuration(java.lang.String groundDuration)
          Set the 'GroundDuration' attribute value.
 void setJourneyDuration(java.lang.String journeyDuration)
          Set the 'JourneyDuration' attribute value.
 void setLegDistance(java.lang.Integer legDistance)
          Set the 'LegDistance' attribute value.
 void setMarketingAirline(CompanyName marketingAirline)
          Set the 'MarketingAirline' element value.
 void setOnTimeRate(java.lang.Float onTimeRate)
          Set the 'OnTimeRate' attribute value.
 void setOperatingAirline(OperatingAirline operatingAirline)
          Set the 'OperatingAirline' element value.
 void setOperationTimes(FlifoRS.FlightInfoDetails.FlightLegInfo.OperationTimes operationTimes)
          Set the 'OperationTimes' element value.
 int sizeArrivalAirports()
          Get the number of 'ArrivalAirport' element items.
 int sizeComments()
          Get the number of 'Comment' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlifoRS.FlightInfoDetails.FlightLegInfo

public FlifoRS.FlightInfoDetails.FlightLegInfo()
Method Detail

getDepartureAirport

public FlifoRS.FlightInfoDetails.FlightLegInfo.DepartureAirport getDepartureAirport()
Get the 'DepartureAirport' element value.

Returns:
value

setDepartureAirport

public void setDepartureAirport(FlifoRS.FlightInfoDetails.FlightLegInfo.DepartureAirport departureAirport)
Set the 'DepartureAirport' element value.

Parameters:
departureAirport -

getArrivalAirports

public java.util.List<FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalAirport> getArrivalAirports()
Get the list of 'ArrivalAirport' element items.

Returns:
list

setArrivalAirports

public void setArrivalAirports(java.util.List<FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalAirport> list)
Set the list of 'ArrivalAirport' element items.

Parameters:
list -

sizeArrivalAirports

public int sizeArrivalAirports()
Get the number of 'ArrivalAirport' element items.

Returns:
count

addArrivalAirport

public void addArrivalAirport(FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalAirport item)
Add a 'ArrivalAirport' element item.

Parameters:
item -

getArrivalAirport

public FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalAirport getArrivalAirport(int index)
Get 'ArrivalAirport' element item by position.

Parameters:
index -
Returns:
item

clearArrivalAirports

public void clearArrivalAirports()
Remove all 'ArrivalAirport' element items.


getMarketingAirline

public CompanyName getMarketingAirline()
Get the 'MarketingAirline' element value. The marketing airline.

Returns:
value

setMarketingAirline

public void setMarketingAirline(CompanyName marketingAirline)
Set the 'MarketingAirline' element value. The marketing airline.

Parameters:
marketingAirline -

getOperatingAirline

public OperatingAirline getOperatingAirline()
Get the 'OperatingAirline' element value. The operating airline of the flight if it is a codeshare flight.

Returns:
value

setOperatingAirline

public void setOperatingAirline(OperatingAirline operatingAirline)
Set the 'OperatingAirline' element value. The operating airline of the flight if it is a codeshare flight.

Parameters:
operatingAirline -

getEquipment

public Equipment getEquipment()
Get the 'Equipment' element value. The type of equipment used for the flight..

Returns:
value

setEquipment

public void setEquipment(Equipment equipment)
Set the 'Equipment' element value. The type of equipment used for the flight..

Parameters:
equipment -

getComments

public java.util.List<FreeText> getComments()
Get the list of 'Comment' element items. Any special comments on the leg such as travel advisory messages, passenger advisory messages, etc.

Returns:
list

setComments

public void setComments(java.util.List<FreeText> list)
Set the list of 'Comment' element items. Any special comments on the leg such as travel advisory messages, passenger advisory messages, etc.

Parameters:
list -

sizeComments

public int sizeComments()
Get the number of 'Comment' element items.

Returns:
count

addComment

public void addComment(FreeText item)
Add a 'Comment' element item.

Parameters:
item -

getComment

public FreeText getComment(int index)
Get 'Comment' element item by position.

Parameters:
index -
Returns:
item

clearComments

public void clearComments()
Remove all 'Comment' element items.


getDepartureDateTime

public FlifoRS.FlightInfoDetails.FlightLegInfo.DepartureDateTime getDepartureDateTime()
Get the 'DepartureDateTime' element value.

Returns:
value

setDepartureDateTime

public void setDepartureDateTime(FlifoRS.FlightInfoDetails.FlightLegInfo.DepartureDateTime departureDateTime)
Set the 'DepartureDateTime' element value.

Parameters:
departureDateTime -

getArrivalDateTime

public FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalDateTime getArrivalDateTime()
Get the 'ArrivalDateTime' element value.

Returns:
value

setArrivalDateTime

public void setArrivalDateTime(FlifoRS.FlightInfoDetails.FlightLegInfo.ArrivalDateTime arrivalDateTime)
Set the 'ArrivalDateTime' element value.

Parameters:
arrivalDateTime -

getOperationTimes

public FlifoRS.FlightInfoDetails.FlightLegInfo.OperationTimes getOperationTimes()
Get the 'OperationTimes' element value.

Returns:
value

setOperationTimes

public void setOperationTimes(FlifoRS.FlightInfoDetails.FlightLegInfo.OperationTimes operationTimes)
Set the 'OperationTimes' element value.

Parameters:
operationTimes -

getFlightNumber

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

Returns:
value

setFlightNumber

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

Parameters:
flightNumber -

getJourneyDuration

public java.lang.String getJourneyDuration()
Get the 'JourneyDuration' attribute value. The duration of the flight from departure location to destination location.

Returns:
value

setJourneyDuration

public void setJourneyDuration(java.lang.String journeyDuration)
Set the 'JourneyDuration' attribute value. The duration of the flight from departure location to destination location.

Parameters:
journeyDuration -

getGroundDuration

public java.lang.String getGroundDuration()
Get the 'GroundDuration' attribute value. The duration of a ground stop.

Returns:
value

setGroundDuration

public void setGroundDuration(java.lang.String groundDuration)
Set the 'GroundDuration' attribute value. The duration of a ground stop.

Parameters:
groundDuration -

getAccumulatedDuration

public java.lang.String getAccumulatedDuration()
Get the 'AccumulatedDuration' attribute value. The total duration time of the flight. This is the combination of both JourneyDuration and GroundDuration.

Returns:
value

setAccumulatedDuration

public void setAccumulatedDuration(java.lang.String accumulatedDuration)
Set the 'AccumulatedDuration' attribute value. The total duration time of the flight. This is the combination of both JourneyDuration and GroundDuration.

Parameters:
accumulatedDuration -

getLegDistance

public java.lang.Integer getLegDistance()
Get the 'LegDistance' attribute value. Miles aquired per flight segments, usually used for earning of frequent flyer miles.

Returns:
value

setLegDistance

public void setLegDistance(java.lang.Integer legDistance)
Set the 'LegDistance' attribute value. Miles aquired per flight segments, usually used for earning of frequent flyer miles.

Parameters:
legDistance -

getFlightStatus

public java.lang.String getFlightStatus()
Get the 'FlightStatus' attribute value. Status of the current flight operation.

Returns:
value

setFlightStatus

public void setFlightStatus(java.lang.String flightStatus)
Set the 'FlightStatus' attribute value. Status of the current flight operation.

Parameters:
flightStatus -

getOnTimeRate

public java.lang.Float getOnTimeRate()
Get the 'OnTimeRate' attribute value. Specifies the Department of Transportation on time rate for the flight leg.

Returns:
value

setOnTimeRate

public void setOnTimeRate(java.lang.Float onTimeRate)
Set the 'OnTimeRate' attribute value. Specifies the Department of Transportation on time rate for the flight leg.

Parameters:
onTimeRate -