org.ota.vehicle
Class RateRuleRS

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

public class RateRuleRS
extends java.lang.Object

The OTA_VehRateRuleRS provides details regarding a previously quoted rate or a reservation that is already confirmed. Schema fragment(s) for this class:

 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OTA_VehRateRuleRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
         <xs:element name="VehRentalCore" minOccurs="0">
           <!-- Reference to inner class VehRentalCore -->
         </xs:element>
         <xs:element name="Vehicle" minOccurs="0">
           <!-- Reference to inner class Vehicle -->
         </xs:element>
         <xs:element name="RentalRate" minOccurs="0" maxOccurs="5">
           <!-- Reference to inner class RentalRate -->
         </xs:element>
         <xs:element name="TotalCharge" minOccurs="0">
           <xs:complexType>
             <xs:attributeGroup ref="ns:VehicleTotalChargeGroup"/>
           </xs:complexType>
         </xs:element>
         <xs:element name="RateRules" minOccurs="0">
           <!-- Reference to inner class RateRules -->
         </xs:element>
         <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="PricedCoverages" minOccurs="0">
           <!-- Reference to inner class PricedCoverages -->
         </xs:element>
         <xs:element name="LocationDetails" minOccurs="0" maxOccurs="2">
           <!-- Reference to inner class LocationDetails -->
         </xs:element>
         <xs:element type="ns:VendorMessagesType" name="VendorMessages" minOccurs="0"/>
         <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SuccessType"/>
 
 <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 RateRuleRS.Fees
          A collection of fees associated with this vehicle quotation.
static class RateRuleRS.LocationDetails
          Information on the rental location (pick up or dropoff), including address, telephone, directions, hours of operations, etc.
static class RateRuleRS.PricedCoverages
          A collection of coverages, along with associated price and details.
static class RateRuleRS.PricedEquips
          A collection of special equipment that is part of this quote, along with the charges associated with this equipment.
static class RateRuleRS.RateRules
          Collection of rules pertaining to the rental rate and/or vehicle.
static class RateRuleRS.RentalRate
          Information on the rates associated with this vehicle.
static class RateRuleRS.Vehicle
          Information on one specific vehicle.
static class RateRuleRS.VehRentalCore
          Contains rental dates, times, and locations.
 
Constructor Summary
RateRuleRS()
           
 
Method Summary
 void addLocationDetail(RateRuleRS.LocationDetails item)
          Add a 'LocationDetails' element item.
 void addRentalRate(RateRuleRS.RentalRate item)
          Add a 'RentalRate' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearLocationDetails()
          Remove all 'LocationDetails' element items.
 void clearRentalRates()
          Remove all 'RentalRate' element items.
 Errors getErrors()
          Get the 'Errors' element value.
 RateRuleRS.Fees getFees()
          Get the 'Fees' element value.
 RateRuleRS.LocationDetails getLocationDetail(int index)
          Get 'LocationDetails' element item by position.
 java.util.List<RateRuleRS.LocationDetails> getLocationDetails()
          Get the list of 'LocationDetails' element items.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 RateRuleRS.PricedCoverages getPricedCoverages()
          Get the 'PricedCoverages' element value.
 RateRuleRS.PricedEquips getPricedEquips()
          Get the 'PricedEquips' element value.
 RateRuleRS.RateRules getRateRules()
          Get the 'RateRules' element value.
 RateRuleRS.RentalRate getRentalRate(int index)
          Get 'RentalRate' element item by position.
 java.util.List<RateRuleRS.RentalRate> getRentalRates()
          Get the list of 'RentalRate' element items.
 VehicleTotalChargeGroup getTotalCharge()
          Get the 'VehicleTotalChargeGroup' attributeGroup value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 RateRuleRS.Vehicle getVehicle()
          Get the 'Vehicle' element value.
 RateRuleRS.VehRentalCore getVehRentalCore()
          Get the 'VehRentalCore' element value.
 VendorMessages getVendorMessages()
          Get the 'VendorMessages' element value.
 Warnings getWarnings()
          Get the 'Warnings' element value.
 boolean ifErrors()
          Check if Errors is current selection for choice.
 boolean ifSuccess()
          Check if Success is current selection for choice.
 void setErrors(Errors errors)
          Set the 'Errors' element value.
 void setFees(RateRuleRS.Fees fees)
          Set the 'Fees' element value.
 void setLocationDetails(java.util.List<RateRuleRS.LocationDetails> list)
          Set the list of 'LocationDetails' element items.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPricedCoverages(RateRuleRS.PricedCoverages pricedCoverages)
          Set the 'PricedCoverages' element value.
 void setPricedEquips(RateRuleRS.PricedEquips pricedEquips)
          Set the 'PricedEquips' element value.
 void setRateRules(RateRuleRS.RateRules rateRules)
          Set the 'RateRules' element value.
 void setRentalRates(java.util.List<RateRuleRS.RentalRate> list)
          Set the list of 'RentalRate' element items.
 void setTotalCharge(VehicleTotalChargeGroup totalCharge)
          Set the 'VehicleTotalChargeGroup' attributeGroup value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setVehicle(RateRuleRS.Vehicle vehicle)
          Set the 'Vehicle' element value.
 void setVehRentalCore(RateRuleRS.VehRentalCore vehRentalCore)
          Set the 'VehRentalCore' element value.
 void setVendorMessages(VendorMessages vendorMessages)
          Set the 'VendorMessages' element value.
 void setWarnings(Warnings warnings)
          Set the 'Warnings' element value.
 int sizeLocationDetails()
          Get the number of 'LocationDetails' element items.
 int sizeRentalRates()
          Get the number of 'RentalRate' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateRuleRS

