org.ota.itin
Class TravelSegment.Reservation.RoomRates.RoomRate

java.lang.Object
  extended by org.ota.itin.TravelSegment.Reservation.RoomRates.RoomRate
Enclosing class:
TravelSegment.Reservation.RoomRates

public static class TravelSegment.Reservation.RoomRates.RoomRate
extends java.lang.Object

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" type="ns:RoomRateLiteType" name="RoomRate" maxOccurs="9"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="RoomRateLiteType">
   <xs:sequence>
     <xs:element type="ns:RateLiteType" name="Rates"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:EffectiveExpireOptionalDateGroup"/>
   <xs:attribute type="xs:string" name="RoomTypeCode"/>
   <xs:attribute type="xs:string" name="InvBlockCode"/>
   <xs:attribute type="xs:int" use="optional" name="NumberOfUnits"/>
   <xs:attributeGroup ref="ns:RatePlanGroup"/>
 </xs:complexType>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="RateLiteType">
   <xs:sequence>
     <xs:element type="ns:AmountLiteType" name="Rate" maxOccurs="unbounded">
       <!-- Reference to inner class Rate -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class TravelSegment.Reservation.RoomRates.RoomRate.Rate
          The Lite Rate contains the Base amount as well as the associated taxes.
 
Constructor Summary
TravelSegment.Reservation.RoomRates.RoomRate()
           
 
Method Summary
 void addRate(TravelSegment.Reservation.RoomRates.RoomRate.Rate item)
          Add a 'Rate' element item.
 void clearRates()
          Remove all 'Rate' element items.
 EffectiveExpireOptionalDateGroup getEffectiveExpireOptionalDateGroup()
          Get the 'EffectiveExpireOptionalDateGroup' attributeGroup value.
 java.lang.String getInvBlockCode()
          Get the 'InvBlockCode' attribute value.
 java.lang.Integer getNumberOfUnits()
          Get the 'NumberOfUnits' attribute value.
 TravelSegment.Reservation.RoomRates.RoomRate.Rate getRate(int index)
          Get 'Rate' element item by position.
 RatePlanGroup getRatePlanGroup()
          Get the 'RatePlanGroup' attributeGroup value.
 java.util.List<TravelSegment.Reservation.RoomRates.RoomRate.Rate> getRates()
          Get the list of 'Rate' element items.
 java.lang.String getRoomTypeCode()
          Get the 'RoomTypeCode' attribute value.
 void setEffectiveExpireOptionalDateGroup(EffectiveExpireOptionalDateGroup effectiveExpireOptionalDateGroup)
          Set the 'EffectiveExpireOptionalDateGroup' attributeGroup value.
 void setInvBlockCode(java.lang.String invBlockCode)
          Set the 'InvBlockCode' attribute value.
 void setNumberOfUnits(java.lang.Integer numberOfUnits)
          Set the 'NumberOfUnits' attribute value.
 void setRatePlanGroup(RatePlanGroup ratePlanGroup)
          Set the 'RatePlanGroup' attributeGroup value.
 void setRates(java.util.List<TravelSegment.Reservation.RoomRates.RoomRate.Rate> list)
          Set the list of 'Rate' element items.
 void setRoomTypeCode(java.lang.String roomTypeCode)
          Set the 'RoomTypeCode' attribute value.
 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

TravelSegment.Reservation.RoomRates.RoomRate

public TravelSegment.Reservation.RoomRates.RoomRate()
Method Detail

getRates

public java.util.List<TravelSegment.Reservation.RoomRates.RoomRate.Rate> getRates()
Get the list of 'Rate' element items. Summary version of the RateType, initially created for the Travel Itinerary Message set.

Returns:
list

setRates

public void setRates(java.util.List<TravelSegment.Reservation.RoomRates.RoomRate.Rate> list)
Set the list of 'Rate' element items. Summary version of the RateType, initially created for the Travel Itinerary Message set.

Parameters:
list -

sizeRates

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

Returns:
count

addRate

public void addRate(TravelSegment.Reservation.RoomRates.RoomRate.Rate item)
Add a 'Rate' element item.

Parameters:
item -

getRate

public TravelSegment.Reservation.RoomRates.RoomRate.Rate getRate(int index)
Get 'Rate' element item by position.

Parameters:
index -
Returns:
item

clearRates

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


getEffectiveExpireOptionalDateGroup

public EffectiveExpireOptionalDateGroup getEffectiveExpireOptionalDateGroup()
Get the 'EffectiveExpireOptionalDateGroup' attributeGroup value.

Returns:
value

setEffectiveExpireOptionalDateGroup

public void setEffectiveExpireOptionalDateGroup(EffectiveExpireOptionalDateGroup effectiveExpireOptionalDateGroup)
Set the 'EffectiveExpireOptionalDateGroup' attributeGroup value.

Parameters:
effectiveExpireOptionalDateGroup -

getRoomTypeCode

public java.lang.String getRoomTypeCode()
Get the 'RoomTypeCode' attribute value. Specfic system room type code, ex: A1K, A1Q etc.

Returns:
value

setRoomTypeCode

public void setRoomTypeCode(java.lang.String roomTypeCode)
Set the 'RoomTypeCode' attribute value. Specfic system room type code, ex: A1K, A1Q etc.

Parameters:
roomTypeCode -

getInvBlockCode

public java.lang.String getInvBlockCode()
Get the 'InvBlockCode' attribute value. Code that identifies an inventory block.

Returns:
value

setInvBlockCode

public void setInvBlockCode(java.lang.String invBlockCode)
Set the 'InvBlockCode' attribute value. Code that identifies an inventory block.

Parameters:
invBlockCode -

getNumberOfUnits

public java.lang.Integer getNumberOfUnits()
Get the 'NumberOfUnits' attribute value.

Returns:
value

setNumberOfUnits

public void setNumberOfUnits(java.lang.Integer numberOfUnits)
Set the 'NumberOfUnits' attribute value.

Parameters:
numberOfUnits -

getRatePlanGroup

public RatePlanGroup getRatePlanGroup()
Get the 'RatePlanGroup' attributeGroup value.

Returns:
value

setRatePlanGroup

public void setRatePlanGroup(RatePlanGroup ratePlanGroup)
Set the 'RatePlanGroup' attributeGroup value.

Parameters:
ratePlanGroup -