org.ota.vehicle
Class VehicleSegmentAdditionalInfo

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

public class VehicleSegmentAdditionalInfo
extends java.lang.Object

The VehicleSegmentAdditionalInfoType complex type identifies the data that descibes the supplemental information assocated with a vehicle segment. Such information may be associated with the reservation of a vehicle, but is not normally included. 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="VehicleSegmentAdditionalInfoType">
   <xs:sequence>
     <xs:element name="PaymentRules" minOccurs="0">
       <!-- Reference to inner class PaymentRules -->
     </xs:element>
     <xs:element type="ns:PaymentDetailType" name="RentalPaymentAmount" minOccurs="0" maxOccurs="5"/>
     <xs:element name="PricedCoverages" minOccurs="0">
       <!-- Reference to inner class PricedCoverages -->
     </xs:element>
     <xs:element type="ns:OffLocationServicePricedType" name="PricedOffLocService" minOccurs="0" maxOccurs="4"/>
     <xs:element name="VendorMessages" minOccurs="0">
       <!-- Reference to inner class VendorMessages -->
     </xs:element>
     <xs:element type="ns:VehicleLocationDetailsType" name="LocationDetails" minOccurs="0" maxOccurs="2"/>
     <xs:element type="ns:VehicleTourInfoType" name="TourInfo" minOccurs="0"/>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:boolean" use="optional" name="WrittenConfInd"/>
 </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 VehicleSegmentAdditionalInfo.PaymentRules
          A collection of payment rules associated with this reservation.
static class VehicleSegmentAdditionalInfo.PricedCoverages
          A collection of vehicle coverages associated with this reservation.
static class VehicleSegmentAdditionalInfo.VendorMessages
          A collection of free-format messages associated with this reservation.
 
Constructor Summary
VehicleSegmentAdditionalInfo()
           
 
Method Summary
 void addLocationDetail(VehicleLocationDetails item)
          Add a 'LocationDetails' element item.
 void addPricedOffLocService(OffLocationServicePriced item)
          Add a 'PricedOffLocService' element item.
 void addRentalPaymentAmount(PaymentDetail item)
          Add a 'RentalPaymentAmount' element item.
 void clearLocationDetails()
          Remove all 'LocationDetails' element items.
 void clearPricedOffLocServices()
          Remove all 'PricedOffLocService' element items.
 void clearRentalPaymentAmounts()
          Remove all 'RentalPaymentAmount' element items.
 VehicleLocationDetails getLocationDetail(int index)
          Get 'LocationDetails' element item by position.
 java.util.List<VehicleLocationDetails> getLocationDetails()
          Get the list of 'LocationDetails' element items.
 VehicleSegmentAdditionalInfo.PaymentRules getPaymentRules()
          Get the 'PaymentRules' element value.
 VehicleSegmentAdditionalInfo.PricedCoverages getPricedCoverages()
          Get the 'PricedCoverages' element value.
 OffLocationServicePriced getPricedOffLocService(int index)
          Get 'PricedOffLocService' element item by position.
 java.util.List<OffLocationServicePriced> getPricedOffLocServices()
          Get the list of 'PricedOffLocService' element items.
 PaymentDetail getRentalPaymentAmount(int index)
          Get 'RentalPaymentAmount' element item by position.
 java.util.List<PaymentDetail> getRentalPaymentAmounts()
          Get the list of 'RentalPaymentAmount' element items.
 VehicleTourInfo getTourInfo()
          Get the 'TourInfo' element value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 VehicleSegmentAdditionalInfo.VendorMessages getVendorMessages()
          Get the 'VendorMessages' element value.
 java.lang.Boolean getWrittenConfInd()
          Get the 'WrittenConfInd' attribute value.
 void setLocationDetails(java.util.List<VehicleLocationDetails> list)
          Set the list of 'LocationDetails' element items.
 void setPaymentRules(VehicleSegmentAdditionalInfo.PaymentRules paymentRules)
          Set the 'PaymentRules' element value.
 void setPricedCoverages(VehicleSegmentAdditionalInfo.PricedCoverages pricedCoverages)
          Set the 'PricedCoverages' element value.
 void setPricedOffLocServices(java.util.List<OffLocationServicePriced> list)
          Set the list of 'PricedOffLocService' element items.
 void setRentalPaymentAmounts(java.util.List<PaymentDetail> list)
          Set the list of 'RentalPaymentAmount' element items.
 void setTourInfo(VehicleTourInfo tourInfo)
          Set the 'TourInfo' element value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setVendorMessages(VehicleSegmentAdditionalInfo.VendorMessages vendorMessages)
          Set the 'VendorMessages' element value.
 void setWrittenConfInd(java.lang.Boolean writtenConfInd)
          Set the 'WrittenConfInd' attribute value.
 int sizeLocationDetails()
          Get the number of 'LocationDetails' element items.
 int sizePricedOffLocServices()
          Get the number of 'PricedOffLocService' element items.
 int sizeRentalPaymentAmounts()
          Get the number of 'RentalPaymentAmount' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleSegmentAdditionalInfo

public VehicleSegmentAdditionalInfo()
Method Detail

getPaymentRules

public VehicleSegmentAdditionalInfo.PaymentRules getPaymentRules()
Get the 'PaymentRules' element value.

Returns:
value

setPaymentRules

public void setPaymentRules(VehicleSegmentAdditionalInfo.PaymentRules paymentRules)
Set the 'PaymentRules' element value.

Parameters:
paymentRules -

getRentalPaymentAmounts

public java.util.List<PaymentDetail> getRentalPaymentAmounts()
Get the list of 'RentalPaymentAmount' element items. Used for payment information, may be prepayment, actual, etc.

Returns:
list

setRentalPaymentAmounts

public void setRentalPaymentAmounts(java.util.List<PaymentDetail> list)
Set the list of 'RentalPaymentAmount' element items. Used for payment information, may be prepayment, actual, etc.

Parameters:
list -

sizeRentalPaymentAmounts

public int sizeRentalPaymentAmounts()
Get the number of 'RentalPaymentAmount' element items.

Returns:
count

addRentalPaymentAmount

public void addRentalPaymentAmount(PaymentDetail item)
Add a 'RentalPaymentAmount' element item.

Parameters:
item -

getRentalPaymentAmount

public PaymentDetail getRentalPaymentAmount(int index)
Get 'RentalPaymentAmount' element item by position.

Parameters:
index -
Returns:
item

clearRentalPaymentAmounts

public void clearRentalPaymentAmounts()
Remove all 'RentalPaymentAmount' element items.


getPricedCoverages

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

Returns:
value

setPricedCoverages

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

Parameters:
pricedCoverages -

getPricedOffLocServices

public java.util.List<OffLocationServicePriced> getPricedOffLocServices()
Get the list of 'PricedOffLocService' element items. Information on an off-location service associated with this reservation, along with the associated charge.

Returns:
list

setPricedOffLocServices

public void setPricedOffLocServices(java.util.List<OffLocationServicePriced> list)
Set the list of 'PricedOffLocService' element items. Information on an off-location service associated with this reservation, along with the associated charge.

Parameters:
list -

sizePricedOffLocServices

public int sizePricedOffLocServices()
Get the number of 'PricedOffLocService' element items.

Returns:
count

addPricedOffLocService

public void addPricedOffLocService(OffLocationServicePriced item)
Add a 'PricedOffLocService' element item.

Parameters:
item -

getPricedOffLocService

public OffLocationServicePriced getPricedOffLocService(int index)
Get 'PricedOffLocService' element item by position.

Parameters:
index -
Returns:
item

clearPricedOffLocServices

public void clearPricedOffLocServices()
Remove all 'PricedOffLocService' element items.


getVendorMessages

public VehicleSegmentAdditionalInfo.VendorMessages getVendorMessages()
Get the 'VendorMessages' element value.

Returns:
value

setVendorMessages

public void setVendorMessages(VehicleSegmentAdditionalInfo.VendorMessages vendorMessages)
Set the 'VendorMessages' element value.

Parameters:
vendorMessages -

getLocationDetails

public java.util.List<VehicleLocationDetails> getLocationDetails()
Get the list of 'LocationDetails' element items. Detailed information about the associated rental facilities, for example, address, phone number, hours of operation.

Returns:
list

setLocationDetails

public void setLocationDetails(java.util.List<VehicleLocationDetails> list)
Set the list of 'LocationDetails' element items. Detailed information about the associated rental facilities, for example, address, phone number, hours of operation.

Parameters:
list -

sizeLocationDetails

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

Returns:
count

addLocationDetail

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

Parameters:
item -

getLocationDetail

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

Parameters:
index -
Returns:
item

clearLocationDetails

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


getTourInfo

public VehicleTourInfo getTourInfo()
Get the 'TourInfo' element value. Details of a tour associated with which this reservation information is associated. Rate information may vary if associated with a tour.

Returns:
value

setTourInfo

public void setTourInfo(VehicleTourInfo tourInfo)
Set the 'TourInfo' element value. Details of a tour associated with which this reservation information is associated. Rate information may vary if associated with a tour.

Parameters:
tourInfo -

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 -

getWrittenConfInd

public java.lang.Boolean getWrittenConfInd()
Get the 'WrittenConfInd' attribute value. When true, a written confirmation may be requested.

Returns:
value

setWrittenConfInd

public void setWrittenConfInd(java.lang.Boolean writtenConfInd)
Set the 'WrittenConfInd' attribute value. When true, a written confirmation may be requested.

Parameters:
writtenConfInd -