public RateRuleRS()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifSuccess

public boolean ifSuccess()
Check if Success is current selection for choice.

Returns:
true if selection, false if not

getWarnings

public Warnings getWarnings()
Get the 'Warnings' element value.

Returns:
value

setWarnings

public void setWarnings(Warnings warnings)
Set the 'Warnings' element value.

Parameters:
warnings -

getVehRentalCore

public RateRuleRS.VehRentalCore getVehRentalCore()
Get the 'VehRentalCore' element value.

Returns:
value

setVehRentalCore

public void setVehRentalCore(RateRuleRS.VehRentalCore vehRentalCore)
Set the 'VehRentalCore' element value.

Parameters:
vehRentalCore -

getVehicle

public RateRuleRS.Vehicle getVehicle()
Get the 'Vehicle' element value.

Returns:
value

setVehicle

public void setVehicle(RateRuleRS.Vehicle vehicle)
Set the 'Vehicle' element value.

Parameters:
vehicle -

getRentalRates

public java.util.List<RateRuleRS.RentalRate> getRentalRates()
Get the list of 'RentalRate' element items.

Returns:
list

setRentalRates

public void setRentalRates(java.util.List<RateRuleRS.RentalRate> list)
Set the list of 'RentalRate' element items.

Parameters:
list -

sizeRentalRates

public int sizeRentalRates()
Get the number of 'RentalRate' element items.

Returns:
count

addRentalRate

public void addRentalRate(RateRuleRS.RentalRate item)
Add a 'RentalRate' element item.

Parameters:
item -

getRentalRate

public RateRuleRS.RentalRate getRentalRate(int index)
Get 'RentalRate' element item by position.

Parameters:
index -
Returns:
item

clearRentalRates

public void clearRentalRates()
Remove all 'RentalRate' element items.


getTotalCharge

public VehicleTotalChargeGroup getTotalCharge()
Get the 'VehicleTotalChargeGroup' attributeGroup value. The anticipated total cost of a 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 anticipated total cost of a reservation, the sum of the individual charges, optional charges and associated fees.

Parameters:
totalCharge -

getRateRules

public RateRuleRS.RateRules getRateRules()
Get the 'RateRules' element value.

Returns:
value

setRateRules

public void setRateRules(RateRuleRS.RateRules rateRules)
Set the 'RateRules' element value.

Parameters:
rateRules -

getPricedEquips

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

Returns:
value

setPricedEquips

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

Parameters:
pricedEquips -

getFees

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

Returns:
value

setFees

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

Parameters:
fees -

getPricedCoverages

public RateRuleRS.PricedCoverages getPricedCoverages()
Get the 'PricedCoverages' element value.

Returns:
value

setPricedCoverages

public void setPricedCoverages(RateRuleRS.PricedCoverages pricedCoverages)
Set the 'PricedCoverages' element value.

Parameters:
pricedCoverages -

getLocationDetails

public java.util.List<RateRuleRS.LocationDetails> getLocationDetails()
Get the list of 'LocationDetails' element items.

Returns:
list

setLocationDetails

public void setLocationDetails(java.util.List<RateRuleRS.LocationDetails> list)
Set the list of 'LocationDetails' element items.

Parameters:
list -

sizeLocationDetails

public int sizeLocationDetails()
Get the number of 'LocationDetails' element items.

Returns:
count

addLocationDetail

public void addLocationDetail(RateRuleRS.LocationDetails item)
Add a 'LocationDetails' element item.

Parameters:
item -

getLocationDetail

public RateRuleRS.LocationDetails getLocationDetail(int index)
Get 'LocationDetails' element item by position.

Parameters:
index -
Returns:
item

clearLocationDetails

public void clearLocationDetails()
Remove all 'LocationDetails' element items.


getVendorMessages

public VendorMessages getVendorMessages()
Get the 'VendorMessages' element value. A collection of vendor messages related to the rental rate.

Returns:
value

setVendorMessages

public void setVendorMessages(VendorMessages vendorMessages)
Set the 'VendorMessages' element value. A collection of vendor messages related to the rental rate.

Parameters:
vendorMessages -

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 -

ifErrors

public boolean ifErrors()
Check if Errors is current selection for choice.

Returns:
true if selection, false if not

getErrors

public Errors getErrors()
Get the 'Errors' element value.

Returns:
value

setErrors

public void setErrors(Errors errors)
Set the 'Errors' element value.

Parameters:
errors -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes -