org.ota.shared
Class TravelDateTime

java.lang.Object
  extended by org.ota.shared.TravelDateTime
Direct Known Subclasses:
OriginDestinationInformation

public class TravelDateTime
extends java.lang.Object

Date and time of trip that allows specifying a time window before and after the given date. 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="TravelDateTimeType">
   <xs:choice>
     <xs:element type="ns:TimeInstantType" name="DepartureDateTime"/>
     <xs:element type="ns:TimeInstantType" name="ArrivalDateTime"/>
   </xs:choice>
 </xs:complexType>
 


Constructor Summary
TravelDateTime()
           
 
Method Summary
 void clearChoiceSelect()
          Clear the choice selection.
 TimeInstant getArrivalDateTime()
          Get the 'ArrivalDateTime' element value.
 TimeInstant getDepartureDateTime()
          Get the 'DepartureDateTime' element value.
 boolean ifArrivalDateTime()
          Check if ArrivalDateTime is current selection for choice.
 boolean ifDepartureDateTime()
          Check if DepartureDateTime is current selection for choice.
 void setArrivalDateTime(TimeInstant arrivalDateTime)
          Set the 'ArrivalDateTime' element value.
 void setDepartureDateTime(TimeInstant departureDateTime)
          Set the 'DepartureDateTime' element value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TravelDateTime

public TravelDateTime()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifDepartureDateTime

public boolean ifDepartureDateTime()
Check if DepartureDateTime is current selection for choice.

Returns:
true if selection, false if not

getDepartureDateTime

public TimeInstant getDepartureDateTime()
Get the 'DepartureDateTime' element value. The departure date and optionally a time period that can be applied before and/or after the departure date.

Returns:
value

setDepartureDateTime

public void setDepartureDateTime(TimeInstant departureDateTime)
Set the 'DepartureDateTime' element value. The departure date and optionally a time period that can be applied before and/or after the departure date.

Parameters:
departureDateTime -

ifArrivalDateTime

public boolean ifArrivalDateTime()
Check if ArrivalDateTime is current selection for choice.

Returns:
true if selection, false if not

getArrivalDateTime

public TimeInstant getArrivalDateTime()
Get the 'ArrivalDateTime' element value. The arrival date and optionally a time period that can be applied before and/or after the arrival date.

Returns:
value

setArrivalDateTime

public void setArrivalDateTime(TimeInstant arrivalDateTime)
Set the 'ArrivalDateTime' element value. The arrival date and optionally a time period that can be applied before and/or after the arrival date.

Parameters:
arrivalDateTime -