org.ota.air
Class DetailsRS.FlightDetails.FlightLegDetails

java.lang.Object
  extended by org.ota.air.DetailsRS.FlightDetails.FlightLegDetails
Enclosing class:
DetailsRS.FlightDetails

public static class DetailsRS.FlightDetails.FlightLegDetails
extends java.lang.Object

Construct for holding flight leg information. 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="FlightLegDetails" maxOccurs="10">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="DepartureAirport" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:AirportLocationGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="ArrivalAirport" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:AirportLocationGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:CompanyNameType" name="MarketingAirline" minOccurs="0"/>
       <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="unbounded"/>
       <xs:element type="ns:CabinAvailabilityType" name="MarketingCabinAvailability" minOccurs="0" maxOccurs="9"/>
       <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
     </xs:sequence>
     <xs:attribute type="xs:int" use="required" name="SequenceNumber"/>
     <xs:attribute type="xs:string" use="required" name="FlightNumber"/>
     <xs:attribute type="xs:string" use="optional" name="JourneyDuration"/>
     <xs:attribute type="xs:string" use="optional" name="GroundDuration"/>
     <xs:attributeGroup ref="ns:SmokingIndicatorGroup"/>
     <xs:attribute type="xs:float" use="optional" name="OnTimeRate"/>
     <xs:attribute type="ns:TicketType" name="Ticket"/>
     <xs:attribute type="xs:dateTime" use="optional" name="DepartureDateTime"/>
     <xs:attribute type="xs:dateTime" use="optional" name="ArrivalDateTime"/>
     <xs:attribute type="ns:DayOfWeekType" use="optional" name="DepartureDayOfWeek"/>
     <xs:attribute type="xs:string" use="optional" name="LegDistance"/>
     <xs:attribute use="optional" name="DateChangeNbr">
       <xs:simpleType>
         <!-- Reference to inner class DateChangeNbr -->
       </xs:simpleType>
     </xs:attribute>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SmokingIndicatorGroup">
   <xs:attribute type="xs:boolean" use="optional" name="SmokingAllowed"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class DetailsRS.FlightDetails.FlightLegDetails.DateChangeNbr
          Schema fragment(s) for this class:
 
