org.ota.hotel
Class HotelDescriptiveContent.Policies

java.lang.Object
  extended by org.ota.hotel.HotelDescriptiveContent.Policies
Enclosing class:
HotelDescriptiveContent

public static class HotelDescriptiveContent.Policies
extends java.lang.Object

A collection of policy information as it applies to the hotel. 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="Policies" minOccurs="0">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:PoliciesType">
         <xs:attribute type="xs:boolean" use="optional" name="GuaranteeRoomTypeViaGDS"/>
         <xs:attribute type="xs:boolean" use="optional" name="GuaranteeRoomTypeViaCRC"/>
         <xs:attribute type="xs:boolean" use="optional" name="GuaranteeRoomTypeViaProperty"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PoliciesType">
   <xs:sequence>
     <xs:element name="Policy" maxOccurs="unbounded">
       <!-- Reference to inner class Policy -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class HotelDescriptiveContent.Policies.Policy
          Describes the policies of the hotel, such as the type of payments, or whether children or pets are accepted.
 
Constructor Summary
HotelDescriptiveContent.Policies()
           
 
Method Summary
 void addPolicy(HotelDescriptiveContent.Policies.Policy item)
          Add a 'Policy' element item.
 void clearPolicies()
          Remove all 'Policy' element items.
 java.lang.Boolean getGuaranteeRoomTypeViaCRC()
          Get the 'GuaranteeRoomTypeViaCRC' attribute value.
 java.lang.Boolean getGuaranteeRoomTypeViaGDS()
          Get the 'GuaranteeRoomTypeViaGDS' attribute value.
 java.lang.Boolean getGuaranteeRoomTypeViaProperty()
          Get the 'GuaranteeRoomTypeViaProperty' attribute value.
 java.util.List<HotelDescriptiveContent.Policies.Policy> getPolicies()
          Get the list of 'Policy' element items.
 HotelDescriptiveContent.Policies.Policy getPolicy(int index)
          Get 'Policy' element item by position.
 void setGuaranteeRoomTypeViaCRC(java.lang.Boolean guaranteeRoomTypeViaCRC)
          Set the 'GuaranteeRoomTypeViaCRC' attribute value.
 void setGuaranteeRoomTypeViaGDS(java.lang.Boolean guaranteeRoomTypeViaGDS)
          Set the 'GuaranteeRoomTypeViaGDS' attribute value.
 void setGuaranteeRoomTypeViaProperty(java.lang.Boolean guaranteeRoomTypeViaProperty)
          Set the 'GuaranteeRoomTypeViaProperty' attribute value.
 void setPolicies(java.util.List<HotelDescriptiveContent.Policies.Policy> list)
          Set the list of 'Policy' element items.
 int sizePolicies()
          Get the number of 'Policy' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelDescriptiveContent.Policies

public HotelDescriptiveContent.Policies()
Method Detail

getPolicies

public java.util.List<HotelDescriptiveContent.Policies.Policy> getPolicies()
Get the list of 'Policy' element items. Describes the policies of the hotel, such as the type of payments, or whether children or pets are accepted.

Returns:
list

setPolicies

public void setPolicies(java.util.List<HotelDescriptiveContent.Policies.Policy> list)
Set the list of 'Policy' element items. Describes the policies of the hotel, such as the type of payments, or whether children or pets are accepted.

Parameters:
list -

sizePolicies

public int sizePolicies()
Get the number of 'Policy' element items.

Returns:
count

addPolicy

public void addPolicy(HotelDescriptiveContent.Policies.Policy item)
Add a 'Policy' element item.

Parameters:
item -

getPolicy

public HotelDescriptiveContent.Policies.Policy getPolicy(int index)
Get 'Policy' element item by position.

Parameters:
index -
Returns:
item

clearPolicies

public void clearPolicies()
Remove all 'Policy' element items.


getGuaranteeRoomTypeViaGDS

public java.lang.Boolean getGuaranteeRoomTypeViaGDS()
Get the 'GuaranteeRoomTypeViaGDS' attribute value. If true, indicates that room types can be guaranteed on reservations booked through GDS channels.

Returns:
value

setGuaranteeRoomTypeViaGDS

public void setGuaranteeRoomTypeViaGDS(java.lang.Boolean guaranteeRoomTypeViaGDS)
Set the 'GuaranteeRoomTypeViaGDS' attribute value. If true, indicates that room types can be guaranteed on reservations booked through GDS channels.

Parameters:
guaranteeRoomTypeViaGDS -

getGuaranteeRoomTypeViaCRC

public java.lang.Boolean getGuaranteeRoomTypeViaCRC()
Get the 'GuaranteeRoomTypeViaCRC' attribute value. If true, indicates that room types can be guaranteed on reservations booked by central reservation centers.

Returns:
value

setGuaranteeRoomTypeViaCRC

public void setGuaranteeRoomTypeViaCRC(java.lang.Boolean guaranteeRoomTypeViaCRC)
Set the 'GuaranteeRoomTypeViaCRC' attribute value. If true, indicates that room types can be guaranteed on reservations booked by central reservation centers.

Parameters:
guaranteeRoomTypeViaCRC -

getGuaranteeRoomTypeViaProperty

public java.lang.Boolean getGuaranteeRoomTypeViaProperty()
Get the 'GuaranteeRoomTypeViaProperty' attribute value. If true, indicates that room types can be guaranteed on reservations booked by the property.

Returns:
value

setGuaranteeRoomTypeViaProperty

public void setGuaranteeRoomTypeViaProperty(java.lang.Boolean guaranteeRoomTypeViaProperty)
Set the 'GuaranteeRoomTypeViaProperty' attribute value. If true, indicates that room types can be guaranteed on reservations booked by the property.

Parameters:
guaranteeRoomTypeViaProperty -