org.ota.air
Class ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment

java.lang.Object
  extended by org.ota.shared.FlightSegmentBase
      extended by org.ota.air.FlightSegment
          extended by org.ota.air.ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment
Enclosing class:
ScheduleRS.OriginDestinationOptions.OriginDestinationOption

public static class ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment
extends FlightSegment

A collection of one or more legs that are defined as a single flight number. 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="FlightSegment" maxOccurs="4">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:FlightSegmentType">
         <xs:sequence>
           <xs:element type="ns:FreeTextType" name="Comment" minOccurs="0" maxOccurs="10"/>
           <xs:element type="ns:MarketingCabinType" name="MarketingCabin" minOccurs="0" maxOccurs="9"/>
           <xs:element type="ns:OperationSchedulesType" name="DaysOfOperation" minOccurs="0"/>
           <xs:element name="BookingClass" minOccurs="0" maxOccurs="99">
             <!-- Reference to inner class BookingClass -->
           </xs:element>
           <xs:element name="TrafficRestrictionInfo" minOccurs="0" maxOccurs="9">
             <!-- Reference to inner class TrafficRestrictionInfo -->
           </xs:element>
         </xs:sequence>
         <xs:attribute type="xs:string" use="optional" name="JourneyDuration"/>
         <xs:attributeGroup ref="ns:SmokingIndicatorGroup"/>
         <xs:attribute type="xs:float" use="optional" name="OnTimeRate"/>
         <xs:attribute type="xs:date" use="optional" name="ScheduleValidStartDate"/>
         <xs:attribute type="xs:date" use="optional" name="ScheduleValidEndDate"/>
         <xs:attribute type="xs:string" use="optional" name="ParticipationLevelCode"/>
         <xs:attribute type="xs:string" use="optional" name="DateChangeNbr"/>
         <xs:attribute type="xs:boolean" use="optional" name="FLIFO_Ind"/>
       </xs:extension>
     </xs:complexContent>
   </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 ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.BookingClass
          Reservation booking codes for a particular flight segment.
static class ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo
          Traffic restriction information for a specific flight.
 
Nested classes/interfaces inherited from class org.ota.air.FlightSegment
FlightSegment.MarketingAirline
 
