org.ota.pkg
Class PkgFlightSegment

java.lang.Object
  extended by org.ota.pkg.PkgFlightSegment

public class PkgFlightSegment
extends java.lang.Object

Provides details for an air segment in a response message. 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="PkgFlightSegmentType">
   <xs:complexContent>
     <xs:extension base="ns:PkgFlightSegmentBaseType">
       <xs:sequence>
         <xs:element type="ns:CabinAvailType" name="CabinAvailability" minOccurs="0" maxOccurs="5">
           <!-- Reference to inner class CabinAvailability -->
         </xs:element>
       </xs:sequence>
       <xs:attribute use="optional" name="Type">
         <xs:simpleType>
           <!-- Reference to inner class Type -->
         </xs:simpleType>
       </xs:attribute>
       <xs:attribute type="ns:DayOfWeekType" use="optional" name="DepartureDay"/>
       <xs:attribute type="xs:string" use="optional" name="TravelCode"/>
       <xs:attribute type="xs:string" use="optional" name="Duration"/>
       <xs:attribute type="ns:AirTripType" use="optional" name="DirectionInd"/>
       <xs:attribute type="xs:dateTime" use="optional" name="CheckInDate"/>
       <xs:attribute type="xs:string" use="optional" name="CheckInDesk"/>
       <xs:attribute type="xs:boolean" use="optional" name="TOD_Indicator"/>
       <xs:attribute type="ns:TicketType" use="optional" name="TicketType"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PkgFlightSegmentBaseType">
   <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:OperatingAirlineType" name="OperatingAirline" minOccurs="0"/>
     <xs:element type="ns:EquipmentType" name="Equipment" minOccurs="0" maxOccurs="2"/>
   </xs:sequence>
   <xs:attribute type="xs:dateTime" use="optional" name="DepartureDateTime"/>
   <xs:attribute type="xs:dateTime" use="optional" name="ArrivalDateTime"/>
   <xs:attribute type="xs:int" use="optional" name="StopQuantity"/>
   <xs:attribute type="xs:string" name="RPH"/>
   <xs:attribute type="xs:string" use="optional" name="InfoSource"/>
 </xs:complexType>
 


Nested Class Summary
static class PkgFlightSegment.CabinAvailability
          Identifies a section of an aircraft, possibly providing extra services.
static class PkgFlightSegment.Type
          Schema fragment(s) for this class:
 
Constructor Summary
PkgFlightSegment()
           
 
Method Summary
 void addCabinAvailability(PkgFlightSegment.CabinAvailability item)
          Add a 'CabinAvailability' element item.
 void addEquipment(Equipment item)
          Add a 'Equipment' element item.
 void clearCabinAvailabilities()
          Remove all 'CabinAvailability' element items.
 void clearEquipments()
          Remove all 'Equipment' element items.
 AirportLocationGroup getArrivalAirport()
          Get the 'AirportLocationGroup' attributeGroup value.
 java.util.Date getArrivalDateTime()
          Get the 'ArrivalDateTime' attribute value.
 java.util.List<PkgFlightSegment.CabinAvailability> getCabinAvailabilities()
          Get the list of 'CabinAvailability' element items.
 PkgFlightSegment.CabinAvailability getCabinAvailability(int index)
          Get 'CabinAvailability' element item by position.
 java.util.Date getCheckInDate()
          Get the 'CheckInDate' attribute value.
 java.lang.String getCheckInDesk()
          Get the 'CheckInDesk' attribute value.
 AirportLocationGroup getDepartureAirport()
          Get the 'AirportLocationGroup' attributeGroup value.
 java.util.Date getDepartureDateTime()
          Get the 'DepartureDateTime' attribute value.
 DayOfWeek getDepartureDay()
          Get the 'DepartureDay' attribute value.
 AirTrip getDirectionInd()
          Get the 'DirectionInd' attribute value.
 java.lang.String getDuration()
          Get the 'Duration' attribute value.
 Equipment getEquipment(int index)
          Get 'Equipment' element item by position.
 java.util.List<Equipment> getEquipments()
          Get the list of 'Equipment' element items.
 java.lang.String getInfoSource()
          Get the 'InfoSource' attribute value.
 OperatingAirline getOperatingAirline()
          Get the 'OperatingAirline' element value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 java.lang.Integer getStopQuantity()
          Get the 'StopQuantity' attribute value.
 Ticket getTicket()
          Get the 'TicketType' attribute value.
 java.lang.Boolean getTODIndicator()
          Get the 'TOD_Indicator' attribute value.
 java.lang.String getTravelCode()
          Get the 'TravelCode' attribute value.
 PkgFlightSegment.Type getType()
          Get the 'Type' attribute value.
 void setArrivalAirport(AirportLocationGroup arrivalAirport)
          Set the 'AirportLocationGroup' attributeGroup value.
 void setArrivalDateTime(java.util.Date arrivalDateTime)
          Set the 'ArrivalDateTime' attribute value.
 void setCabinAvailabilities(java.util.List<PkgFlightSegment.CabinAvailability> list)
          Set the list of 'CabinAvailability' element items.
 void setCheckInDate(java.util.Date checkInDate)
          Set the 'CheckInDate' attribute value.
 void setCheckInDesk(java.lang.String checkInDesk)
          Set the 'CheckInDesk' attribute value.
 void setDepartureAirport(AirportLocationGroup departureAirport)
          Set the 'AirportLocationGroup' attributeGroup value.
 void setDepartureDateTime(java.util.Date departureDateTime)
          Set the 'DepartureDateTime' attribute value.
 void setDepartureDay(DayOfWeek departureDay)
          Set the 'DepartureDay' attribute value.
 void setDirectionInd(AirTrip directionInd)
          Set the 'DirectionInd' attribute value.
 void setDuration(java.lang.String duration)
          Set the 'Duration' attribute value.
 void setEquipments(java.util.List<Equipment> list)
          Set the list of 'Equipment' element items.
 void setInfoSource(java.lang.String infoSource)
          Set the 'InfoSource' attribute value.
 void setOperatingAirline(OperatingAirline operatingAirline)
          Set the 'OperatingAirline' element value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setStopQuantity(java.lang.Integer stopQuantity)
          Set the 'StopQuantity' attribute value.
 void setTicket(Ticket ticket)
          Set the 'TicketType' attribute value.
 void setTODIndicator(java.lang.Boolean TODIndicator)
          Set the 'TOD_Indicator' attribute value.
 void setTravelCode(java.lang.String travelCode)
          Set the 'TravelCode' attribute value.
 void setType(PkgFlightSegment.Type type)
          Set the 'Type' attribute value.
 int sizeCabinAvailabilities()
          Get the number of 'CabinAvailability' element items.
 int sizeEquipments()
          Get the number of 'Equipment' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PkgFlightSegment

