org.ota.shared
Class TimeInstant

java.lang.Object
  extended by org.ota.shared.TimeInstant

public class TimeInstant
extends java.lang.Object

Specifies a time window. 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="TimeInstantType">
   <xs:simpleContent>
     <xs:extension base="xs:string">
       <xs:attribute type="xs:string" use="optional" name="WindowBefore"/>
       <xs:attribute type="xs:string" use="optional" name="WindowAfter"/>
       <xs:attribute type="xs:boolean" use="optional" name="CrossDateAllowedIndicator"/>
     </xs:extension>
   </xs:simpleContent>
 </xs:complexType>
 


Constructor Summary
TimeInstant()
           
 
Method Summary
 java.lang.Boolean getCrossDateAllowedIndicator()
          Get the 'CrossDateAllowedIndicator' attribute value.
 java.lang.String getString()
          Get the extension value.
 java.lang.String getWindowAfter()
          Get the 'WindowAfter' attribute value.
 java.lang.String getWindowBefore()
          Get the 'WindowBefore' attribute value.
 void setCrossDateAllowedIndicator(java.lang.Boolean crossDateAllowedIndicator)
          Set the 'CrossDateAllowedIndicator' attribute value.
 void setString(java.lang.String string)
          Set the extension value.
 void setWindowAfter(java.lang.String windowAfter)
          Set the 'WindowAfter' attribute value.
 void setWindowBefore(java.lang.String windowBefore)
          Set the 'WindowBefore' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeInstant

public TimeInstant()
Method Detail

getString

public java.lang.String getString()
Get the extension value.

Returns:
value

setString

public void setString(java.lang.String string)
Set the extension value.

Parameters:
string -

getWindowBefore

public java.lang.String getWindowBefore()
Get the 'WindowBefore' attribute value. A period of time that can be applied to another time resulting in an earlier range of time.

Returns:
value

setWindowBefore

public void setWindowBefore(java.lang.String windowBefore)
Set the 'WindowBefore' attribute value. A period of time that can be applied to another time resulting in an earlier range of time.

Parameters:
windowBefore -

getWindowAfter

public java.lang.String getWindowAfter()
Get the 'WindowAfter' attribute value. A period of time that can be applied to another time resulting in a later range of time.

Returns:
value

setWindowAfter

public void setWindowAfter(java.lang.String windowAfter)
Set the 'WindowAfter' attribute value. A period of time that can be applied to another time resulting in a later range of time.

Parameters:
windowAfter -

getCrossDateAllowedIndicator

public java.lang.Boolean getCrossDateAllowedIndicator()
Get the 'CrossDateAllowedIndicator' attribute value. When true the requested period may extend over the previous or following day. When false, the search period is restricted to the date specified. Normally used when the window duration is in hours.

Returns:
value

setCrossDateAllowedIndicator

public void setCrossDateAllowedIndicator(java.lang.Boolean crossDateAllowedIndicator)
Set the 'CrossDateAllowedIndicator' attribute value. When true the requested period may extend over the previous or following day. When false, the search period is restricted to the date specified. Normally used when the window duration is in hours.

Parameters:
crossDateAllowedIndicator -