org.ota.pkg
Class PkgTravelSegment

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

public class PkgTravelSegment
extends java.lang.Object

A full definition of a travel segment including supplemental price and facilities. 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="PkgTravelSegment">
   <xs:sequence>
     <xs:element type="ns:PkgAirSegmentType" name="AirSegment"/>
   </xs:sequence>
 </xs:complexType>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PkgAirSegmentType">
   <xs:complexContent>
     <xs:extension base="ns:FlightSegmentBaseType">
       <xs:sequence>
         <xs:element type="ns:ChargesType" name="SupplementCharges" minOccurs="0" maxOccurs="2"/>
         <xs:element name="AvailableSeats" minOccurs="0">
           <!-- Reference to inner class AvailableSeats -->
         </xs:element>
         <xs:element name="Passengers" minOccurs="0">
           <!-- Reference to inner class Passengers -->
         </xs:element>
       </xs:sequence>
       <xs:attribute type="xs:dateTime" use="optional" name="CheckInDate"/>
       <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:extension>
   </xs:complexContent>
 </xs:complexType>
 


Nested Class Summary
static class PkgTravelSegment.AvailableSeats
          A collection of seat availability by class.
static class PkgTravelSegment.Passengers
          Reference Place Holders of the passengers travelling on this flight segment.
static class PkgTravelSegment.Type
          Schema fragment(s) for this class:
 
Constructor Summary
PkgTravelSegment()
           
 
Method Summary
 void addAirSegmentSupplementCharge(Charges item)
          Add a 'SupplementCharges' element item.
 void clearAirSegmentSupplementCharges()
          Remove all 'SupplementCharges' element items.
 java.util.Date getAirSegmentCheckInDate()
          Get the 'CheckInDate' attribute value.
 DayOfWeek getAirSegmentDepartureDay()
          Get the 'DepartureDay' attribute value.
 java.lang.String getAirSegmentDuration()
          Get the 'Duration' attribute value.
 FlightSegmentBase getAirSegmentFlightSegmentBase()
          Get the extension value.
 Charges getAirSegmentSupplementCharge(int index)
          Get 'SupplementCharges' element item by position.
 java.util.List<Charges> getAirSegmentSupplementCharges()
          Get the list of 'SupplementCharges' element items.
 java.lang.String getAirSegmentTravelCode()
          Get the 'TravelCode' attribute value.
 PkgTravelSegment.Type getAirSegmentType()
          Get the 'Type' attribute value.
 PkgTravelSegment.AvailableSeats getAvailableSeats()
          Get the 'AvailableSeats' element value.
 PkgTravelSegment.Passengers getPassengers()
          Get the 'Passengers' element value.
 void setAirSegmentCheckInDate(java.util.Date airSegmentCheckInDate)
          Set the 'CheckInDate' attribute value.
 void setAirSegmentDepartureDay(DayOfWeek airSegmentDepartureDay)
          Set the 'DepartureDay' attribute value.
 void setAirSegmentDuration(java.lang.String airSegmentDuration)
          Set the 'Duration' attribute value.
 void setAirSegmentFlightSegmentBase(FlightSegmentBase airSegmentFlightSegmentBase)
          Set the extension value.
 void setAirSegmentSupplementCharges(java.util.List<Charges> list)
          Set the list of 'SupplementCharges' element items.
 void setAirSegmentTravelCode(java.lang.String airSegmentTravelCode)
          Set the 'TravelCode' attribute value.
 void setAirSegmentType(PkgTravelSegment.Type airSegmentType)
          Set the 'Type' attribute value.
 void setAvailableSeats(PkgTravelSegment.AvailableSeats availableSeats)
          Set the 'AvailableSeats' element value.
 void setPassengers(PkgTravelSegment.Passengers passengers)
          Set the 'Passengers' element value.
 int sizeAirSegmentSupplementCharges()
          Get the number of 'SupplementCharges' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PkgTravelSegment

public PkgTravelSegment()
Method Detail

getAirSegmentFlightSegmentBase

public FlightSegmentBase getAirSegmentFlightSegmentBase()
Get the extension value.

Returns:
value

setAirSegmentFlightSegmentBase

public void setAirSegmentFlightSegmentBase(FlightSegmentBase airSegmentFlightSegmentBase)
Set the extension value.

Parameters:
airSegmentFlightSegmentBase -

getAirSegmentSupplementCharges

public java.util.List<Charges> getAirSegmentSupplementCharges()
Get the list of 'SupplementCharges' element items. A value representing a supplement for this journey (e.g. Aberdeen to Palma) over the cost of the journey on which package basic price is calculated (e.g. Gatwick to Palma). The element repeats to allow for charges in an alternative currency to be shown.

Returns:
list

setAirSegmentSupplementCharges

public void setAirSegmentSupplementCharges(java.util.List<Charges> list)
Set the list of 'SupplementCharges' element items. A value representing a supplement for this journey (e.g. Aberdeen to Palma) over the cost of the journey on which package basic price is calculated (e.g. Gatwick to Palma). The element repeats to allow for charges in an alternative currency to be shown.

Parameters:
list -

sizeAirSegmentSupplementCharges

public int sizeAirSegmentSupplementCharges()
Get the number of 'SupplementCharges' element items.

Returns:
count

addAirSegmentSupplementCharge

public void addAirSegmentSupplementCharge(Charges item)
Add a 'SupplementCharges' element item.

Parameters:
item -

getAirSegmentSupplementCharge

public Charges getAirSegmentSupplementCharge(int index)
Get 'SupplementCharges' element item by position.

Parameters:
index -
Returns:
item

clearAirSegmentSupplementCharges

public void clearAirSegmentSupplementCharges()
Remove all 'SupplementCharges' element items.


getAvailableSeats

public PkgTravelSegment.AvailableSeats getAvailableSeats()
Get the 'AvailableSeats' element value. Provides details of an air segment

Returns:
value

setAvailableSeats

public void setAvailableSeats(PkgTravelSegment.AvailableSeats availableSeats)
Set the 'AvailableSeats' element value. Provides details of an air segment

Parameters:
availableSeats -

getPassengers

public PkgTravelSegment.Passengers getPassengers()
Get the 'Passengers' element value. Provides details of an air segment

Returns:
value

setPassengers

public void setPassengers(PkgTravelSegment.Passengers passengers)
Set the 'Passengers' element value. Provides details of an air segment

Parameters:
passengers -

getAirSegmentCheckInDate

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

Returns:
value

setAirSegmentCheckInDate

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

Parameters:
airSegmentCheckInDate -

getAirSegmentType

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

Returns:
value

setAirSegmentType

public void setAirSegmentType(PkgTravelSegment.Type airSegmentType)
Set the 'Type' attribute value. Indicates whether the flight is a scheduled or charter service.

Parameters:
airSegmentType -

getAirSegmentDepartureDay

public DayOfWeek getAirSegmentDepartureDay()
Get the 'DepartureDay' attribute value.

Returns:
value

setAirSegmentDepartureDay

public void setAirSegmentDepartureDay(DayOfWeek airSegmentDepartureDay)
Set the 'DepartureDay' attribute value.

Parameters:
airSegmentDepartureDay -

getAirSegmentTravelCode

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

Returns:
value

setAirSegmentTravelCode

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

Parameters:
airSegmentTravelCode -

getAirSegmentDuration

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

Returns:
value

setAirSegmentDuration

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

Parameters:
airSegmentDuration -