org.ota.hotel
Class InvBlock

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

public class InvBlock
extends java.lang.Object

Used to define the details of an inventory block. 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="InvBlockType">
   <xs:sequence>
     <xs:element name="HotelRef" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:HotelReferenceGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="InvBlockDates" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:InvBlockDatesGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="RoomTypes" minOccurs="0">
       <!-- Reference to inner class RoomTypes -->
     </xs:element>
     <xs:element name="MethodInfo" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:MethodInfoGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="BlockDescriptions" minOccurs="0">
       <!-- Reference to inner class BlockDescriptions -->
     </xs:element>
     <xs:element name="Contacts" minOccurs="0">
       <!-- Reference to inner class Contacts -->
     </xs:element>
     <xs:element type="ns:DestinationSystemCodesType" name="DestinationSystemCodes" minOccurs="0"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:InvBlockGroup"/>
 </xs:complexType>
 


Nested Class Summary
static class InvBlock.BlockDescriptions
          Collection of free form information about the inventory block.
static class InvBlock.Contacts
          A collection of contacts.
static class InvBlock.RoomTypes
          This allows for multiple room types to be defined within an inventory block.
 
Constructor Summary
InvBlock()
           
 
Method Summary
 InvBlock.BlockDescriptions getBlockDescriptions()
          Get the 'BlockDescriptions' element value.
 InvBlock.Contacts getContacts()
          Get the 'Contacts' element value.
 DestinationSystemCodes getDestinationSystemCodes()
          Get the 'DestinationSystemCodes' element value.
 HotelReferenceGroup getHotelRef()
          Get the 'HotelReferenceGroup' attributeGroup value.
 InvBlockDatesGroup getInvBlockDates()
          Get the 'InvBlockDatesGroup' attributeGroup value.
 InvBlockGroup getInvBlockGroup()
          Get the 'InvBlockGroup' attributeGroup value.
 MethodInfoGroup getMethodInfo()
          Get the 'MethodInfoGroup' attributeGroup value.
 InvBlock.RoomTypes getRoomTypes()
          Get the 'RoomTypes' element value.
 void setBlockDescriptions(InvBlock.BlockDescriptions blockDescriptions)
          Set the 'BlockDescriptions' element value.
 void setContacts(InvBlock.Contacts contacts)
          Set the 'Contacts' element value.
 void setDestinationSystemCodes(DestinationSystemCodes destinationSystemCodes)
          Set the 'DestinationSystemCodes' element value.
 void setHotelRef(HotelReferenceGroup hotelRef)
          Set the 'HotelReferenceGroup' attributeGroup value.
 void setInvBlockDates(InvBlockDatesGroup invBlockDates)
          Set the 'InvBlockDatesGroup' attributeGroup value.
 void setInvBlockGroup(InvBlockGroup invBlockGroup)
          Set the 'InvBlockGroup' attributeGroup value.
 void setMethodInfo(MethodInfoGroup methodInfo)
          Set the 'MethodInfoGroup' attributeGroup value.
 void setRoomTypes(InvBlock.RoomTypes roomTypes)
          Set the 'RoomTypes' element value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvBlock

public InvBlock()
Method Detail

getHotelRef

public HotelReferenceGroup getHotelRef()
Get the 'HotelReferenceGroup' attributeGroup value. This is used to identify the hotel to which the block applies.

Returns:
value

setHotelRef

public void setHotelRef(HotelReferenceGroup hotelRef)
Set the 'HotelReferenceGroup' attributeGroup value. This is used to identify the hotel to which the block applies.

Parameters:
hotelRef -

getInvBlockDates

public InvBlockDatesGroup getInvBlockDates()
Get the 'InvBlockDatesGroup' attributeGroup value. This is used to indicate the date or date range applicable to this inventory block.

Returns:
value

setInvBlockDates

public void setInvBlockDates(InvBlockDatesGroup invBlockDates)
Set the 'InvBlockDatesGroup' attributeGroup value. This is used to indicate the date or date range applicable to this inventory block.

Parameters:
invBlockDates -

getRoomTypes

public InvBlock.RoomTypes getRoomTypes()
Get the 'RoomTypes' element value.

Returns:
value

setRoomTypes

public void setRoomTypes(InvBlock.RoomTypes roomTypes)
Set the 'RoomTypes' element value.

Parameters:
roomTypes -

getMethodInfo

public MethodInfoGroup getMethodInfo()
Get the 'MethodInfoGroup' attributeGroup value. This is used to indicate the reservation and billing methods for a single inventory block.

Returns:
value

setMethodInfo

public void setMethodInfo(MethodInfoGroup methodInfo)
Set the 'MethodInfoGroup' attributeGroup value. This is used to indicate the reservation and billing methods for a single inventory block.

Parameters:
methodInfo -

getBlockDescriptions

public InvBlock.BlockDescriptions getBlockDescriptions()
Get the 'BlockDescriptions' element value.

Returns:
value

setBlockDescriptions

public void setBlockDescriptions(InvBlock.BlockDescriptions blockDescriptions)
Set the 'BlockDescriptions' element value.

Parameters:
blockDescriptions -

getContacts

public InvBlock.Contacts getContacts()
Get the 'Contacts' element value.

Returns:
value

setContacts

public void setContacts(InvBlock.Contacts contacts)
Set the 'Contacts' element value.

Parameters:
contacts -

getDestinationSystemCodes

public DestinationSystemCodes getDestinationSystemCodes()
Get the 'DestinationSystemCodes' element value. A collection of destination system codes. These are systems for which this inventory block is targeted.

Returns:
value

setDestinationSystemCodes

public void setDestinationSystemCodes(DestinationSystemCodes destinationSystemCodes)
Set the 'DestinationSystemCodes' element value. A collection of destination system codes. These are systems for which this inventory block is targeted.

Parameters:
destinationSystemCodes -

getInvBlockGroup

public InvBlockGroup getInvBlockGroup()
Get the 'InvBlockGroup' attributeGroup value.

Returns:
value

setInvBlockGroup

public void setInvBlockGroup(InvBlockGroup invBlockGroup)
Set the 'InvBlockGroup' attributeGroup value.

Parameters:
invBlockGroup -