Constructor Summary
DetailsRS.FlightDetails.FlightLegDetails()
           
 
Method Summary
 void addComment(FreeText item)
          Add a 'Comment' element item.
 void addMarketingCabinAvailability(CabinAvailability item)
          Add a 'MarketingCabinAvailability' element item.
 void clearComments()
          Remove all 'Comment' element items.
 void clearMarketingCabinAvailabilities()
          Remove all 'MarketingCabinAvailability' element items.
 AirportLocationGroup getArrivalAirport()
          Get the 'AirportLocationGroup' attributeGroup value.
 java.util.Date getArrivalDateTime()
          Get the 'ArrivalDateTime' attribute value.
 FreeText getComment(int index)
          Get 'Comment' element item by position.
 java.util.List<FreeText> getComments()
          Get the list of 'Comment' element items.
 DetailsRS.FlightDetails.FlightLegDetails.DateChangeNbr getDateChangeNbr()
          Get the 'DateChangeNbr' attribute value.
 AirportLocationGroup getDepartureAirport()
          Get the 'AirportLocationGroup' attributeGroup value.
 java.util.Date getDepartureDateTime()
          Get the 'DepartureDateTime' attribute value.
 DayOfWeek getDepartureDayOfWeek()
          Get the 'DepartureDayOfWeek' attribute value.
 Equipment getEquipment()
          Get the 'Equipment' element value.
 java.lang.String getFlightNumber()
          Get the 'FlightNumber' attribute value.
 java.lang.String getGroundDuration()
          Get the 'GroundDuration' attribute value.
 java.lang.String getJourneyDuration()
          Get the 'JourneyDuration' attribute value.
 java.lang.String getLegDistance()
          Get the 'LegDistance' attribute value.
 CompanyName getMarketingAirline()
          Get the 'MarketingAirline' element value.
 java.util.List<CabinAvailability> getMarketingCabinAvailabilities()
          Get the list of 'MarketingCabinAvailability' element items.
 CabinAvailability getMarketingCabinAvailability(int index)
          Get 'MarketingCabinAvailability' element item by position.
 java.lang.Float getOnTimeRate()
          Get the 'OnTimeRate' attribute value.
 OperatingAirline getOperatingAirline()
          Get the 'OperatingAirline' element value.
 java.lang.Integer getSequenceNumber()
          Get the 'SequenceNumber' attribute value.
 java.lang.Boolean getSmokingAllowed()
          Get the 'SmokingAllowed' attribute value.
 Ticket getTicket()
          Get the 'Ticket' attribute value.
 Warnings getWarnings()
          Get the 'Warnings' element value.
 void setArrivalAirport(AirportLocationGroup arrivalAirport)
          Set the 'AirportLocationGroup' attributeGroup value.
 void setArrivalDateTime(java.util.Date arrivalDateTime)
          Set the 'ArrivalDateTime' attribute value.
 void setComments(java.util.List<FreeText> list)
          Set the list of 'Comment' element items.
 void setDateChangeNbr(DetailsRS.FlightDetails.FlightLegDetails.DateChangeNbr dateChangeNbr)
          Set the 'DateChangeNbr' attribute value.
 void setDepartureAirport(AirportLocationGroup departureAirport)
          Set the 'AirportLocationGroup' attributeGroup value.
 void setDepartureDateTime(java.util.Date departureDateTime)
          Set the 'DepartureDateTime' attribute value.
 void setDepartureDayOfWeek(DayOfWeek departureDayOfWeek)
          Set the 'DepartureDayOfWeek' attribute value.
 void setEquipment(Equipment equipment)
          Set the 'Equipment' element value.
 void setFlightNumber(java.lang.String flightNumber)
          Set the 'FlightNumber' 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.String legDistance)
          Set the 'LegDistance' attribute value.
 void setMarketingAirline(CompanyName marketingAirline)
          Set the 'MarketingAirline' element value.
 void setMarketingCabinAvailabilities(java.util.List<CabinAvailability> list)
          Set the list of 'MarketingCabinAvailability' element items.
 void setOnTimeRate(java.lang.Float onTimeRate)
          Set the 'OnTimeRate' attribute value.
 void setOperatingAirline(OperatingAirline operatingAirline)
          Set the 'OperatingAirline' element value.
 void setSequenceNumber(java.lang.Integer sequenceNumber)
          Set the 'SequenceNumber' attribute value.
 void setSmokingAllowed(java.lang.Boolean smokingAllowed)
          Set the 'SmokingAllowed' attribute value.
 void setTicket(Ticket ticket)
          Set the 'Ticket' attribute value.
 void setWarnings(Warnings warnings)
          Set the 'Warnings' element value.
 int sizeComments()
          Get the number of 'Comment' element items.
 int sizeMarketingCabinAvailabilities()
          Get the number of 'MarketingCabinAvailability' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetailsRS.FlightDetails.FlightLegDetails

public DetailsRS.FlightDetails.FlightLegDetails()
Method Detail

getDepartureAirport

public AirportLocationGroup getDepartureAirport()
Get the 'AirportLocationGroup' attributeGroup value. The departure airport of the flight leg.

Returns:
value

setDepartureAirport

public void setDepartureAirport(AirportLocationGroup departureAirport)
Set the 'AirportLocationGroup' attributeGroup value. The departure airport of the flight leg.

Parameters:
departureAirport -

getArrivalAirport

public AirportLocationGroup getArrivalAirport()
Get the 'AirportLocationGroup' attributeGroup value. The arrival airport of the flight leg.

Returns:
value

setArrivalAirport

public void setArrivalAirport(AirportLocationGroup arrivalAirport)
Set the 'AirportLocationGroup' attributeGroup value. The arrival airport of the flight leg.

Parameters:
arrivalAirport -

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 air carrier engaged directly in the operation of the flight.

Returns:
value

setOperatingAirline

public void setOperatingAirline(OperatingAirline operatingAirline)
Set the 'OperatingAirline' element value. The air carrier engaged directly in the operation of the 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. (eg. operated by XX)

Returns:
list

setComments

public void setComments(java.util.List<FreeText> list)
Set the list of 'Comment' element items. Any special comments on the leg. (eg. operated by XX)

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.


getMarketingCabinAvailabilities

public java.util.List<CabinAvailability> getMarketingCabinAvailabilities()
Get the list of 'MarketingCabinAvailability' element items. Identifies the cabins available for the flight.

Returns:
list

setMarketingCabinAvailabilities

public void setMarketingCabinAvailabilities(java.util.List<CabinAvailability> list)
Set the list of 'MarketingCabinAvailability' element items. Identifies the cabins available for the flight.

Parameters:
list -

sizeMarketingCabinAvailabilities

public int sizeMarketingCabinAvailabilities()
Get the number of 'MarketingCabinAvailability' element items.

Returns:
count

addMarketingCabinAvailability

