org.ota.insurance
Class PlanCost.Charges

java.lang.Object
  extended by org.ota.insurance.PlanCost.Charges
Enclosing class:
PlanCost

public static class PlanCost.Charges
extends java.lang.Object

A container for any additional charges to the cost of the insurance plan. 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="Charges" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:FeeType" name="Charge" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
PlanCost.Charges()
           
 
Method Summary
 void addCharge(Fee item)
          Add a 'Charge' element item.
 void clearCharges()
          Remove all 'Charge' element items.
 Fee getCharge(int index)
          Get 'Charge' element item by position.
 java.util.List<Fee> getCharges()
          Get the list of 'Charge' element items.
 void setCharges(java.util.List<Fee> list)
          Set the list of 'Charge' element items.
 int sizeCharges()
          Get the number of 'Charge' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanCost.Charges

public PlanCost.Charges()
Method Detail

getCharges

public java.util.List<Fee> getCharges()
Get the list of 'Charge' element items. Contains a description and value of a single additional charge to the cost of the plan.

Returns:
list

setCharges

public void setCharges(java.util.List<Fee> list)
Set the list of 'Charge' element items. Contains a description and value of a single additional charge to the cost of the plan.

Parameters:
list -

sizeCharges

public int sizeCharges()
Get the number of 'Charge' element items.

Returns:
count

addCharge

public void addCharge(Fee item)
Add a 'Charge' element item.

Parameters:
item -

getCharge

public Fee getCharge(int index)
Get 'Charge' element item by position.

Parameters:
index -
Returns:
item

clearCharges

public void clearCharges()
Remove all 'Charge' element items.