org.ota.rail
Class AvailRS.Fares

java.lang.Object
  extended by org.ota.rail.AvailRS.Fares
Enclosing class:
AvailRS

public static class AvailRS.Fares
extends java.lang.Object

Provides full details on the fares that are offered, along with the routes that are valid for each specific fare. 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="Fares" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:RailFareType" name="Fare" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
AvailRS.Fares()
           
 
Method Summary
 void addFare(RailFare item)
          Add a 'Fare' element item.
 void clearFares()
          Remove all 'Fare' element items.
 RailFare getFare(int index)
          Get 'Fare' element item by position.
 java.util.List<RailFare> getFares()
          Get the list of 'Fare' element items.
 void setFares(java.util.List<RailFare> list)
          Set the list of 'Fare' element items.
 int sizeFares()
          Get the number of 'Fare' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailRS.Fares

public AvailRS.Fares()
Method Detail

getFares

public java.util.List<RailFare> getFares()
Get the list of 'Fare' element items. Information on one specific rail fare, including the route in which that fare is valid, the passenger counts, and details about the fare such as the classification, railcard discounts, etc.

Returns:
list

setFares

public void setFares(java.util.List<RailFare> list)
Set the list of 'Fare' element items. Information on one specific rail fare, including the route in which that fare is valid, the passenger counts, and details about the fare such as the classification, railcard discounts, etc.

Parameters:
list -

sizeFares

public int sizeFares()
Get the number of 'Fare' element items.

Returns:
count

addFare

public void addFare(RailFare item)
Add a 'Fare' element item.

Parameters:
item -

getFare

public RailFare getFare(int index)
Get 'Fare' element item by position.

Parameters:
index -
Returns:
item

clearFares

public void clearFares()
Remove all 'Fare' element items.