public void addMarketingCabinAvailability(CabinAvailability item)
Add a 'MarketingCabinAvailability' element item.

Parameters:
item -

getMarketingCabinAvailability

public CabinAvailability getMarketingCabinAvailability(int index)
Get 'MarketingCabinAvailability' element item by position.

Parameters:
index -
Returns:
item

clearMarketingCabinAvailabilities

public void clearMarketingCabinAvailabilities()
Remove all 'MarketingCabinAvailability' element items.


getWarnings

public Warnings getWarnings()
Get the 'Warnings' element value. Warning information for this flight leg.

Returns:
value

setWarnings

public void setWarnings(Warnings warnings)
Set the 'Warnings' element value. Warning information for this flight leg.

Parameters:
warnings -

getSequenceNumber

public java.lang.Integer getSequenceNumber()
Get the 'SequenceNumber' attribute value. The sequence number of the flight leg.

Returns:
value

setSequenceNumber

public void setSequenceNumber(java.lang.Integer sequenceNumber)
Set the 'SequenceNumber' attribute value. The sequence number of the flight leg.

Parameters:
sequenceNumber -

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 -

getSmokingAllowed

public java.lang.Boolean getSmokingAllowed()
Get the 'SmokingAllowed' attribute value. Indicates smoking is allowed when true and is not allowed when false. false

Returns:
value

setSmokingAllowed

public void setSmokingAllowed(java.lang.Boolean smokingAllowed)
Set the 'SmokingAllowed' attribute value. Indicates smoking is allowed when true and is not allowed when false. false

Parameters:
smokingAllowed -

getOnTimeRate

public java.lang.Float getOnTimeRate()
Get the 'OnTimeRate' attribute value. Specifies the Dept. of Transport on time rate of the flight.

Returns:
value

setOnTimeRate

public void setOnTimeRate(java.lang.Float onTimeRate)
Set the 'OnTimeRate' attribute value. Specifies the Dept. of Transport on time rate of the flight.

Parameters:
onTimeRate -

getTicket

public Ticket getTicket()
Get the 'Ticket' attribute value. Specifies if the flight is e-ticketable or not. Paper

Returns:
value

setTicket

public void setTicket(Ticket ticket)
Set the 'Ticket' attribute value. Specifies if the flight is e-ticketable or not. Paper

Parameters:
ticket -

getDepartureDateTime

public java.util.Date getDepartureDateTime()
Get the 'DepartureDateTime' attribute value. Scheduled flight departure date/time for flight leg.

Returns:
value

setDepartureDateTime

public void setDepartureDateTime(java.util.Date departureDateTime)
Set the 'DepartureDateTime' attribute value. Scheduled flight departure date/time for flight leg.

Parameters:
departureDateTime -

getArrivalDateTime

public java.util.Date getArrivalDateTime()
Get the 'ArrivalDateTime' attribute value. Scheduled flight arrival date/time for flight leg.

Returns:
value

setArrivalDateTime

public void setArrivalDateTime(java.util.Date arrivalDateTime)
Set the 'ArrivalDateTime' attribute value. Scheduled flight arrival date/time for flight leg.

Parameters:
arrivalDateTime -

getDepartureDayOfWeek

public DayOfWeek getDepartureDayOfWeek()
Get the 'DepartureDayOfWeek' attribute value. A three letter abbreviation for the day of the week as specified in the departure date.

Returns:
value

setDepartureDayOfWeek

public void setDepartureDayOfWeek(DayOfWeek departureDayOfWeek)
Set the 'DepartureDayOfWeek' attribute value. A three letter abbreviation for the day of the week as specified in the departure date.

Parameters:
departureDayOfWeek -

getLegDistance

public java.lang.String getLegDistance()
Get the 'LegDistance' attribute value. The number of miles for this flight leg.

Returns:
value

setLegDistance

public void setLegDistance(java.lang.String legDistance)
Set the 'LegDistance' attribute value. The number of miles for this flight leg.

Parameters:
legDistance -

getDateChangeNbr

public DetailsRS.FlightDetails.FlightLegDetails.DateChangeNbr getDateChangeNbr()
Get the 'DateChangeNbr' attribute value. When present contains the number of days by which the flight's arrival date differs from its departure date.

Returns:
value

setDateChangeNbr

public void setDateChangeNbr(DetailsRS.FlightDetails.FlightLegDetails.DateChangeNbr dateChangeNbr)
Set the 'DateChangeNbr' attribute value. When present contains the number of days by which the flight's arrival date differs from its departure date.

Parameters:
dateChangeNbr -