public PkgFlightSegment()
Method Detail

getDepartureAirport

public AirportLocationGroup getDepartureAirport()
Get the 'AirportLocationGroup' attributeGroup value. Departure point of flight segment.

Returns:
value

setDepartureAirport

public void setDepartureAirport(AirportLocationGroup departureAirport)
Set the 'AirportLocationGroup' attributeGroup value. Departure point of flight segment.

Parameters:
departureAirport -

getArrivalAirport

public AirportLocationGroup getArrivalAirport()
Get the 'AirportLocationGroup' attributeGroup value. Arrival point of flight segment.

Returns:
value

setArrivalAirport

public void setArrivalAirport(AirportLocationGroup arrivalAirport)
Set the 'AirportLocationGroup' attributeGroup value. Arrival point of flight segment.

Parameters:
arrivalAirport -

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 -

getEquipments

public java.util.List<Equipment> getEquipments()
Get the list of 'Equipment' element items. The type of equipment used for the flight..

Returns:
list

setEquipments

public void setEquipments(java.util.List<Equipment> list)
Set the list of 'Equipment' element items. The type of equipment used for the flight..

Parameters:
list -

sizeEquipments

public int sizeEquipments()
Get the number of 'Equipment' element items.

Returns:
count

addEquipment

public void addEquipment(Equipment item)
Add a 'Equipment' element item.

Parameters:
item -

getEquipment

public Equipment getEquipment(int index)
Get 'Equipment' element item by position.

Parameters:
index -
Returns:
item

clearEquipments

public void clearEquipments()
Remove all 'Equipment' element items.


getDepartureDateTime

public java.util.Date getDepartureDateTime()
Get the 'DepartureDateTime' attribute value. Specifies the date and time of a flight departure.

Returns:
value

setDepartureDateTime

public void setDepartureDateTime(java.util.Date departureDateTime)
Set the 'DepartureDateTime' attribute value. Specifies the date and time of a flight departure.

Parameters:
departureDateTime -

getArrivalDateTime

public java.util.Date getArrivalDateTime()
Get the 'ArrivalDateTime' attribute value. Specifies the date and time of a flight arrival.

Returns:
value

setArrivalDateTime

public void setArrivalDateTime(java.util.Date arrivalDateTime)
Set the 'ArrivalDateTime' attribute value. Specifies the date and time of a flight arrival.

Parameters:
arrivalDateTime -

getStopQuantity

public java.lang.Integer getStopQuantity()
Get the 'StopQuantity' attribute value. The number of stops the flight makes

Returns:
value

setStopQuantity

public void setStopQuantity(java.lang.Integer stopQuantity)
Set the 'StopQuantity' attribute value. The number of stops the flight makes

Parameters:
stopQuantity -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. (Reference Place Holder) - an index code to identify an instance in a collection of like items.. For example, used to assign individual passengers or clients to particular itinerary items.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. (Reference Place Holder) - an index code to identify an instance in a collection of like items.. For example, used to assign individual passengers or clients to particular itinerary items.

