org.ota.hotel
Class InvBlock.RoomTypes.Room.RoomTypeAllocations.RoomTypeAllocation

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

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

This is the number of rooms blocked for a specific room type for specific dates. 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="RoomTypeAllocation" maxOccurs="unbounded">
   <xs:complexType>
     <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
     <xs:attribute type="xs:int" use="optional" name="NumberOfUnits"/>
     <xs:attribute type="xs:int" use="optional" name="CompRoomQuantity"/>
     <xs:attribute type="xs:int" use="optional" name="CompRoomFactor"/>
     <xs:attribute type="xs:boolean" use="optional" name="EndDateIndicator"/>
     <xs:attribute type="xs:string" use="optional" name="SellLimit"/>
     <xs:attribute type="xs:string" use="optional" name="ProcureBlockCode"/>
     <xs:attribute type="xs:string" use="optional" name="AllocationID"/>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
InvBlock.RoomTypes.Room.RoomTypeAllocations.RoomTypeAllocation()
           
 
Method Summary
 java.lang.String getAllocationID()
          Get the 'AllocationID' attribute value.
 java.lang.Integer getCompRoomFactor()
          Get the 'CompRoomFactor' attribute value.
 java.lang.Integer getCompRoomQuantity()
          Get the 'CompRoomQuantity' attribute value.
 DateTimeSpanGroup getDateTimeSpanGroup()
          Get the 'DateTimeSpanGroup' attributeGroup value.
 java.lang.Boolean getEndDateIndicator()
          Get the 'EndDateIndicator' attribute value.
 java.lang.Integer getNumberOfUnits()
          Get the 'NumberOfUnits' attribute value.
 java.lang.String getProcureBlockCode()
          Get the 'ProcureBlockCode' attribute value.
 java.lang.String getSellLimit()
          Get the 'SellLimit' attribute value.
 void setAllocationID(java.lang.String allocationID)
          Set the 'AllocationID' attribute value.
 void setCompRoomFactor(java.lang.Integer compRoomFactor)
          Set the 'CompRoomFactor' attribute value.
 void setCompRoomQuantity(java.lang.Integer compRoomQuantity)
          Set the 'CompRoomQuantity' attribute value.
 void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
          Set the 'DateTimeSpanGroup' attributeGroup value.
 void setEndDateIndicator(java.lang.Boolean endDateIndicator)
          Set the 'EndDateIndicator' attribute value.
 void setNumberOfUnits(java.lang.Integer numberOfUnits)
          Set the 'NumberOfUnits' attribute value.
 void setProcureBlockCode(java.lang.String procureBlockCode)
          Set the 'ProcureBlockCode' attribute value.
 void setSellLimit(java.lang.String sellLimit)
          Set the 'SellLimit' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvBlock.RoomTypes.Room.RoomTypeAllocations.RoomTypeAllocation

public InvBlock.RoomTypes.Room.RoomTypeAllocations.RoomTypeAllocation()
Method Detail

getDateTimeSpanGroup

public DateTimeSpanGroup getDateTimeSpanGroup()
Get the 'DateTimeSpanGroup' attributeGroup value. This is the date range to which rooms are allocated for availability by room type.

Returns:
value

setDateTimeSpanGroup

public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup)
Set the 'DateTimeSpanGroup' attributeGroup value. This is the date range to which rooms are allocated for availability by room type.

Parameters:
dateTimeSpanGroup -

getNumberOfUnits

public java.lang.Integer getNumberOfUnits()
Get the 'NumberOfUnits' attribute value. The number of rooms allocated as available for the dates specified in the DateTimeSpanGroup.

Returns:
value

setNumberOfUnits

public void setNumberOfUnits(java.lang.Integer numberOfUnits)
Set the 'NumberOfUnits' attribute value. The number of rooms allocated as available for the dates specified in the DateTimeSpanGroup.

Parameters:
numberOfUnits -

getCompRoomQuantity

public java.lang.Integer getCompRoomQuantity()
Get the 'CompRoomQuantity' attribute value. The number of complimentary rooms allocated as part of the inventory block. This may be a flat number of rooms or it may be used in conjunction with CompRoomFactor.

Returns:
value

setCompRoomQuantity

public void setCompRoomQuantity(java.lang.Integer compRoomQuantity)
Set the 'CompRoomQuantity' attribute value. The number of complimentary rooms allocated as part of the inventory block. This may be a flat number of rooms or it may be used in conjunction with CompRoomFactor.

Parameters:
compRoomQuantity -

getCompRoomFactor

public java.lang.Integer getCompRoomFactor()
Get the 'CompRoomFactor' attribute value. Used to indicate how many rooms need to be sold before a complimentary room is granted (e.g. CompRoomQuantity="1" and CompRoomFactor="100" means 1 complimentary room is granted per 100 rooms sold).

Returns:
value

setCompRoomFactor

public void setCompRoomFactor(java.lang.Integer compRoomFactor)
Set the 'CompRoomFactor' attribute value. Used to indicate how many rooms need to be sold before a complimentary room is granted (e.g. CompRoomQuantity="1" and CompRoomFactor="100" means 1 complimentary room is granted per 100 rooms sold).

Parameters:
compRoomFactor -

getEndDateIndicator

public java.lang.Boolean getEndDateIndicator()
Get the 'EndDateIndicator' attribute value. If true, this indicator designates that the room allocation is applied through to the End date in the RoomType DateTimeSpanGroup if it exists or to the End date in the InvBlock DateTimeSpanGroup. This would be used in place of RoomTypeAllocation/Duration and RoomTypeAllocation/End.

Returns:
value

setEndDateIndicator

public void setEndDateIndicator(java.lang.Boolean endDateIndicator)
Set the 'EndDateIndicator' attribute value. If true, this indicator designates that the room allocation is applied through to the End date in the RoomType DateTimeSpanGroup if it exists or to the End date in the InvBlock DateTimeSpanGroup. This would be used in place of RoomTypeAllocation/Duration and RoomTypeAllocation/End.

Parameters:
endDateIndicator -

getSellLimit

public java.lang.String getSellLimit()
Get the 'SellLimit' attribute value. The contracted quantity or ceiling of inventory, which may differ from the NumberOfUnits allocated.

Returns:
value

setSellLimit

public void setSellLimit(java.lang.String sellLimit)
Set the 'SellLimit' attribute value. The contracted quantity or ceiling of inventory, which may differ from the NumberOfUnits allocated.

Parameters:
sellLimit -

getProcureBlockCode

public java.lang.String getProcureBlockCode()
Get the 'ProcureBlockCode' attribute value. The block from which to take inventory when NumberOfUnits is depleted. This is used in conjunction with the SellLimit attribute. If this attribute is not present, inventory is taken from general inventory.

Returns:
value

setProcureBlockCode

public void setProcureBlockCode(java.lang.String procureBlockCode)
Set the 'ProcureBlockCode' attribute value. The block from which to take inventory when NumberOfUnits is depleted. This is used in conjunction with the SellLimit attribute. If this attribute is not present, inventory is taken from general inventory.

Parameters:
procureBlockCode -

getAllocationID

public java.lang.String getAllocationID()
Get the 'AllocationID' attribute value. Used to refer to a specific allocation already in the receiving system.

Returns:
value

setAllocationID

public void setAllocationID(java.lang.String allocationID)
Set the 'AllocationID' attribute value. Used to refer to a specific allocation already in the receiving system.

Parameters:
allocationID -