org.ota.vehicle
Class VehicleSegmentCore

java.lang.Object
  extended by org.ota.vehicle.VehicleSegmentCore

public class VehicleSegmentCore
extends java.lang.Object

The VehicleSegmentCoreType complex type identifies the core, or common, data that descibes the information assocated with a vehicle segment. Such information is typically provided in a reservation. 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="VehicleSegmentCoreType">
   <xs:sequence>
     <xs:element name="ConfID" maxOccurs="4">
       <!-- Reference to inner class ConfID -->
     </xs:element>
     <xs:element type="ns:CompanyNameType" name="Vendor" minOccurs="0"/>
     <xs:element type="ns:VehicleRentalCoreType" name="VehRentalCore" minOccurs="0"/>
     <xs:element type="ns:VehicleType" name="Vehicle" minOccurs="0"/>
     <xs:element type="ns:VehicleRentalRateType" name="RentalRate" minOccurs="0"/>
     <xs:element name="PricedEquips" minOccurs="0">
       <!-- Reference to inner class PricedEquips -->
     </xs:element>
     <xs:element name="Fees" minOccurs="0">
       <!-- Reference to inner class Fees -->
     </xs:element>
     <xs:element name="TotalCharge" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:VehicleTotalChargeGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:int" use="optional" name="IndexNumber"/>
 </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 VehicleSegmentCore.ConfID
          A confirmation number by which this reservation can be uniquely identified.
static class VehicleSegmentCore.Fees
          A collection of fees associated with this vehicle reservation.
static class VehicleSegmentCore.PricedEquips
          A collection of special equipment that is part of this reservation, along with the charges associated with this equipment.
 
Constructor Summary
VehicleSegmentCore()
           
 
Method Summary
 void addConfID(VehicleSegmentCore.ConfID item)
          Add a 'ConfID' element item.
 void clearConfIDs()
          Remove all 'ConfID' element items.
 VehicleSegmentCore.ConfID getConfID(int index)
          Get 'ConfID' element item by position.
 java.util.List<VehicleSegmentCore.ConfID> getConfIDs()
          Get the list of 'ConfID' element items.
 VehicleSegmentCore.Fees getFees()
          Get the 'Fees' element value.
 java.lang.Integer getIndexNumber()
          Get the 'IndexNumber' attribute value.
 VehicleSegmentCore.PricedEquips getPricedEquips()
          Get the 'PricedEquips' element value.
 VehicleRentalRate getRentalRate()
          Get the 'RentalRate' element value.
 VehicleTotalChargeGroup getTotalCharge()
          Get the 'VehicleTotalChargeGroup' attributeGroup value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 Vehicle getVehicle()
          Get the 'Vehicle' element value.
 VehicleRentalCore getVehRentalCore()
          Get the 'VehRentalCore' element value.
 CompanyName getVendor()
          Get the 'Vendor' element value.
 void setConfIDs(java.util.List<VehicleSegmentCore.ConfID> list)
          Set the list of 'ConfID' element items.
 void setFees(VehicleSegmentCore.Fees fees)
          Set the 'Fees' element value.
 void setIndexNumber(java.lang.Integer indexNumber)
          Set the 'IndexNumber' attribute value.
 void setPricedEquips(VehicleSegmentCore.PricedEquips pricedEquips)
          Set the 'PricedEquips' element value.
 void setRentalRate(VehicleRentalRate rentalRate)
          Set the 'RentalRate' element value.
 void setTotalCharge(VehicleTotalChargeGroup totalCharge)
          Set the 'VehicleTotalChargeGroup' attributeGroup value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setVehicle(Vehicle vehicle)
          Set the 'Vehicle' element value.
 void setVehRentalCore(VehicleRentalCore vehRentalCore)
          Set the 'VehRentalCore' element value.
 void setVendor(CompanyName vendor)
          Set the 'Vendor' element value.
 int sizeConfIDs()
          Get the number of 'ConfID' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleSegmentCore

public VehicleSegmentCore()
Method Detail

getConfIDs

