org.ota.pkg
Class Charges

java.lang.Object
  extended by org.ota.pkg.Charges

public class Charges
extends java.lang.Object

A value representing a supplement for an item over the cost of the item on which a package basic price is calculated; may be repeated for multiple currencies e.g. GBP and Euros. 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="ChargesType">
   <xs:sequence>
     <xs:element type="ns:FeeType" name="Charge" maxOccurs="9"/>
   </xs:sequence>
 </xs:complexType>
 


Constructor Summary
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

Charges

public Charges()
Method Detail

getCharges

public java.util.List<Fee> getCharges()
Get the list of 'Charge' element items. The charge element repeats to allow differential charging according to, for example, age.

Returns:
list

setCharges

public void setCharges(java.util.List<Fee> list)
Set the list of 'Charge' element items. The charge element repeats to allow differential charging according to, for example, age.

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.