Constructor Summary
ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment()
           
 
Method Summary
 void addBookingClass(ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.BookingClass item)
          Add a 'BookingClass' element item.
 void addComment(FreeText item)
          Add a 'Comment' element item.
 void addMarketingCabin(MarketingCabin item)
          Add a 'MarketingCabin' element item.
 void addTrafficRestrictionInfo(ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo item)
          Add a 'TrafficRestrictionInfo' element item.
 void clearBookingClasses()
          Remove all 'BookingClass' element items.
 void clearComments()
          Remove all 'Comment' element items.
 void clearMarketingCabins()
          Remove all 'MarketingCabin' element items.
 void clearTrafficRestrictionInfos()
          Remove all 'TrafficRestrictionInfo' element items.
 ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.BookingClass getBookingClass(int index)
          Get 'BookingClass' element item by position.
 java.util.List<ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.BookingClass> getBookingClasses()
          Get the list of 'BookingClass' element items.
 FreeText getComment(int index)
          Get 'Comment' element item by position.
 java.util.List<FreeText> getComments()
          Get the list of 'Comment' element items.
 java.lang.String getDateChangeNbr()
          Get the 'DateChangeNbr' attribute value.
 OperationSchedules getDaysOfOperation()
          Get the 'DaysOfOperation' element value.
 java.lang.Boolean getFLIFOInd()
          Get the 'FLIFO_Ind' attribute value.
 java.lang.String getJourneyDuration()
          Get the 'JourneyDuration' attribute value.
 MarketingCabin getMarketingCabin(int index)
          Get 'MarketingCabin' element item by position.
 java.util.List<MarketingCabin> getMarketingCabins()
          Get the list of 'MarketingCabin' element items.
 java.lang.Float getOnTimeRate()
          Get the 'OnTimeRate' attribute value.
 java.lang.String getParticipationLevelCode()
          Get the 'ParticipationLevelCode' attribute value.
 java.sql.Date getScheduleValidEndDate()
          Get the 'ScheduleValidEndDate' attribute value.
 java.sql.Date getScheduleValidStartDate()
          Get the 'ScheduleValidStartDate' attribute value.
 java.lang.Boolean getSmokingAllowed()
          Get the 'SmokingAllowed' attribute value.
 ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo getTrafficRestrictionInfo(int index)
          Get 'TrafficRestrictionInfo' element item by position.
 java.util.List<ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo> getTrafficRestrictionInfos()
          Get the list of 'TrafficRestrictionInfo' element items.
 void setBookingClasses(java.util.List<ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.BookingClass> list)
          Set the list of 'BookingClass' element items.
 void setComments(java.util.List<FreeText> list)
          Set the list of 'Comment' element items.
 void setDateChangeNbr(java.lang.String dateChangeNbr)
          Set the 'DateChangeNbr' attribute value.
 void setDaysOfOperation(OperationSchedules daysOfOperation)
          Set the 'DaysOfOperation' element value.
 void setFLIFOInd(java.lang.Boolean FLIFOInd)
          Set the 'FLIFO_Ind' attribute value.
 void setJourneyDuration(java.lang.String journeyDuration)
          Set the 'JourneyDuration' attribute value.
 void setMarketingCabins(java.util.List<MarketingCabin> list)
          Set the list of 'MarketingCabin' element items.
 void setOnTimeRate(java.lang.Float onTimeRate)
          Set the 'OnTimeRate' attribute value.
 void setParticipationLevelCode(java.lang.String participationLevelCode)
          Set the 'ParticipationLevelCode' attribute value.
 void setScheduleValidEndDate(java.sql.Date scheduleValidEndDate)
          Set the 'ScheduleValidEndDate' attribute value.
 void setScheduleValidStartDate(java.sql.Date scheduleValidStartDate)
          Set the 'ScheduleValidStartDate' attribute value.
 void setSmokingAllowed(java.lang.Boolean smokingAllowed)
          Set the 'SmokingAllowed' attribute value.
 void setTrafficRestrictionInfos(java.util.List<ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo> list)
          Set the list of 'TrafficRestrictionInfo' element items.
 int sizeBookingClasses()
          Get the number of 'BookingClass' element items.
 int sizeComments()
          Get the number of 'Comment' element items.
 int sizeMarketingCabins()
          Get the number of 'MarketingCabin' element items.
 int sizeTrafficRestrictionInfos()
          Get the number of 'TrafficRestrictionInfo' element items.
 
Methods inherited from class org.ota.air.FlightSegment
getFlightNumber, getMarketingAirline, getTourOperatorFlightID, setFlightNumber, setMarketingAirline, setTourOperatorFlightID
 
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

ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment

public ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment()
Method Detail

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.


getMarketingCabins

public java.util.List<MarketingCabin> getMarketingCabins()
Get the list of 'MarketingCabin' element items. Identifies the marketing name for the cabin. This is the supplier cabin identifier as opposed to the generic industry term for the cabin.

Returns:
list

setMarketingCabins

public void setMarketingCabins(java.util.List<MarketingCabin> list)
Set the list of 'MarketingCabin' element items. Identifies the marketing name for the cabin. This is the supplier cabin identifier as opposed to the generic industry term for the cabin.

Parameters:
list -

sizeMarketingCabins

public int sizeMarketingCabins()
Get the number of 'MarketingCabin' element items.

Returns:
count

addMarketingCabin

public void addMarketingCabin(MarketingCabin item)
Add a 'MarketingCabin' element item.

Parameters:
item -

getMarketingCabin

public MarketingCabin getMarketingCabin(int index)
Get 'MarketingCabin' element item by position.

Parameters:
index -
Returns:
item

clearMarketingCabins

public void clearMarketingCabins()
Remove all 'MarketingCabin' element items.


getDaysOfOperation

public OperationSchedules getDaysOfOperation()
Get the 'DaysOfOperation' element value. Identifies the days of week the flight operates.

Returns:
value

