org.ota.tour
Class TourInformation.Departures

java.lang.Object
  extended by org.ota.tour.TourInformation.Departures
Enclosing class:
TourInformation

public static class TourInformation.Departures
extends java.lang.Object

A collection of departure dates and times. 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="Departures" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="DepartureSchedule" minOccurs="0" maxOccurs="366">
         <!-- Reference to inner class DepartureSchedule -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class TourInformation.Departures.DepartureSchedule
          Departure dates and times.
 
Constructor Summary
TourInformation.Departures()
           
 
Method Summary
 void addDepartureSchedule(TourInformation.Departures.DepartureSchedule item)
          Add a 'DepartureSchedule' element item.
 void clearDepartureSchedules()
          Remove all 'DepartureSchedule' element items.
 TourInformation.Departures.DepartureSchedule getDepartureSchedule(int index)
          Get 'DepartureSchedule' element item by position.
 java.util.List<TourInformation.Departures.DepartureSchedule> getDepartureSchedules()
          Get the list of 'DepartureSchedule' element items.
 void setDepartureSchedules(java.util.List<TourInformation.Departures.DepartureSchedule> list)
          Set the list of 'DepartureSchedule' element items.
 int sizeDepartureSchedules()
          Get the number of 'DepartureSchedule' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TourInformation.Departures

public TourInformation.Departures()
Method Detail

getDepartureSchedules

public java.util.List<TourInformation.Departures.DepartureSchedule> getDepartureSchedules()
Get the list of 'DepartureSchedule' element items.

Returns:
list

setDepartureSchedules

public void setDepartureSchedules(java.util.List<TourInformation.Departures.DepartureSchedule> list)
Set the list of 'DepartureSchedule' element items.

Parameters:
list -

sizeDepartureSchedules

public int sizeDepartureSchedules()
Get the number of 'DepartureSchedule' element items.

Returns:
count

addDepartureSchedule

public void addDepartureSchedule(TourInformation.Departures.DepartureSchedule item)
Add a 'DepartureSchedule' element item.

Parameters:
item -

getDepartureSchedule

public TourInformation.Departures.DepartureSchedule getDepartureSchedule(int index)
Get 'DepartureSchedule' element item by position.

Parameters:
index -
Returns:
item

clearDepartureSchedules

public void clearDepartureSchedules()
Remove all 'DepartureSchedule' element items.