org.ota.itin
Class TravelSegment

java.lang.Object
  extended by org.ota.itin.TravelSegment
Direct Known Subclasses:
ReservationItems.Item

public class TravelSegment
extends java.lang.Object

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="TravelSegmentType">
   <xs:choice>
     <xs:element name="Air">
       <xs:complexType>
         <xs:choice>
           <xs:element name="Reservation">
             <xs:complexType>
               <xs:complexContent>
                 <xs:extension base="ns:BookFlightSegmentType">
                   <xs:sequence>
                     <xs:element name="Seats" minOccurs="0">
                       <!-- Reference to inner class Seats -->
                     </xs:element>
                     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="OrginDestType">
                     <xs:simpleType>
                       <!-- Reference to inner class OrginDest -->
                     </xs:simpleType>
                   </xs:attribute>
                 </xs:extension>
               </xs:complexContent>
             </xs:complexType>
           </xs:element>
           <xs:element type="ns:AirReservationType" name="DetailedReservation"/>
         </xs:choice>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:VehicleSegmentCoreType" name="Vehicle"/>
     <xs:element name="Hotel">
       <xs:complexType>
         <xs:sequence>
           <xs:choice>
             <xs:element type="ns:RoomStayLiteType" name="Reservation">
               <!-- Reference to inner class Reservation -->
             </xs:element>
             <xs:element type="ns:HotelReservationType" name="DetailedReservation"/>
           </xs:choice>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element name="Rail">
       <xs:complexType>
         <xs:sequence>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element name="Cruise">
       <xs:complexType>
         <xs:sequence>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element name="Tour">
       <xs:complexType>
         <xs:sequence>
           <xs:element type="ns:FreeTextType" name="Description"/>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute type="xs:string" name="ID_Type"/>
         <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="General">
       <xs:complexType>
         <xs:sequence>
           <xs:element type="ns:FreeTextType" name="Description"/>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute name="Type">
           <xs:simpleType>
             <!-- Reference to inner class Type -->
           </xs:simpleType>
         </xs:attribute>
         <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Package">
       <!-- Reference to inner class _package -->
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:choice>
   <xs:attribute type="xs:string" name="RPH"/>
   <xs:attribute type="xs:string" name="Status"/>
 </xs:complexType>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Nested Class Summary
static class TravelSegment._package
          Package reservation information.
static class TravelSegment.OrginDest
          Schema fragment(s) for this class:
static class TravelSegment.Reservation
          Hotel reservation information.
static class TravelSegment.Seats
          All seat information.
static class TravelSegment.Type
          Schema fragment(s) for this class:
 
