org.ota.vehicle
Class VehicleSegmentAdditionalInfo.PaymentRules

java.lang.Object
  extended by org.ota.vehicle.VehicleSegmentAdditionalInfo.PaymentRules
Enclosing class:
VehicleSegmentAdditionalInfo

public static class VehicleSegmentAdditionalInfo.PaymentRules
extends java.lang.Object

A collection of payment rules associated with this reservation. 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="PaymentRules" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:MonetaryRuleType" name="PaymentRule" maxOccurs="9"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
VehicleSegmentAdditionalInfo.PaymentRules()
           
 
Method Summary
 void addPaymentRule(MonetaryRule item)
          Add a 'PaymentRule' element item.
 void clearPaymentRules()
          Remove all 'PaymentRule' element items.
 MonetaryRule getPaymentRule(int index)
          Get 'PaymentRule' element item by position.
 java.util.List<MonetaryRule> getPaymentRules()
          Get the list of 'PaymentRule' element items.
 void setPaymentRules(java.util.List<MonetaryRule> list)
          Set the list of 'PaymentRule' element items.
 int sizePaymentRules()
          Get the number of 'PaymentRule' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleSegmentAdditionalInfo.PaymentRules

public VehicleSegmentAdditionalInfo.PaymentRules()
Method Detail

getPaymentRules

public java.util.List<MonetaryRule> getPaymentRules()
Get the list of 'PaymentRule' element items. One specific payment rule associated with this reservation. For example, a date by which a deposit must be received.

Returns:
list

setPaymentRules

public void setPaymentRules(java.util.List<MonetaryRule> list)
Set the list of 'PaymentRule' element items. One specific payment rule associated with this reservation. For example, a date by which a deposit must be received.

Parameters:
list -

sizePaymentRules

public int sizePaymentRules()
Get the number of 'PaymentRule' element items.

Returns:
count

addPaymentRule

public void addPaymentRule(MonetaryRule item)
Add a 'PaymentRule' element item.

Parameters:
item -

getPaymentRule

public MonetaryRule getPaymentRule(int index)
Get 'PaymentRule' element item by position.

Parameters:
index -
Returns:
item

clearPaymentRules

public void clearPaymentRules()
Remove all 'PaymentRule' element items.