org.ota.rail
Class RailReservation.RailCharges

java.lang.Object
  extended by org.ota.rail.RailReservation.RailCharges
Enclosing class:
RailReservation

public static class RailReservation.RailCharges
extends java.lang.Object

Information on the individual charges that incurred are a result of this specific itinerary. 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" type="ns:RailChargesType" name="RailCharges" minOccurs="0"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="RailChargesType">
   <xs:sequence>
     <xs:element type="ns:TotalType" name="Total" minOccurs="0"/>
     <xs:element name="Charges">
       <xs:complexType>
         <xs:sequence>
           <xs:element type="ns:FeeType" name="Charge" maxOccurs="99"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
   <xs:attributeGroup ref="ns:CurrencyCodeGroup"/>
 </xs:complexType>
 


Constructor Summary
RailReservation.RailCharges()
           
 
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.
 CurrencyCodeGroup getCurrencyCodeGroup()
          Get the 'CurrencyCodeGroup' attributeGroup value.
 Total getTotal()
          Get the 'Total' element value.
 void setCharges(java.util.List<Fee> list)
          Set the list of 'Charge' element items.
 void setCurrencyCodeGroup(CurrencyCodeGroup currencyCodeGroup)
          Set the 'CurrencyCodeGroup' attributeGroup value.
 void setTotal(Total total)
          Set the 'Total' element value.
 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

RailReservation.RailCharges

public RailReservation.RailCharges()
Method Detail

getTotal

public Total getTotal()
Get the 'Total' element value. Contains a total of the base amounts and an estimated total when all taxes and fees are applied

Returns:
value

setTotal

public void setTotal(Total total)
Set the 'Total' element value. Contains a total of the base amounts and an estimated total when all taxes and fees are applied

Parameters:
total -

getCharges

public java.util.List<Fee> getCharges()
Get the list of 'Charge' element items. Information on the charges associated with this reservation. Such charges may include the cost of the rail ticket, the cost of reserved seating, the cost of sleeper accommodations, etc.

Returns:
list

setCharges

public void setCharges(java.util.List<Fee> list)
Set the list of 'Charge' element items. Information on the charges associated with this reservation. Such charges may include the cost of the rail ticket, the cost of reserved seating, the cost of sleeper accommodations, etc.

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.


getCurrencyCodeGroup

public CurrencyCodeGroup getCurrencyCodeGroup()
Get the 'CurrencyCodeGroup' attributeGroup value.

Returns:
value

setCurrencyCodeGroup

public void setCurrencyCodeGroup(CurrencyCodeGroup currencyCodeGroup)
Set the 'CurrencyCodeGroup' attributeGroup value.

Parameters:
currencyCodeGroup -