setDaysOfOperation

public void setDaysOfOperation(OperationSchedules daysOfOperation)
Set the 'DaysOfOperation' element value. Identifies the days of week the flight operates.

Parameters:
daysOfOperation -

getBookingClasses

public java.util.List<ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.BookingClass> getBookingClasses()
Get the list of 'BookingClass' element items.

Returns:
list

setBookingClasses

public void setBookingClasses(java.util.List<ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.BookingClass> list)
Set the list of 'BookingClass' element items.

Parameters:
list -

sizeBookingClasses

public int sizeBookingClasses()
Get the number of 'BookingClass' element items.

Returns:
count

addBookingClass

public void addBookingClass(ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.BookingClass item)
Add a 'BookingClass' element item.

Parameters:
item -

getBookingClass

public ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.BookingClass getBookingClass(int index)
Get 'BookingClass' element item by position.

Parameters:
index -
Returns:
item

clearBookingClasses

public void clearBookingClasses()
Remove all 'BookingClass' element items.


getTrafficRestrictionInfos

public java.util.List<ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo> getTrafficRestrictionInfos()
Get the list of 'TrafficRestrictionInfo' element items.

Returns:
list

setTrafficRestrictionInfos

public void setTrafficRestrictionInfos(java.util.List<ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo> list)
Set the list of 'TrafficRestrictionInfo' element items.

Parameters:
list -

sizeTrafficRestrictionInfos

public int sizeTrafficRestrictionInfos()
Get the number of 'TrafficRestrictionInfo' element items.

Returns:
count

addTrafficRestrictionInfo

public void addTrafficRestrictionInfo(ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo item)
Add a 'TrafficRestrictionInfo' element item.

Parameters:
item -

getTrafficRestrictionInfo

public ScheduleRS.OriginDestinationOptions.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo getTrafficRestrictionInfo(int index)
Get 'TrafficRestrictionInfo' element item by position.

Parameters:
index -
Returns:
item

clearTrafficRestrictionInfos

public void clearTrafficRestrictionInfos()
Remove all 'TrafficRestrictionInfo' element items.


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 -

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 -

getScheduleValidStartDate

public java.sql.Date getScheduleValidStartDate()
Get the 'ScheduleValidStartDate' attribute value. Identifies the start date for the scheduled flight.

Returns:
value

setScheduleValidStartDate

public void setScheduleValidStartDate(java.sql.Date scheduleValidStartDate)
Set the 'ScheduleValidStartDate' attribute value. Identifies the start date for the scheduled flight.

Parameters:
scheduleValidStartDate -

getScheduleValidEndDate

public java.sql.Date getScheduleValidEndDate()
Get the 'ScheduleValidEndDate' attribute value. Identifies the end date for the scheduled flight.

Returns:
value

setScheduleValidEndDate

public void setScheduleValidEndDate(java.sql.Date scheduleValidEndDate)
Set the 'ScheduleValidEndDate' attribute value. Identifies the end date for the scheduled flight.

Parameters:
scheduleValidEndDate -

getParticipationLevelCode

public java.lang.String getParticipationLevelCode()
Get the 'ParticipationLevelCode' attribute value. To specify the level of participation by a vendor in another system. Refer to OpenTravel Code List 'Participation Level Code' (PLC).

Returns:
value

setParticipationLevelCode

public void setParticipationLevelCode(java.lang.String participationLevelCode)
Set the 'ParticipationLevelCode' attribute value. To specify the level of participation by a vendor in another system. Refer to OpenTravel Code List 'Participation Level Code' (PLC).

Parameters:
participationLevelCode -

getDateChangeNbr

public java.lang.String 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(java.lang.String 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 -

getFLIFOInd

public java.lang.Boolean getFLIFOInd()
Get the 'FLIFO_Ind' attribute value. When true, FLIFO information exists for this flight.

Returns:
value

setFLIFOInd

public void setFLIFOInd(java.lang.Boolean FLIFOInd)
Set the 'FLIFO_Ind' attribute value. When true, FLIFO information exists for this flight.

Parameters:
FLIFOInd -