public java.util.List<VehicleSegmentCore.ConfID> getConfIDs()
Get the list of 'ConfID' element items.

Returns:
list

setConfIDs

public void setConfIDs(java.util.List<VehicleSegmentCore.ConfID> list)
Set the list of 'ConfID' element items.

Parameters:
list -

sizeConfIDs

public int sizeConfIDs()
Get the number of 'ConfID' element items.

Returns:
count

addConfID

public void addConfID(VehicleSegmentCore.ConfID item)
Add a 'ConfID' element item.

Parameters:
item -

getConfID

public VehicleSegmentCore.ConfID getConfID(int index)
Get 'ConfID' element item by position.

Parameters:
index -
Returns:
item

clearConfIDs

public void clearConfIDs()
Remove all 'ConfID' element items.


getVendor

public CompanyName getVendor()
Get the 'Vendor' element value. Identifies the vendor associated with this information.

Returns:
value

setVendor

public void setVendor(CompanyName vendor)
Set the 'Vendor' element value. Identifies the vendor associated with this information.

Parameters:
vendor -

getVehRentalCore

public VehicleRentalCore getVehRentalCore()
Get the 'VehRentalCore' element value. Information that is common, or core, to all requests and responses associated with the reservation of a vehicle.

Returns:
value

setVehRentalCore

public void setVehRentalCore(VehicleRentalCore vehRentalCore)
Set the 'VehRentalCore' element value. Information that is common, or core, to all requests and responses associated with the reservation of a vehicle.

Parameters:
vehRentalCore -

getVehicle

public Vehicle getVehicle()
Get the 'Vehicle' element value. Information on one specific vehicle along with detailed information on the charges associated with this vehicle.

Returns:
value

setVehicle

public void setVehicle(Vehicle vehicle)
Set the 'Vehicle' element value. Information on one specific vehicle along with detailed information on the charges associated with this vehicle.

Parameters:
vehicle -

getRentalRate

public VehicleRentalRate getRentalRate()
Get the 'RentalRate' element value. Information on the rates associated with this vehicle. Rate information can include the distance and the base rental cost, along with information on the various factors that may infuence this rate.

Returns:
value

setRentalRate

public void setRentalRate(VehicleRentalRate rentalRate)
Set the 'RentalRate' element value. Information on the rates associated with this vehicle. Rate information can include the distance and the base rental cost, along with information on the various factors that may infuence this rate.

Parameters:
rentalRate -

getPricedEquips

public VehicleSegmentCore.PricedEquips getPricedEquips()
Get the 'PricedEquips' element value.

Returns:
value

setPricedEquips

public void setPricedEquips(VehicleSegmentCore.PricedEquips pricedEquips)
Set the 'PricedEquips' element value.

Parameters:
pricedEquips -

getFees

public VehicleSegmentCore.Fees getFees()
Get the 'Fees' element value.

Returns:
value

setFees

public void setFees(VehicleSegmentCore.Fees fees)
Set the 'Fees' element value.

Parameters:
fees -

getTotalCharge

public VehicleTotalChargeGroup getTotalCharge()
Get the 'VehicleTotalChargeGroup' attributeGroup value. The total cost of this reservation, the sum of the individual charges, optional charges and associated fees.

Returns:
value

setTotalCharge

public void setTotalCharge(VehicleTotalChargeGroup totalCharge)
Set the 'VehicleTotalChargeGroup' attributeGroup value. The total cost of this reservation, the sum of the individual charges, optional charges and associated fees.

Parameters:
totalCharge -

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 -

getIndexNumber

public java.lang.Integer getIndexNumber()
Get the 'IndexNumber' attribute value. A unique number (e.g., segment number or index number) used to further identify a booked item within a list of booked items in a multi-segment PNR. Typically not used in messages to car suppliers.

Returns:
value

setIndexNumber

public void setIndexNumber(java.lang.Integer indexNumber)
Set the 'IndexNumber' attribute value. A unique number (e.g., segment number or index number) used to further identify a booked item within a list of booked items in a multi-segment PNR. Typically not used in messages to car suppliers.

Parameters:
indexNumber -