org.ota.hotel
Class Rate

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

public class Rate
extends java.lang.Object

Individual rate amount. This rate is valid for a range of number of occupants and an occupant type. 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="RateType">
   <xs:sequence>
     <xs:element name="Rate" maxOccurs="unbounded">
       <!-- Reference to inner class RateInner -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class Rate.RateInner
          The Rate contains a collection of elements that define the amount of the rate, associated fees, additional occupant amounts as well as payment and cancellation policies.
 
Constructor Summary
Rate()
           
 
Method Summary
 void addRate(Rate.RateInner item)
          Add a 'Rate' element item.
 void clearRates()
          Remove all 'Rate' element items.
 Rate.RateInner getRate(int index)
          Get 'Rate' element item by position.
 java.util.List<Rate.RateInner> getRates()
          Get the list of 'Rate' element items.
 void setRates(java.util.List<Rate.RateInner> list)
          Set the list of 'Rate' element items.
 int sizeRates()
          Get the number of 'Rate' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rate

public Rate()
Method Detail

getRates

public java.util.List<Rate.RateInner> getRates()
Get the list of 'Rate' element items.

Returns:
list

setRates

public void setRates(java.util.List<Rate.RateInner> list)
Set the list of 'Rate' element items.

Parameters:
list -

sizeRates

public int sizeRates()
Get the number of 'Rate' element items.

Returns:
count

addRate

public void addRate(Rate.RateInner item)
Add a 'Rate' element item.

Parameters:
item -

getRate

public Rate.RateInner getRate(int index)
Get 'Rate' element item by position.

Parameters:
index -
Returns:
item

clearRates

public void clearRates()
Remove all 'Rate' element items.