org.ota.hotel
Class InvBlock.RoomTypes.Room

java.lang.Object
  extended by org.ota.hotel.InvBlock.RoomTypes.Room
Enclosing class:
InvBlock.RoomTypes

public static class InvBlock.RoomTypes.Room
extends java.lang.Object

This is a specific room type defined within an inventory block. 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:InvBlockRoomType" name="RoomType" maxOccurs="99"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="InvBlockRoomType">
   <xs:sequence>
     <xs:element name="RoomTypeAllocations" minOccurs="0" maxOccurs="10">
       <!-- Reference to inner class RoomTypeAllocations -->
     </xs:element>
     <xs:element name="RatePlans" minOccurs="0">
       <!-- Reference to inner class RatePlans -->
     </xs:element>
     <xs:element name="DaysOfWeeks" minOccurs="0">
       <!-- Reference to inner class DaysOfWeeks -->
     </xs:element>
   </xs:sequence>
   <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
   <xs:attribute type="xs:string" use="optional" name="RoomTypeCode"/>
 </xs:complexType>
 


Nested Class Summary
static class InvBlock.RoomTypes.Room.DaysOfWeeks
          This is available so multiple rules or multiple date ranges may be applied.
static class InvBlock.RoomTypes.Room.RatePlans
          This allows for multiple rate plans for a specific room type.
static class InvBlock.RoomTypes.Room.RoomTypeAllocations
          This allows for multiple allocations to be blocked for a specific room type.
 
Constructor Summary
InvBlock.RoomTypes.Room()
           
 
Method Summary
 void addRoomTypeAllocation(InvBlock.RoomTypes.Room.RoomTypeAllocations item)
          Add a 'RoomTypeAllocations' element item.
 void clearRoomTypeAllocations()
          Remove all 'RoomTypeAllocations' element items.
 DateTimeSpanGroup getDateTimeSpanGroup()
          Get the 'DateTimeSpanGroup' attributeGroup value.
 InvBlock.RoomTypes.Room.DaysOfWeeks getDaysOfWeeks()
          Get the 'DaysOfWeeks' element value.
 InvBlock.RoomTypes.Room.RatePlans getRatePlans()
          Get the 'RatePlans' element value.
 InvBlock.RoomTypes.Room.RoomTypeAllocations getRoomTypeAllocation(int index)
          Get 'RoomTypeAllocations' element item by position.
 java.util.List<InvBlock.RoomTypes.Room.RoomTypeAllocations> getRoomTypeAllocations()
          Get the list of 'RoomTypeAllocations' element items.
 java.lang.String getRoomTypeCode()
          Get the 'RoomTypeCode' attribute value.
 void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
          Set the 'DateTimeSpanGroup' attributeGroup value.
 void setDaysOfWeeks(InvBlock.RoomTypes.Room.DaysOfWeeks daysOfWeeks)
          Set the 'DaysOfWeeks' element value.
 void setRatePlans(InvBlock.RoomTypes.Room.RatePlans ratePlans)
          Set the 'RatePlans' element value.
 void setRoomTypeAllocations(java.util.List<InvBlock.RoomTypes.Room.RoomTypeAllocations> list)
          Set the list of 'RoomTypeAllocations' element items.
 void setRoomTypeCode(java.lang.String roomTypeCode)
          Set the 'RoomTypeCode' attribute value.
 int sizeRoomTypeAllocations()
          Get the number of 'RoomTypeAllocations' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvBlock.RoomTypes.Room

public InvBlock.RoomTypes.Room()
Method Detail

getRoomTypeAllocations

public java.util.List<InvBlock.RoomTypes.Room.RoomTypeAllocations> getRoomTypeAllocations()
Get the list of 'RoomTypeAllocations' element items. Used to define the room types and all of their supporting data within a room block.

Returns:
list

setRoomTypeAllocations

public void setRoomTypeAllocations(java.util.List<InvBlock.RoomTypes.Room.RoomTypeAllocations> list)
Set the list of 'RoomTypeAllocations' element items. Used to define the room types and all of their supporting data within a room block.

Parameters:
list -

sizeRoomTypeAllocations

public int sizeRoomTypeAllocations()
Get the number of 'RoomTypeAllocations' element items.

Returns:
count

addRoomTypeAllocation

public void addRoomTypeAllocation(InvBlock.RoomTypes.Room.RoomTypeAllocations item)
Add a 'RoomTypeAllocations' element item.

Parameters:
item -

getRoomTypeAllocation

public InvBlock.RoomTypes.Room.RoomTypeAllocations getRoomTypeAllocation(int index)
Get 'RoomTypeAllocations' element item by position.

Parameters:
index -
Returns:
item

clearRoomTypeAllocations

public void clearRoomTypeAllocations()
Remove all 'RoomTypeAllocations' element items.


getRatePlans

public InvBlock.RoomTypes.Room.RatePlans getRatePlans()
Get the 'RatePlans' element value. Used to define the room types and all of their supporting data within a room block.

Returns:
value

setRatePlans

public void setRatePlans(InvBlock.RoomTypes.Room.RatePlans ratePlans)
Set the 'RatePlans' element value. Used to define the room types and all of their supporting data within a room block.

Parameters:
ratePlans -

getDaysOfWeeks

public InvBlock.RoomTypes.Room.DaysOfWeeks getDaysOfWeeks()
Get the 'DaysOfWeeks' element value. Used to define the room types and all of their supporting data within a room block.

Returns:
value

setDaysOfWeeks

public void setDaysOfWeeks(InvBlock.RoomTypes.Room.DaysOfWeeks daysOfWeeks)
Set the 'DaysOfWeeks' element value. Used to define the room types and all of their supporting data within a room block.

Parameters:
daysOfWeeks -

getDateTimeSpanGroup

public DateTimeSpanGroup getDateTimeSpanGroup()
Get the 'DateTimeSpanGroup' attributeGroup value. This is the date range to which rooms are assigned to the inventory block.

Returns:
value

setDateTimeSpanGroup

public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
Set the 'DateTimeSpanGroup' attributeGroup value. This is the date range to which rooms are assigned to the inventory block.

Parameters:
dateTimeSpanGroup -

getRoomTypeCode

public java.lang.String getRoomTypeCode()
Get the 'RoomTypeCode' attribute value. Specfic system room type code (e.g. GENR, CONC, SUIT).

Returns:
value

setRoomTypeCode

public void setRoomTypeCode(java.lang.String roomTypeCode)
Set the 'RoomTypeCode' attribute value. Specfic system room type code (e.g. GENR, CONC, SUIT).

Parameters:
roomTypeCode -