Constructor Summary
TravelSegment()
           
 
Method Summary
 void clearAirSelect()
          Clear the choice selection.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearHotelChoiceSelect()
          Clear the choice selection.
 AirReservation getAirDetailedReservation()
          Get the 'DetailedReservation' element value.
 BookFlightSegment getAirReservationBookFlightSegment()
          Get the extension value.
 TravelSegment.OrginDest getAirReservationOrginDest()
          Get the 'OrginDestType' attribute value.
 TPAExtensions getAirReservationTPAExtensions()
          Get the 'TPA_Extensions' element value.
 DateTimeSpanGroup getGeneralDateTimeSpanGroup()
          Get the 'DateTimeSpanGroup' attributeGroup value.
 FreeText getGeneralDescription()
          Get the 'Description' element value.
 TPAExtensions getGeneralTPAExtensions()
          Get the 'TPA_Extensions' element value.
 TravelSegment.Type getGeneralType()
          Get the 'Type' attribute value.
 HotelReservation getHotelDetailedReservation()
          Get the 'DetailedReservation' element value.
 TPAExtensions getHotelTPAExtensions()
          Get the 'TPA_Extensions' element value.
 TravelSegment._package getPackage1()
          Get the 'Package' element value.
 TravelSegment.Reservation getReservation()
          Get the 'Reservation' element value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 TravelSegment.Seats getSeats()
          Get the 'Seats' element value.
 java.lang.String getStatus()
          Get the 'Status' attribute value.
 DateTimeSpanGroup getTourDateTimeSpanGroup()
          Get the 'DateTimeSpanGroup' attributeGroup value.
 FreeText getTourDescription()
          Get the 'Description' element value.
 java.lang.String getTourID()
          Get the 'ID_Type' attribute value.
 TPAExtensions getTourTPAExtensions()
          Get the 'TPA_Extensions' element value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 TPAExtensions getTPAExtensions1()
          Get the 'TPA_Extensions' element value.
 TPAExtensions getTPAExtensions2()
          Get the 'TPA_Extensions' element value.
 VehicleSegmentCore getVehicle()
          Get the 'Vehicle' element value.
 boolean ifAirDetailedReservation()
          Check if AirDetailedReservation is current selection for choice.
 boolean ifAirReservation()
          Check if AirReservation is current selection for choice.
 boolean ifAirSelect()
          Check if AirSelect is current selection for choice.
 boolean ifCruise()
          Check if Cruise is current selection for choice.
 boolean ifGeneral()
          Check if General is current selection for choice.
 boolean ifHotel()
          Check if Hotel is current selection for choice.
 boolean ifHotelDetailedReservation()
          Check if HotelDetailedReservation is current selection for choice.
 boolean ifPackage()
          Check if Package1 is current selection for choice.
 boolean ifRail()
          Check if Rail is current selection for choice.
 boolean ifReservation()
          Check if Reservation is current selection for choice.
 boolean ifTour()
          Check if Tour is current selection for choice.
 boolean ifTPAExtensions2()
          Check if TPAExtensions2 is current selection for choice.
 boolean ifVehicle()
          Check if Vehicle is current selection for choice.
 void setAirDetailedReservation(AirReservation airDetailedReservation)
          Set the 'DetailedReservation' element value.
 void setAirReservationBookFlightSegment(BookFlightSegment airReservationBookFlightSegment)
          Set the extension value.
 void setAirReservationOrginDest(TravelSegment.OrginDest airReservationOrginDest)
          Set the 'OrginDestType' attribute value.
 void setAirReservationTPAExtensions(TPAExtensions airReservationTPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setGeneralDateTimeSpanGroup(DateTimeSpanGroup generalDateTimeSpanGroup)
          Set the 'DateTimeSpanGroup' attributeGroup value.
 void setGeneralDescription(FreeText generalDescription)
          Set the 'Description' element value.
 void setGeneralTPAExtensions(TPAExtensions generalTPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setGeneralType(TravelSegment.Type generalType)
          Set the 'Type' attribute value.
 void setHotelDetailedReservation(HotelReservation hotelDetailedReservation)
          Set the 'DetailedReservation' element value.
 void setHotelTPAExtensions(TPAExtensions hotelTPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setPackage1(TravelSegment._package _package1)
          Set the 'Package' element value.
 void setReservation(TravelSegment.Reservation reservation)
          Set the 'Reservation' element value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setSeats(TravelSegment.Seats seats)
          Set the 'Seats' element value.
 void setStatus(java.lang.String status)
          Set the 'Status' attribute value.
 void setTourDateTimeSpanGroup(DateTimeSpanGroup tourDateTimeSpanGroup)
          Set the 'DateTimeSpanGroup' attributeGroup value.
 void setTourDescription(FreeText tourDescription)
          Set the 'Description' element value.
 void setTourID(java.lang.String tourID)
          Set the 'ID_Type' attribute value.
 void setTourTPAExtensions(TPAExtensions tourTPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setTPAExtensions1(TPAExtensions TPAExtensions1)
          Set the 'TPA_Extensions' element value.
 void setTPAExtensions2(TPAExtensions TPAExtensions2)
          Set the 'TPA_Extensions' element value.
 void setVehicle(VehicleSegmentCore vehicle)
          Set the 'Vehicle' element value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TravelSegment

public TravelSegment()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifAirSelect

public boolean ifAirSelect()
Check if AirSelect is current selection for choice.

Returns:
true if selection, false if not

clearAirSelect

public void clearAirSelect()
Clear the choice selection.


ifAirReservation

public boolean ifAirReservation()
Check if AirReservation is current selection for choice.

Returns:
true if selection, false if not

getAirReservationBookFlightSegment

public BookFlightSegment getAirReservationBookFlightSegment()
Get the extension value.

Returns:
value

setAirReservationBookFlightSegment

public void setAirReservationBookFlightSegment(BookFlightSegment airReservationBookFlightSegment)
Set the extension value.

Parameters:
airReservationBookFlightSegment -

getSeats

public TravelSegment.Seats getSeats()
Get the 'Seats' element value. Flight reservation information.

Returns:
value

setSeats

public void setSeats(TravelSegment.Seats seats)
Set the 'Seats' element value. Flight reservation information.

Parameters:
seats -

getAirReservationTPAExtensions

public TPAExtensions getAirReservationTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setAirReservationTPAExtensions

public void setAirReservationTPAExtensions(TPAExtensions airReservationTPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
airReservationTPAExtensions -

getAirReservationOrginDest

public TravelSegment.OrginDest getAirReservationOrginDest()
Get the 'OrginDestType' attribute value. Intermediate and last segments contain the RPH of the first segment for an Origin and Destination set.

Returns:
value

setAirReservationOrginDest

public void setAirReservationOrginDest(TravelSegment.OrginDest airReservationOrginDest)
Set the 'OrginDestType' attribute value. Intermediate and last segments contain the RPH of the first segment for an Origin and Destination set.

Parameters:
airReservationOrginDest -

ifAirDetailedReservation

public boolean ifAirDetailedReservation()
Check if AirDetailedReservation is current selection for choice.

Returns:
true if selection, false if not

getAirDetailedReservation

public AirReservation getAirDetailedReservation()
Get the 'DetailedReservation' element value. Detailed flight reservation information identical to that returned in the OTA air book response message.

Returns:
value

setAirDetailedReservation

public void setAirDetailedReservation(AirReservation airDetailedReservation)
Set the 'DetailedReservation' element value. Detailed flight reservation information identical to that returned in the OTA air book response message.

Parameters:
airDetailedReservation -

ifVehicle

public boolean ifVehicle()
Check if Vehicle is current selection for choice.

Returns:
true if selection, false if not

getVehicle

public VehicleSegmentCore getVehicle()
Get the 'Vehicle' element value. Vehicle rental information.

Returns:
value

setVehicle

public void setVehicle(VehicleSegmentCore vehicle)
Set the 'Vehicle' element value. Vehicle rental information.

Parameters:
vehicle -

ifHotel

public boolean ifHotel()
Check if Hotel is current selection for choice.

Returns:
true if selection, false if not

clearHotelChoiceSelect

public void clearHotelChoiceSelect()
Clear the choice selection.


ifReservation

public boolean ifReservation()
Check if Reservation is current selection for choice.

Returns:
true if selection, false if not

getReservation

public TravelSegment.Reservation getReservation()
Get the 'Reservation' element value.

Returns:
value

setReservation

public void setReservation(TravelSegment.Reservation reservation)
Set the 'Reservation' element value.

Parameters:
reservation -

ifHotelDetailedReservation

public boolean ifHotelDetailedReservation()
Check if HotelDetailedReservation is current selection for choice.

Returns:
true if selection, false if not

getHotelDetailedReservation

public HotelReservation getHotelDetailedReservation()
Get the 'DetailedReservation' element value. Detailed hotel reservation information.

Returns:
value

setHotelDetailedReservation

public void setHotelDetailedReservation(HotelReservation hotelDetailedReservation)
Set the 'DetailedReservation' element value. Detailed hotel reservation information.

Parameters:
hotelDetailedReservation -

getHotelTPAExtensions

public TPAExtensions getHotelTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setHotelTPAExtensions

public void setHotelTPAExtensions(TPAExtensions hotelTPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
hotelTPAExtensions -

ifRail

public boolean ifRail()
Check if Rail is current selection for choice.

Returns:
true if selection, false if not

getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -

ifCruise

public boolean ifCruise()
Check if Cruise is current selection for choice.

Returns:
true if selection, false if not

getTPAExtensions1

public TPAExtensions getTPAExtensions1()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions1

public void setTPAExtensions1(TPAExtensions TPAExtensions1)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions1 -

ifTour

public boolean ifTour()
Check if Tour is current selection for choice.

Returns:
true if selection, false if not

getTourDescription

public FreeText getTourDescription()
Get the 'Description' element value.

Returns:
value

setTourDescription

public void setTourDescription(FreeText tourDescription)
Set the 'Description' element value.

Parameters:
tourDescription -

getTourTPAExtensions

public TPAExtensions getTourTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTourTPAExtensions

public void setTourTPAExtensions(TPAExtensions tourTPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
tourTPAExtensions -

getTourID

public java.lang.String getTourID()
Get the 'ID_Type' attribute value. The Start date and time of this General activity.

Returns:
value

setTourID

public void setTourID(java.lang.String tourID)
Set the 'ID_Type' attribute value. The Start date and time of this General activity.

Parameters:
tourID -

getTourDateTimeSpanGroup

public DateTimeSpanGroup getTourDateTimeSpanGroup()
Get the 'DateTimeSpanGroup' attributeGroup value.

Returns:
value

setTourDateTimeSpanGroup

public void setTourDateTimeSpanGroup(DateTimeSpanGroup tourDateTimeSpanGroup)
Set the 'DateTimeSpanGroup' attributeGroup value.

Parameters:
tourDateTimeSpanGroup -

ifGeneral

public boolean ifGeneral()
Check if General is current selection for choice.

Returns:
true if selection, false if not

getGeneralDescription

public FreeText getGeneralDescription()
Get the 'Description' element value.

Returns:
value

setGeneralDescription

public void setGeneralDescription(FreeText generalDescription)
Set the 'Description' element value.

Parameters:
generalDescription -

getGeneralTPAExtensions

public TPAExtensions getGeneralTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setGeneralTPAExtensions

public void setGeneralTPAExtensions(TPAExtensions generalTPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
generalTPAExtensions -

getGeneralType

public TravelSegment.Type getGeneralType()
Get the 'Type' attribute value. The Start date and time of this General activity.

Returns:
value

setGeneralType

public void setGeneralType(TravelSegment.Type generalType)
Set the 'Type' attribute value. The Start date and time of this General activity.

Parameters:
generalType -

getGeneralDateTimeSpanGroup

public DateTimeSpanGroup getGeneralDateTimeSpanGroup()
Get the 'DateTimeSpanGroup' attributeGroup value.

Returns:
value

setGeneralDateTimeSpanGroup

public void setGeneralDateTimeSpanGroup(DateTimeSpanGroup generalDateTimeSpanGroup)
Set the 'DateTimeSpanGroup' attributeGroup value.

Parameters:
generalDateTimeSpanGroup -

ifPackage

public boolean ifPackage()
Check if Package1 is current selection for choice.

Returns:
true if selection, false if not

getPackage1

public TravelSegment._package getPackage1()
Get the 'Package' element value.

Returns:
value

setPackage1

public void setPackage1(TravelSegment._package _package1)
Set the 'Package' element value.

Parameters:
_package1 -

ifTPAExtensions2

public boolean ifTPAExtensions2()
Check if TPAExtensions2 is current selection for choice.

Returns:
true if selection, false if not

getTPAExtensions2

public TPAExtensions getTPAExtensions2()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions2

public void setTPAExtensions2(TPAExtensions TPAExtensions2)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions2 -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. Reference to this reservation item.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. Reference to this reservation item.

Parameters:
RPH -

getStatus

public java.lang.String getStatus()
Get the 'Status' attribute value. Status of the current itinerary item (e.g. confirmed, pending, waitlisted). Refer to OpenTravel Code List Status (STS).

Returns:
value

setStatus

public void setStatus(java.lang.String status)
Set the 'Status' attribute value. Status of the current itinerary item (e.g. confirmed, pending, waitlisted). Refer to OpenTravel Code List Status (STS).

Parameters:
status -