Parameters:
RPH -

getInfoSource

public java.lang.String getInfoSource()
Get the 'InfoSource' attribute value. Used to specify the source of the data being exchanged as determined by trading partners.

Returns:
value

setInfoSource

public void setInfoSource(java.lang.String infoSource)
Set the 'InfoSource' attribute value. Used to specify the source of the data being exchanged as determined by trading partners.

Parameters:
infoSource -

getCabinAvailabilities

public java.util.List<PkgFlightSegment.CabinAvailability> getCabinAvailabilities()
Get the list of 'CabinAvailability' element items.

Returns:
list

setCabinAvailabilities

public void setCabinAvailabilities(java.util.List<PkgFlightSegment.CabinAvailability> list)
Set the list of 'CabinAvailability' element items.

Parameters:
list -

sizeCabinAvailabilities

public int sizeCabinAvailabilities()
Get the number of 'CabinAvailability' element items.

Returns:
count

addCabinAvailability

public void addCabinAvailability(PkgFlightSegment.CabinAvailability item)
Add a 'CabinAvailability' element item.

Parameters:
item -

getCabinAvailability

public PkgFlightSegment.CabinAvailability getCabinAvailability(int index)
Get 'CabinAvailability' element item by position.

Parameters:
index -
Returns:
item

clearCabinAvailabilities

public void clearCabinAvailabilities()
Remove all 'CabinAvailability' element items.


getType

public PkgFlightSegment.Type getType()
Get the 'Type' attribute value. Indicates whether the flight is a scheduled or charter service.

Returns:
value

setType

public void setType(PkgFlightSegment.Type type)
Set the 'Type' attribute value. Indicates whether the flight is a scheduled or charter service.

Parameters:
type -

getDepartureDay

public DayOfWeek getDepartureDay()
Get the 'DepartureDay' attribute value. Specifies the day on which the flight departs.

Returns:
value

setDepartureDay

public void setDepartureDay(DayOfWeek departureDay)
Set the 'DepartureDay' attribute value. Specifies the day on which the flight departs.

Parameters:
departureDay -

getTravelCode

public java.lang.String getTravelCode()
Get the 'TravelCode' attribute value. The supplier's code to identify the travel arrangement for the package

Returns:
value

setTravelCode

public void setTravelCode(java.lang.String travelCode)
Set the 'TravelCode' attribute value. The supplier's code to identify the travel arrangement for the package

Parameters:
travelCode -

getDuration

public java.lang.String getDuration()
Get the 'Duration' attribute value. A length of time.

Returns:
value

setDuration

public void setDuration(java.lang.String duration)
Set the 'Duration' attribute value. A length of time.

Parameters:
duration -

getDirectionInd

public AirTrip getDirectionInd()
Get the 'DirectionInd' attribute value. Identifies whether travel is: one way, return trip, circle trip, open jaw, other

Returns:
value

setDirectionInd

public void setDirectionInd(AirTrip directionInd)
Set the 'DirectionInd' attribute value. Identifies whether travel is: one way, return trip, circle trip, open jaw, other

Parameters:
directionInd -

getCheckInDate

public java.util.Date getCheckInDate()
Get the 'CheckInDate' attribute value. Provides the recommended date and time of passenger check-in.

Returns:
value

setCheckInDate

public void setCheckInDate(java.util.Date checkInDate)
Set the 'CheckInDate' attribute value. Provides the recommended date and time of passenger check-in.

Parameters:
checkInDate -

getCheckInDesk

public java.lang.String getCheckInDesk()
Get the 'CheckInDesk' attribute value. Identifies the desk or desks at which the customer will check-in and optionally the handling company operating the check-in service.

Returns:
value

setCheckInDesk

public void setCheckInDesk(java.lang.String checkInDesk)
Set the 'CheckInDesk' attribute value. Identifies the desk or desks at which the customer will check-in and optionally the handling company operating the check-in service.

Parameters:
checkInDesk -

getTODIndicator

public java.lang.Boolean getTODIndicator()
Get the 'TOD_Indicator' attribute value. When 'true', the ticket(s) must be picked up at the airport, usually on the date of departure. When 'false', the tickets will be delivered according to the normal fulfilment arrangements e.g. by post or as an e-ticket.

Returns:
value

setTODIndicator

public void setTODIndicator(java.lang.Boolean TODIndicator)
Set the 'TOD_Indicator' attribute value. When 'true', the ticket(s) must be picked up at the airport, usually on the date of departure. When 'false', the tickets will be delivered according to the normal fulfilment arrangements e.g. by post or as an e-ticket.

Parameters:
TODIndicator -

getTicket

public Ticket getTicket()
Get the 'TicketType' attribute value. Paper or e-ticket

Returns:
value

setTicket

public void setTicket(Ticket ticket)
Set the 'TicketType' attribute value. Paper or e-ticket

Parameters:
ticket -