org.ota.tour
Class AvailRS.Tours

java.lang.Object
  extended by org.ota.tour.AvailRS.Tours
Enclosing class:
AvailRS

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

A collection of alternative tours returned when the requested tour and/or departure date is unavailable. 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="Tours" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:TourInformationType" name="Tour" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
AvailRS.Tours()
           
 
Method Summary
 void addTour(TourInformation item)
          Add a 'Tour' element item.
 void clearTours()
          Remove all 'Tour' element items.
 TourInformation getTour(int index)
          Get 'Tour' element item by position.
 java.util.List<TourInformation> getTours()
          Get the list of 'Tour' element items.
 void setTours(java.util.List<TourInformation> list)
          Set the list of 'Tour' element items.
 int sizeTours()
          Get the number of 'Tour' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailRS.Tours

public AvailRS.Tours()
Method Detail

getTours

public java.util.List<TourInformation> getTours()
Get the list of 'Tour' element items. An alternative tour returned when the requested tour and/or departure date is unavailable.

Returns:
list

setTours

public void setTours(java.util.List<TourInformation> list)
Set the list of 'Tour' element items. An alternative tour returned when the requested tour and/or departure date is unavailable.

Parameters:
list -

sizeTours

public int sizeTours()
Get the number of 'Tour' element items.

Returns:
count

addTour

public void addTour(TourInformation item)
Add a 'Tour' element item.

Parameters:
item -

getTour

public TourInformation getTour(int index)
Get 'Tour' element item by position.

Parameters:
index -
Returns:
item

clearTours

public void clearTours()
Remove all 'Tour' element items.