org.ota.vehicle
Class VehicleCharge

java.lang.Object
  extended by org.ota.vehicle.VehicleCharge
Direct Known Subclasses:
VehicleChargePurpose, VehicleLocationAdditionalFees.Fees.Fee, VehicleLocationAdditionalFees.MiscellaneousCharges.MiscellaneousCharge, VehicleLocationAdditionalFees.Surcharges.Surcharge, VehicleLocationServicesOffered.OffLocationServices.OffLocationService.OffLocServiceCharges.OffLocServiceCharge, VehicleLocationServicesOffered.OnLocationServices.OnLocationService.OnLocServiceCharges.OnLocServiceCharge, VehicleLocationServicesOffered.SpecialEquipments.SpecialEquipment.EquipCharges.EquipCharge

public class VehicleCharge
extends java.lang.Object

Identifies specific charges. 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="VehicleChargeType">
   <xs:sequence>
     <xs:element name="TaxAmounts" minOccurs="0">
       <!-- Reference to inner class TaxAmounts -->
     </xs:element>
     <xs:element name="MinMax" minOccurs="0">
       <!-- Reference to inner class MinMax -->
     </xs:element>
     <xs:element name="Calculation" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class Calculation -->
     </xs:element>
   </xs:sequence>
   <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
   <xs:attribute type="xs:boolean" use="optional" name="TaxInclusive"/>
   <xs:attribute type="xs:string" use="optional" name="Description"/>
   <xs:attribute type="xs:boolean" use="optional" name="GuaranteedInd"/>
   <xs:attribute type="xs:boolean" use="optional" name="IncludedInRate"/>
   <xs:attribute type="xs:boolean" use="optional" name="IncludedInEstTotalInd"/>
 </xs:complexType>
 


Nested Class Summary
static class VehicleCharge.Calculation
          Information on how this charge was calculated, for example, a daily rate multiplied by the number of days, a percentage, etc.
static class VehicleCharge.MinMax
          Information on any minimum or maximum amounts, if appropriate.
static class VehicleCharge.TaxAmounts
          A collection of one or more taxes associated with a specific charge.
 
Constructor Summary
VehicleCharge()
           
 
Method Summary
 void addCalculation(VehicleCharge.Calculation item)
          Add a 'Calculation' element item.
 void clearCalculations()
          Remove all 'Calculation' element items.
 VehicleCharge.Calculation getCalculation(int index)
          Get 'Calculation' element item by position.
 java.util.List<VehicleCharge.Calculation> getCalculations()
          Get the list of 'Calculation' element items.
 CurrencyAmountGroup getCurrencyAmountGroup()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 java.lang.String getDescription()
          Get the 'Description' attribute value.
 java.lang.Boolean getGuaranteedInd()
          Get the 'GuaranteedInd' attribute value.
 java.lang.Boolean getIncludedInEstTotalInd()
          Get the 'IncludedInEstTotalInd' attribute value.
 java.lang.Boolean getIncludedInRate()
          Get the 'IncludedInRate' attribute value.
 VehicleCharge.MinMax getMinMax()
          Get the 'MinMax' element value.
 VehicleCharge.TaxAmounts getTaxAmounts()
          Get the 'TaxAmounts' element value.
 java.lang.Boolean getTaxInclusive()
          Get the 'TaxInclusive' attribute value.
 void setCalculations(java.util.List<VehicleCharge.Calculation> list)
          Set the list of 'Calculation' element items.
 void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 void setDescription(java.lang.String description)
          Set the 'Description' attribute value.
 void setGuaranteedInd(java.lang.Boolean guaranteedInd)
          Set the 'GuaranteedInd' attribute value.
 void setIncludedInEstTotalInd(java.lang.Boolean includedInEstTotalInd)
          Set the 'IncludedInEstTotalInd' attribute value.
 void setIncludedInRate(java.lang.Boolean includedInRate)
          Set the 'IncludedInRate' attribute value.
 void setMinMax(VehicleCharge.MinMax minMax)
          Set the 'MinMax' element value.
 void setTaxAmounts(VehicleCharge.TaxAmounts taxAmounts)
          Set the 'TaxAmounts' element value.
 void setTaxInclusive(java.lang.Boolean taxInclusive)
          Set the 'TaxInclusive' attribute value.
 int sizeCalculations()
          Get the number of 'Calculation' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleCharge

