org.ota.air
Class AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment

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

public static class AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment
extends FlightSegment

Details of the flight option for an origin destination pair. 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="8">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:FlightSegmentType">
         <xs:sequence>
           <xs:element name="TrafficRestrictionInfo" minOccurs="0" maxOccurs="99">
             <!-- Reference to inner class TrafficRestrictionInfo -->
           </xs:element>
           <xs:element type="ns:FreeTextType" name="Comment" minOccurs="0" maxOccurs="10"/>
           <xs:element type="ns:MarketingCabinType" name="MarketingCabin" minOccurs="0" maxOccurs="9"/>
           <xs:element name="BookingClassAvail" minOccurs="0" maxOccurs="99">
             <!-- Reference to inner class BookingClassAvail -->
           </xs:element>
           <xs:element name="StopLocation" minOccurs="0" maxOccurs="9">
             <xs:complexType>
               <xs:attributeGroup ref="ns:LocationGroup"/>
             </xs:complexType>
           </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="ns:TicketType" name="Ticket"/>
         <xs:attribute type="xs:string" use="optional" name="ParticipationLevelCode"/>
         <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="Distance"/>
         <xs:attribute type="xs:boolean" use="optional" name="CodeshareInd"/>
         <xs:attribute type="xs:boolean" use="optional" name="FlifoInd"/>
         <xs:attribute type="xs:string" use="optional" name="DateChangeNbr"/>
         <xs:attribute type="xs:int" use="optional" name="SequenceNumber"/>
       </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 AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.BookingClassAvail
          Booking codes available to be sold for a particular flight segment.
static class AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo
          Traffic restriction information for a specific flight.
 
Nested classes/interfaces inherited from class org.ota.air.FlightSegment
FlightSegment.MarketingAirline
 
Constructor Summary
AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment()
           
 
Method Summary
 void addBookingClassAvail(AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.BookingClassAvail item)
          Add a 'BookingClassAvail' element item.
 void addComment(FreeText item)
          Add a 'Comment' element item.
 void addMarketingCabin(MarketingCabin item)
          Add a 'MarketingCabin' element item.
 void addStopLocation(LocationGroup item)
          Add a 'StopLocation' element item.
 void addTrafficRestrictionInfo(AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo item)
          Add a 'TrafficRestrictionInfo' element item.
 void clearBookingClassAvails()
          Remove all 'BookingClassAvail' element items.
 void clearComments()
          Remove all 'Comment' element items.
 void clearMarketingCabins()
          Remove all 'MarketingCabin' element items.
 void clearStopLocations()
          Remove all 'StopLocation' element items.
 void clearTrafficRestrictionInfos()
          Remove all 'TrafficRestrictionInfo' element items.
 java.lang.String getAccumulatedDuration()
          Get the 'AccumulatedDuration' attribute value.
 AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.BookingClassAvail getBookingClassAvail(int index)
          Get 'BookingClassAvail' element item by position.
 java.util.List<AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.BookingClassAvail> getBookingClassAvails()
          Get the list of 'BookingClassAvail' element items.
 java.lang.Boolean getCodeshareInd()
          Get the 'CodeshareInd' attribute value.
 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.
 java.lang.Integer getDistance()
          Get the 'Distance' attribute value.
 java.lang.Boolean getFlifoInd()
          Get the 'FlifoInd' attribute value.
 java.lang.String getGroundDuration()
          Get the 'GroundDuration' 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.lang.Integer getSequenceNumber()
          Get the 'SequenceNumber' attribute value.
 java.lang.Boolean getSmokingAllowed()
          Get the 'SmokingAllowed' attribute value.
 LocationGroup getStopLocation(int index)
          Get 'StopLocation' element item by position.
 java.util.List<LocationGroup> getStopLocations()
          Get the list of 'StopLocation' element items.
 Ticket getTicket()
          Get the 'Ticket' attribute value.
 AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo getTrafficRestrictionInfo(int index)
          Get 'TrafficRestrictionInfo' element item by position.
 java.util.List<AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo> getTrafficRestrictionInfos()
          Get the list of 'TrafficRestrictionInfo' element items.
 void setAccumulatedDuration(java.lang.String accumulatedDuration)
          Set the 'AccumulatedDuration' attribute value.
 void setBookingClassAvails(java.util.List<AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.BookingClassAvail> list)
          Set the list of 'BookingClassAvail' element items.
 void setCodeshareInd(java.lang.Boolean codeshareInd)
          Set the 'CodeshareInd' attribute value.
 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 setDistance(java.lang.Integer distance)
          Set the 'Distance' attribute value.
 void setFlifoInd(java.lang.Boolean flifoInd)
          Set the 'FlifoInd' 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 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 setSequenceNumber(java.lang.Integer sequenceNumber)
          Set the 'SequenceNumber' attribute value.
 void setSmokingAllowed(java.lang.Boolean smokingAllowed)
          Set the 'SmokingAllowed' attribute value.
 void setStopLocations(java.util.List<LocationGroup> list)
          Set the list of 'StopLocation' element items.
 void setTicket(Ticket ticket)
          Set the 'Ticket' attribute value.
 void setTrafficRestrictionInfos(java.util.List<AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo> list)
          Set the list of 'TrafficRestrictionInfo' element items.
 int sizeBookingClassAvails()
          Get the number of 'BookingClassAvail' element items.
 int sizeComments()
          Get the number of 'Comment' element items.
 int sizeMarketingCabins()
          Get the number of 'MarketingCabin' element items.
 int sizeStopLocations()
          Get the number of 'StopLocation' 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

AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment

public AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment()
Method Detail

getTrafficRestrictionInfos

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

Returns:
list

setTrafficRestrictionInfos

public void setTrafficRestrictionInfos(java.util.List<AvailRS.OriginDestinationInformation.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(AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.TrafficRestrictionInfo item)
Add a 'TrafficRestrictionInfo' element item.

Parameters:
item -

getTrafficRestrictionInfo

public AvailRS.OriginDestinationInformation.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.


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. The airline specific branding for cabins.

Returns:
list

setMarketingCabins

public void setMarketingCabins(java.util.List<MarketingCabin> list)
Set the list of 'MarketingCabin' element items. The airline specific branding for cabins.

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.


getBookingClassAvails

public java.util.List<AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.BookingClassAvail> getBookingClassAvails()
Get the list of 'BookingClassAvail' element items.

Returns:
list

setBookingClassAvails

public void setBookingClassAvails(java.util.List<AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.BookingClassAvail> list)
Set the list of 'BookingClassAvail' element items.

Parameters:
list -

sizeBookingClassAvails

public int sizeBookingClassAvails()
Get the number of 'BookingClassAvail' element items.

Returns:
count

addBookingClassAvail

public void addBookingClassAvail(AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.BookingClassAvail item)
Add a 'BookingClassAvail' element item.

Parameters:
item -

getBookingClassAvail

public AvailRS.OriginDestinationInformation.OriginDestinationOption.FlightSegment.BookingClassAvail getBookingClassAvail(int index)
Get 'BookingClassAvail' element item by position.

Parameters:
index -
Returns:
item

clearBookingClassAvails

public void clearBookingClassAvails()
Remove all 'BookingClassAvail' element items.


getStopLocations

public java.util.List<LocationGroup> getStopLocations()
Get the list of 'StopLocation' element items. A location where the flight is scheduled to stop en route to its destination for this flight segment.

Returns:
list

setStopLocations

public void setStopLocations(java.util.List<LocationGroup> list)
Set the list of 'StopLocation' element items. A location where the flight is scheduled to stop en route to its destination for this flight segment.

Parameters:
list -

sizeStopLocations

public int sizeStopLocations()
Get the number of 'StopLocation' element items.

Returns:
count

addStopLocation

public void addStopLocation(LocationGroup item)
Add a 'StopLocation' element item.

Parameters:
item -

getStopLocation

public LocationGroup getStopLocation(int index)
Get 'StopLocation' element item by position.

Parameters:
index -
Returns:
item

clearStopLocations

public void clearStopLocations()
Remove all 'StopLocation' 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 -

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 -

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 -

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 -

getDistance

public java.lang.Integer getDistance()
Get the 'Distance' attribute value. Miles acquired per flight segment, usually used for earning of frequent flyer miles.

Returns:
value

setDistance

public void setDistance(java.lang.Integer distance)
Set the 'Distance' attribute value. Miles acquired per flight segment, usually used for earning of frequent flyer miles.

Parameters:
distance -

getCodeshareInd

public java.lang.Boolean getCodeshareInd()
Get the 'CodeshareInd' attribute value. When true, this flight is a codeshare flight.

Returns:
value

setCodeshareInd

public void setCodeshareInd(java.lang.Boolean codeshareInd)
Set the 'CodeshareInd' attribute value. When true, this flight is a codeshare flight.

Parameters:
codeshareInd -

getFlifoInd

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

Returns:
value

setFlifoInd

public void setFlifoInd(java.lang.Boolean flifoInd)
Set the 'FlifoInd' attribute value. When true, FLIFO information exists for this flight.

Parameters:
flifoInd -

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 (e.g., +1, -1).

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 (e.g., +1, -1).

Parameters:
dateChangeNbr -

getSequenceNumber

public java.lang.Integer getSequenceNumber()
Get the 'SequenceNumber' attribute value. The sequence number of this flight segment with respect to all flight segments returned in the response.

Returns:
value

setSequenceNumber

public void setSequenceNumber(java.lang.Integer sequenceNumber)
Set the 'SequenceNumber' attribute value. The sequence number of this flight segment with respect to all flight segments returned in the response.

Parameters:
sequenceNumber -