org.ota.hotel
Class LengthsOfStay

java.lang.Object
  extended by org.ota.hotel.LengthsOfStay

public class LengthsOfStay
extends java.lang.Object

A collection of LengthOfStay. 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="LengthsOfStayType">
   <xs:sequence>
     <xs:element name="LengthOfStay" minOccurs="0" maxOccurs="unbounded">
       <!-- Reference to inner class LengthOfStay -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:boolean" use="optional" name="ArrivalDateBased"/>
   <xs:attribute type="xs:int" use="optional" name="FixedPatternLength"/>
 </xs:complexType>
 


Nested Class Summary
static class LengthsOfStay.LengthOfStay
          A collection of patterns defining allowable lengths of stay (LOS).
 
Constructor Summary
LengthsOfStay()
           
 
Method Summary
 void addLengthOfStay(LengthsOfStay.LengthOfStay item)
          Add a 'LengthOfStay' element item.
 void clearLengthOfStaies()
          Remove all 'LengthOfStay' element items.
 java.lang.Boolean getArrivalDateBased()
          Get the 'ArrivalDateBased' attribute value.
 java.lang.Integer getFixedPatternLength()
          Get the 'FixedPatternLength' attribute value.
 java.util.List<LengthsOfStay.LengthOfStay> getLengthOfStaies()
          Get the list of 'LengthOfStay' element items.
 LengthsOfStay.LengthOfStay getLengthOfStay(int index)
          Get 'LengthOfStay' element item by position.
 void setArrivalDateBased(java.lang.Boolean arrivalDateBased)
          Set the 'ArrivalDateBased' attribute value.
 void setFixedPatternLength(java.lang.Integer fixedPatternLength)
          Set the 'FixedPatternLength' attribute value.
 void setLengthOfStaies(java.util.List<LengthsOfStay.LengthOfStay> list)
          Set the list of 'LengthOfStay' element items.
 int sizeLengthOfStaies()
          Get the number of 'LengthOfStay' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LengthsOfStay

public LengthsOfStay()
Method Detail

getLengthOfStaies

public java.util.List<LengthsOfStay.LengthOfStay> getLengthOfStaies()
Get the list of 'LengthOfStay' element items.

Returns:
list

setLengthOfStaies

public void setLengthOfStaies(java.util.List<LengthsOfStay.LengthOfStay> list)
Set the list of 'LengthOfStay' element items.

Parameters:
list -

sizeLengthOfStaies

public int sizeLengthOfStaies()
Get the number of 'LengthOfStay' element items.

Returns:
count

addLengthOfStay

public void addLengthOfStay(LengthsOfStay.LengthOfStay item)
Add a 'LengthOfStay' element item.

Parameters:
item -

getLengthOfStay

public LengthsOfStay.LengthOfStay getLengthOfStay(int index)
Get 'LengthOfStay' element item by position.

Parameters:
index -
Returns:
item

clearLengthOfStaies

public void clearLengthOfStaies()
Remove all 'LengthOfStay' element items.


getArrivalDateBased

public java.lang.Boolean getArrivalDateBased()
Get the 'ArrivalDateBased' attribute value. True indicates that LOS is based on arrival date. False indicates that LOS is based on stay date.

Returns:
value

setArrivalDateBased

public void setArrivalDateBased(java.lang.Boolean arrivalDateBased)
Set the 'ArrivalDateBased' attribute value. True indicates that LOS is based on arrival date. False indicates that LOS is based on stay date.

Parameters:
arrivalDateBased -

getFixedPatternLength

public java.lang.Integer getFixedPatternLength()
Get the 'FixedPatternLength' attribute value. The number of elements in a fixed pattern length of stay (FPLOS) array.

Returns:
value

setFixedPatternLength

public void setFixedPatternLength(java.lang.Integer fixedPatternLength)
Set the 'FixedPatternLength' attribute value. The number of elements in a fixed pattern length of stay (FPLOS) array.

Parameters:
fixedPatternLength -