org.ota.hotel
Class RoomStay.RoomRates.RoomRate.Restrictions

java.lang.Object
  extended by org.ota.hotel.RoomStay.RoomRates.RoomRate.Restrictions
Enclosing class:
RoomStay.RoomRates.RoomRate

public static class RoomStay.RoomRates.RoomRate.Restrictions
extends java.lang.Object

A collections of restrictions. 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="Restrictions" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Restriction" maxOccurs="unbounded">
         <!-- Reference to inner class Restriction -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class RoomStay.RoomRates.RoomRate.Restrictions.Restriction
          Information on the restriction associated with the RoomRate element.
 
Constructor Summary
RoomStay.RoomRates.RoomRate.Restrictions()
           
 
Method Summary
 void addRestriction(RoomStay.RoomRates.RoomRate.Restrictions.Restriction item)
          Add a 'Restriction' element item.
 void clearRestrictions()
          Remove all 'Restriction' element items.
 RoomStay.RoomRates.RoomRate.Restrictions.Restriction getRestriction(int index)
          Get 'Restriction' element item by position.
 java.util.List<RoomStay.RoomRates.RoomRate.Restrictions.Restriction> getRestrictions()
          Get the list of 'Restriction' element items.
 void setRestrictions(java.util.List<RoomStay.RoomRates.RoomRate.Restrictions.Restriction> list)
          Set the list of 'Restriction' element items.
 int sizeRestrictions()
          Get the number of 'Restriction' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoomStay.RoomRates.RoomRate.Restrictions

public RoomStay.RoomRates.RoomRate.Restrictions()
Method Detail

getRestrictions

public java.util.List<RoomStay.RoomRates.RoomRate.Restrictions.Restriction> getRestrictions()
Get the list of 'Restriction' element items.

Returns:
list

setRestrictions

public void setRestrictions(java.util.List<RoomStay.RoomRates.RoomRate.Restrictions.Restriction> list)
Set the list of 'Restriction' element items.

Parameters:
list -

sizeRestrictions

public int sizeRestrictions()
Get the number of 'Restriction' element items.

Returns:
count

addRestriction

public void addRestriction(RoomStay.RoomRates.RoomRate.Restrictions.Restriction item)
Add a 'Restriction' element item.

Parameters:
item -

getRestriction

public RoomStay.RoomRates.RoomRate.Restrictions.Restriction getRestriction(int index)
Get 'Restriction' element item by position.

Parameters:
index -
Returns:
item

clearRestrictions

public void clearRestrictions()
Remove all 'Restriction' element items.