org.ota.hotel
Class LengthsOfStay.LengthOfStay

java.lang.Object
  extended by org.ota.hotel.LengthsOfStay.LengthOfStay
Enclosing class:
LengthsOfStay

public static class LengthsOfStay.LengthOfStay
extends java.lang.Object

A collection of patterns defining allowable lengths of stay (LOS). 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="LengthOfStay" minOccurs="0" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="LOS_Pattern" minOccurs="0">
         <!-- Reference to inner class LOSPattern -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:int" use="optional" name="Time"/>
     <xs:attribute type="ns:TimeUnitType" use="optional" name="TimeUnit"/>
     <xs:attribute type="xs:boolean" use="optional" name="OpenStatusIndicator"/>
     <xs:attribute use="optional" name="MinMaxMessageType">
       <xs:simpleType>
         <!-- Reference to inner class MinMaxMessage -->
       </xs:simpleType>
     </xs:attribute>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class LengthsOfStay.LengthOfStay.LOSPattern
          Used to define the LOS Pattern.
static class LengthsOfStay.LengthOfStay.MinMaxMessage
          Schema fragment(s) for this class:
 
Constructor Summary
LengthsOfStay.LengthOfStay()
           
 
Method Summary
 LengthsOfStay.LengthOfStay.LOSPattern getLOSPattern1()
          Get the 'LOS_Pattern' element value.
 LengthsOfStay.LengthOfStay.MinMaxMessage getMinMaxMessage()
          Get the 'MinMaxMessageType' attribute value.
 java.lang.Boolean getOpenStatusIndicator()
          Get the 'OpenStatusIndicator' attribute value.
 java.lang.Integer getTime()
          Get the 'Time' attribute value.
 TimeUnit getTimeUnit()
          Get the 'TimeUnit' attribute value.
 void setLOSPattern1(LengthsOfStay.LengthOfStay.LOSPattern LOSPattern1)
          Set the 'LOS_Pattern' element value.
 void setMinMaxMessage(LengthsOfStay.LengthOfStay.MinMaxMessage minMaxMessage)
          Set the 'MinMaxMessageType' attribute value.
 void setOpenStatusIndicator(java.lang.Boolean openStatusIndicator)
          Set the 'OpenStatusIndicator' attribute value.
 void setTime(java.lang.Integer time)
          Set the 'Time' attribute value.
 void setTimeUnit(TimeUnit timeUnit)
          Set the 'TimeUnit' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LengthsOfStay.LengthOfStay

public LengthsOfStay.LengthOfStay()
Method Detail

getLOSPattern1

public LengthsOfStay.LengthOfStay.LOSPattern getLOSPattern1()
Get the 'LOS_Pattern' element value.

Returns:
value

setLOSPattern1

public void setLOSPattern1(LengthsOfStay.LengthOfStay.LOSPattern LOSPattern1)
Set the 'LOS_Pattern' element value.

Parameters:
LOSPattern1 -

getTime

public java.lang.Integer getTime()
Get the 'Time' attribute value. Used in conjunction with the MinMaxMessageType and the TimeUnit to define the length of stay requirements.

Returns:
value

setTime

public void setTime(java.lang.Integer time)
Set the 'Time' attribute value. Used in conjunction with the MinMaxMessageType and the TimeUnit to define the length of stay requirements.

Parameters:
time -

getTimeUnit

public TimeUnit getTimeUnit()
Get the 'TimeUnit' attribute value. A time unit used to apply this status message to other inventory, and with more granularity than daily. Values: Year, Month, Week, Day, Hour, Minute, Second.

Returns:
value

setTimeUnit

public void setTimeUnit(TimeUnit timeUnit)
Set the 'TimeUnit' attribute value. A time unit used to apply this status message to other inventory, and with more granularity than daily. Values: Year, Month, Week, Day, Hour, Minute, Second.

Parameters:
timeUnit -

getOpenStatusIndicator

public java.lang.Boolean getOpenStatusIndicator()
Get the 'OpenStatusIndicator' attribute value. Indicates if the length of stay is open or closed when MinMaxMessageType is FullPatternLOS if true then open and if false then closed.

Returns:
value

setOpenStatusIndicator

public void setOpenStatusIndicator(java.lang.Boolean openStatusIndicator)
Set the 'OpenStatusIndicator' attribute value. Indicates if the length of stay is open or closed when MinMaxMessageType is FullPatternLOS if true then open and if false then closed.

Parameters:
openStatusIndicator -

getMinMaxMessage

public LengthsOfStay.LengthOfStay.MinMaxMessage getMinMaxMessage()
Get the 'MinMaxMessageType' attribute value. An enumerated type used to define how the minimum and maximum LOS is applied.Values: Set Minimum LOS, Remove Minimum LOS, Set Maximum LOS, Remove Maximum LOS, Set Forward Minimum Stay, Remove Forward Minimum Stay, Set Forward Maximum Stay, Remove Forward Maximum Stay.

Returns:
value

setMinMaxMessage

public void setMinMaxMessage(LengthsOfStay.LengthOfStay.MinMaxMessage minMaxMessage)
Set the 'MinMaxMessageType' attribute value. An enumerated type used to define how the minimum and maximum LOS is applied.Values: Set Minimum LOS, Remove Minimum LOS, Set Maximum LOS, Remove Maximum LOS, Set Forward Minimum Stay, Remove Forward Minimum Stay, Set Forward Maximum Stay, Remove Forward Maximum Stay.

Parameters:
minMaxMessage -