public VehicleCharge()
Method Detail

getTaxAmounts

public VehicleCharge.TaxAmounts getTaxAmounts()
Get the 'TaxAmounts' element value.

Returns:
value

setTaxAmounts

public void setTaxAmounts(VehicleCharge.TaxAmounts taxAmounts)
Set the 'TaxAmounts' element value.

Parameters:
taxAmounts -

getMinMax

public VehicleCharge.MinMax getMinMax()
Get the 'MinMax' element value.

Returns:
value

setMinMax

public void setMinMax(VehicleCharge.MinMax minMax)
Set the 'MinMax' element value.

Parameters:
minMax -

getCalculations

public java.util.List<VehicleCharge.Calculation> getCalculations()
Get the list of 'Calculation' element items.

Returns:
list

setCalculations

public void setCalculations(java.util.List<VehicleCharge.Calculation> list)
Set the list of 'Calculation' element items.

Parameters:
list -

sizeCalculations

public int sizeCalculations()
Get the number of 'Calculation' element items.

Returns:
count

addCalculation

public void addCalculation(VehicleCharge.Calculation item)
Add a 'Calculation' element item.

Parameters:
item -

getCalculation

public VehicleCharge.Calculation getCalculation(int index)
Get 'Calculation' element item by position.

Parameters:
index -
Returns:
item

clearCalculations

public void clearCalculations()
Remove all 'Calculation' element items.


getCurrencyAmountGroup

public CurrencyAmountGroup getCurrencyAmountGroup()
Get the 'CurrencyAmountGroup' attributeGroup value.

Returns:
value

setCurrencyAmountGroup

public void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
Set the 'CurrencyAmountGroup' attributeGroup value.

Parameters:
currencyAmountGroup -

getTaxInclusive

public java.lang.Boolean getTaxInclusive()
Get the 'TaxInclusive' attribute value.

Returns:
value

setTaxInclusive

public void setTaxInclusive(java.lang.Boolean taxInclusive)
Set the 'TaxInclusive' attribute value.

Parameters:
taxInclusive -

getDescription

public java.lang.String getDescription()
Get the 'Description' attribute value.

Returns:
value

setDescription

public void setDescription(java.lang.String description)
Set the 'Description' attribute value.

Parameters:
description -

getGuaranteedInd

public java.lang.Boolean getGuaranteedInd()
Get the 'GuaranteedInd' attribute value.

Returns:
value

setGuaranteedInd

public void setGuaranteedInd(java.lang.Boolean guaranteedInd)
Set the 'GuaranteedInd' attribute value.

Parameters:
guaranteedInd -

getIncludedInRate

public java.lang.Boolean getIncludedInRate()
Get the 'IncludedInRate' attribute value. An indication if this amount is included in the base vehicle rate, or is an additonal cost.false

Returns:
value

setIncludedInRate

public void setIncludedInRate(java.lang.Boolean includedInRate)
Set the 'IncludedInRate' attribute value. An indication if this amount is included in the base vehicle rate, or is an additonal cost.false

Parameters:
includedInRate -

getIncludedInEstTotalInd

public java.lang.Boolean getIncludedInEstTotalInd()
Get the 'IncludedInEstTotalInd' attribute value. When true, indicates the item's charges are included in the estimated total amount (in TotalCharge) and when false, the item is not included in the estimated total amount.

Returns:
value

setIncludedInEstTotalInd

public void setIncludedInEstTotalInd(java.lang.Boolean includedInEstTotalInd)
Set the 'IncludedInEstTotalInd' attribute value. When true, indicates the item's charges are included in the estimated total amount (in TotalCharge) and when false, the item is not included in the estimated total amount.

Parameters:
includedInEstTotalInd -