org.ota.hotel
Class HotelSearchCriteria

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

public class HotelSearchCriteria
extends java.lang.Object

A collection of single search criterion items. 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="HotelSearchCriteriaType">
   <xs:sequence>
     <xs:element name="Criterion" maxOccurs="unbounded">
       <!-- Reference to inner class Criterion -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:boolean" use="optional" name="AvailableOnlyIndicator"/>
 </xs:complexType>
 


Nested Class Summary
static class HotelSearchCriteria.Criterion
          Child elements that identify a single search criterion by criteria type.
 
Constructor Summary
HotelSearchCriteria()
           
 
Method Summary
 void addCriterion(HotelSearchCriteria.Criterion item)
          Add a 'Criterion' element item.
 void clearCriterions()
          Remove all 'Criterion' element items.
 java.lang.Boolean getAvailableOnlyIndicator()
          Get the 'AvailableOnlyIndicator' attribute value.
 HotelSearchCriteria.Criterion getCriterion(int index)
          Get 'Criterion' element item by position.
 java.util.List<HotelSearchCriteria.Criterion> getCriterions()
          Get the list of 'Criterion' element items.
 void setAvailableOnlyIndicator(java.lang.Boolean availableOnlyIndicator)
          Set the 'AvailableOnlyIndicator' attribute value.
 void setCriterions(java.util.List<HotelSearchCriteria.Criterion> list)
          Set the list of 'Criterion' element items.
 int sizeCriterions()
          Get the number of 'Criterion' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelSearchCriteria

public HotelSearchCriteria()
Method Detail

getCriterions

public java.util.List<HotelSearchCriteria.Criterion> getCriterions()
Get the list of 'Criterion' element items.

Returns:
list

setCriterions

public void setCriterions(java.util.List<HotelSearchCriteria.Criterion> list)
Set the list of 'Criterion' element items.

Parameters:
list -

sizeCriterions

public int sizeCriterions()
Get the number of 'Criterion' element items.

Returns:
count

addCriterion

public void addCriterion(HotelSearchCriteria.Criterion item)
Add a 'Criterion' element item.

Parameters:
item -

getCriterion

public HotelSearchCriteria.Criterion getCriterion(int index)
Get 'Criterion' element item by position.

Parameters:
index -
Returns:
item

clearCriterions

public void clearCriterions()
Remove all 'Criterion' element items.


getAvailableOnlyIndicator

public java.lang.Boolean getAvailableOnlyIndicator()
Get the 'AvailableOnlyIndicator' attribute value. When true, return only hotels that are available.

Returns:
value

setAvailableOnlyIndicator

public void setAvailableOnlyIndicator(java.lang.Boolean availableOnlyIndicator)
Set the 'AvailableOnlyIndicator' attribute value. When true, return only hotels that are available.

Parameters:
availableOnlyIndicator -