org.ota.hotel
Class AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates

java.lang.Object
  extended by org.ota.hotel.AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates
Enclosing class:
AvailGetRQ.HotelAvailRequest

public static class AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates
extends java.lang.Object

Collection of Length of Stay elements. These LOS elements indicate what LOS restrictions are to be included in the response. 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="LengthsOfStayCandidates" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="LengthOfStayCandidate" minOccurs="0" maxOccurs="unbounded">
         <!-- Reference to inner class LengthOfStayCandidate -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:boolean" name="SendAllLengthsOfStay"/>
     <xs:attribute type="xs:int" use="optional" name="FixedPatternLength"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates.LengthOfStayCandidate
          A collection of patterns defining allowable lengths of stay (LOS).
 
Constructor Summary
AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates()
           
 
Method Summary
 void addLengthOfStayCandidate(AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates.LengthOfStayCandidate item)
          Add a 'LengthOfStayCandidate' element item.
 void clearLengthOfStayCandidates()
          Remove all 'LengthOfStayCandidate' element items.
 java.lang.Integer getFixedPatternLength()
          Get the 'FixedPatternLength' attribute value.
 AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates.LengthOfStayCandidate getLengthOfStayCandidate(int index)
          Get 'LengthOfStayCandidate' element item by position.
 java.util.List<AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates.LengthOfStayCandidate> getLengthOfStayCandidates()
          Get the list of 'LengthOfStayCandidate' element items.
 java.lang.Boolean getSendAllLengthsOfStay()
          Get the 'SendAllLengthsOfStay' attribute value.
 void setFixedPatternLength(java.lang.Integer fixedPatternLength)
          Set the 'FixedPatternLength' attribute value.
 void setLengthOfStayCandidates(java.util.List<AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates.LengthOfStayCandidate> list)
          Set the list of 'LengthOfStayCandidate' element items.
 void setSendAllLengthsOfStay(java.lang.Boolean sendAllLengthsOfStay)
          Set the 'SendAllLengthsOfStay' attribute value.
 int sizeLengthOfStayCandidates()
          Get the number of 'LengthOfStayCandidate' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates

public AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates()
Method Detail

getLengthOfStayCandidates

public java.util.List<AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates.LengthOfStayCandidate> getLengthOfStayCandidates()
Get the list of 'LengthOfStayCandidate' element items.

Returns:
list

setLengthOfStayCandidates

public void setLengthOfStayCandidates(java.util.List<AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates.LengthOfStayCandidate> list)
Set the list of 'LengthOfStayCandidate' element items.

Parameters:
list -

sizeLengthOfStayCandidates

public int sizeLengthOfStayCandidates()
Get the number of 'LengthOfStayCandidate' element items.

Returns:
count

addLengthOfStayCandidate

public void addLengthOfStayCandidate(AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates.LengthOfStayCandidate item)
Add a 'LengthOfStayCandidate' element item.

Parameters:
item -

getLengthOfStayCandidate

public AvailGetRQ.HotelAvailRequest.LengthsOfStayCandidates.LengthOfStayCandidate getLengthOfStayCandidate(int index)
Get 'LengthOfStayCandidate' element item by position.

Parameters:
index -
Returns:
item

clearLengthOfStayCandidates

public void clearLengthOfStayCandidates()
Remove all 'LengthOfStayCandidate' element items.


getSendAllLengthsOfStay

public java.lang.Boolean getSendAllLengthsOfStay()
Get the 'SendAllLengthsOfStay' attribute value. Boolean Flag indicating if all lengths of stay types should be sent or only the ones requested in LengthOfStayCandidate.

Returns:
value

setSendAllLengthsOfStay

public void setSendAllLengthsOfStay(java.lang.Boolean sendAllLengthsOfStay)
Set the 'SendAllLengthsOfStay' attribute value. Boolean Flag indicating if all lengths of stay types should be sent or only the ones requested in LengthOfStayCandidate.

Parameters:
sendAllLengthsOfStay -

getFixedPatternLength

public java.lang.Integer getFixedPatternLength()
Get the 'FixedPatternLength' attribute value. The number of elements in the requested 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 the requested fixed pattern length of stay (FPLOS) array

Parameters:
fixedPatternLength -