org.ota.pkg
Class ItineraryItemResponse

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

public class ItineraryItemResponse
extends java.lang.Object

Response data for any valid item of inventory. 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="ItineraryItemResponseType">
   <xs:choice>
     <xs:element name="Accommodation">
       <!-- Reference to inner class Accommodation -->
     </xs:element>
     <xs:element type="ns:PkgFlightSegmentType" name="Flight"/>
     <xs:element name="RentalCar">
       <xs:complexType>
         <xs:complexContent>
           <xs:extension base="ns:VehicleRentalCoreType">
             <xs:attribute type="xs:string" use="optional" name="RPH"/>
             <xs:attribute type="xs:string" use="optional" name="Name"/>
             <xs:attribute type="xs:string" use="optional" name="Code"/>
           </xs:extension>
         </xs:complexContent>
       </xs:complexType>
     </xs:element>
   </xs:choice>
   <xs:attributeGroup ref="ns:PackageItemPositionGroup"/>
   <xs:attribute type="xs:string" use="optional" name="RPH"/>
 </xs:complexType>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PackageItemPositionGroup">
   <xs:attribute type="xs:string" use="optional" name="ItinerarySequence"/>
   <xs:attribute type="xs:string" use="optional" name="ChronologicalSequence"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class ItineraryItemResponse.Accommodation
          Defines an accommodation component of a package holiday.
 
Constructor Summary
ItineraryItemResponse()
           
 
Method Summary
 void clearChoiceSelect()
          Clear the choice selection.
 ItineraryItemResponse.Accommodation getAccommodation()
          Get the 'Accommodation' element value.
 java.lang.String getChronologicalSequence()
          Get the 'ChronologicalSequence' attribute value.
 PkgFlightSegment getFlight()
          Get the 'Flight' element value.
 java.lang.String getItinerarySequence()
          Get the 'ItinerarySequence' attribute value.
 java.lang.String getRentalCarCode()
          Get the 'Code' attribute value.
 java.lang.String getRentalCarName()
          Get the 'Name' attribute value.
 java.lang.String getRentalCarRPH()
          Get the 'RPH' attribute value.
 VehicleRentalCore getRentalCarVehicleRentalCore()
          Get the extension value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 boolean ifAccommodation()
          Check if Accommodation is current selection for choice.
 boolean ifFlight()
          Check if Flight is current selection for choice.
 boolean ifRentalCar()
          Check if RentalCar is current selection for choice.
 void setAccommodation(ItineraryItemResponse.Accommodation accommodation)
          Set the 'Accommodation' element value.
 void setChronologicalSequence(java.lang.String chronologicalSequence)
          Set the 'ChronologicalSequence' attribute value.
 void setFlight(PkgFlightSegment flight)
          Set the 'Flight' element value.
 void setItinerarySequence(java.lang.String itinerarySequence)
          Set the 'ItinerarySequence' attribute value.
 void setRentalCarCode(java.lang.String rentalCarCode)
          Set the 'Code' attribute value.
 void setRentalCarName(java.lang.String rentalCarName)
          Set the 'Name' attribute value.
 void setRentalCarRPH(java.lang.String rentalCarRPH)
          Set the 'RPH' attribute value.
 void setRentalCarVehicleRentalCore(VehicleRentalCore rentalCarVehicleRentalCore)
          Set the extension value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItineraryItemResponse

public ItineraryItemResponse()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifAccommodation

public boolean ifAccommodation()
Check if Accommodation is current selection for choice.

Returns:
true if selection, false if not

getAccommodation

public ItineraryItemResponse.Accommodation getAccommodation()
Get the 'Accommodation' element value.

Returns:
value

setAccommodation

public void setAccommodation(ItineraryItemResponse.Accommodation accommodation)
Set the 'Accommodation' element value.

Parameters:
accommodation -

ifFlight

public boolean ifFlight()
Check if Flight is current selection for choice.

Returns:
true if selection, false if not

getFlight

public PkgFlightSegment getFlight()
Get the 'Flight' element value. Details of a flight item required in the package

Returns:
value

setFlight

public void setFlight(PkgFlightSegment flight)
Set the 'Flight' element value. Details of a flight item required in the package

Parameters:
flight -

ifRentalCar

public boolean ifRentalCar()
Check if RentalCar is current selection for choice.

Returns:
true if selection, false if not

getRentalCarVehicleRentalCore

public VehicleRentalCore getRentalCarVehicleRentalCore()
Get the extension value.

Returns:
value

setRentalCarVehicleRentalCore

public void setRentalCarVehicleRentalCore(VehicleRentalCore rentalCarVehicleRentalCore)
Set the extension value.

Parameters:
rentalCarVehicleRentalCore -

getRentalCarRPH

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

setRentalCarRPH

public void setRentalCarRPH(java.lang.String rentalCarRPH)
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:
rentalCarRPH -

getRentalCarName

public java.lang.String getRentalCarName()
Get the 'Name' attribute value. The name or type of vehicle e.g. 'Opel Corsa or similar'.

Returns:
value

setRentalCarName

public void setRentalCarName(java.lang.String rentalCarName)
Set the 'Name' attribute value. The name or type of vehicle e.g. 'Opel Corsa or similar'.

Parameters:
rentalCarName -

getRentalCarCode

public java.lang.String getRentalCarCode()
Get the 'Code' attribute value. The supplier's code for the vehicle.

Returns:
value

setRentalCarCode

public void setRentalCarCode(java.lang.String rentalCarCode)
Set the 'Code' attribute value. The supplier's code for the vehicle.

Parameters:
rentalCarCode -

getItinerarySequence

public java.lang.String getItinerarySequence()
Get the 'ItinerarySequence' attribute value. The position of this item in the package itinerary.

Returns:
value

setItinerarySequence

public void setItinerarySequence(java.lang.String itinerarySequence)
Set the 'ItinerarySequence' attribute value. The position of this item in the package itinerary.

Parameters:
itinerarySequence -

getChronologicalSequence

public java.lang.String getChronologicalSequence()
Get the 'ChronologicalSequence' attribute value. The position of this item in the package in time sequence. Note: it is possible for more than one inventory item to have the same ChronologicalSequence value e.g. Car Hire and Hotel Stay.

Returns:
value

setChronologicalSequence

public void setChronologicalSequence(java.lang.String chronologicalSequence)
Set the 'ChronologicalSequence' attribute value. The position of this item in the package in time sequence. Note: it is possible for more than one inventory item to have the same ChronologicalSequence value e.g. Car Hire and Hotel Stay.

Parameters:
chronologicalSequence -

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 -