org.ota.hotel
Class InvBlockRS.InvBlocks

java.lang.Object
  extended by org.ota.hotel.InvBlockRS.InvBlocks
Enclosing class:
InvBlockRS

public static class InvBlockRS.InvBlocks
extends java.lang.Object

This may be used for creating blocks at multiple hotels or multiple blocks at a single hotel. 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="InvBlocks" minOccurs="0">
   <xs:complexType>
     <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 type="ns:InvBlockType" name="InvBlock" minOccurs="0" maxOccurs="99"/>
       <xs:element name="Contacts" minOccurs="0">
         <!-- Reference to inner class Contacts -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:InvBlockGroup"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class InvBlockRS.InvBlocks.Contacts
          A collection of contacts.
 
Constructor Summary
InvBlockRS.InvBlocks()
           
 
Method Summary
 void addInvBlock(InvBlock item)
          Add a 'InvBlock' element item.
 void clearInvBlocks()
          Remove all 'InvBlock' element items.
 InvBlockRS.InvBlocks.Contacts getContacts()
          Get the 'Contacts' element value.
 HotelReferenceGroup getHotelRef()
          Get the 'HotelReferenceGroup' attributeGroup value.
 InvBlock getInvBlock(int index)
          Get 'InvBlock' element item by position.
 InvBlockDatesGroup getInvBlockDates()
          Get the 'InvBlockDatesGroup' attributeGroup value.
 InvBlockGroup getInvBlockGroup()
          Get the 'InvBlockGroup' attributeGroup value.
 java.util.List<InvBlock> getInvBlocks()
          Get the list of 'InvBlock' element items.
 void setContacts(InvBlockRS.InvBlocks.Contacts contacts)
          Set the 'Contacts' 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 setInvBlocks(java.util.List<InvBlock> list)
          Set the list of 'InvBlock' element items.
 int sizeInvBlocks()
          Get the number of 'InvBlock' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvBlockRS.InvBlocks

public InvBlockRS.InvBlocks()
Method Detail

getHotelRef

public HotelReferenceGroup getHotelRef()
Get the 'HotelReferenceGroup' attributeGroup value. This is used to identify the hotel to which the block(s) 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(s) applies.

Parameters:
hotelRef -

getInvBlockDates

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

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 all inventory blocks in this message.

Parameters:
invBlockDates -

getInvBlocks

public java.util.List<InvBlock> getInvBlocks()
Get the list of 'InvBlock' element items. This is for creating a single block at a single hotel.

Returns:
list

setInvBlocks

public void setInvBlocks(java.util.List<InvBlock> list)
Set the list of 'InvBlock' element items. This is for creating a single block at a single hotel.

Parameters:
list -

sizeInvBlocks

public int sizeInvBlocks()
Get the number of 'InvBlock' element items.

Returns:
count

addInvBlock

public void addInvBlock(InvBlock item)
Add a 'InvBlock' element item.

Parameters:
item -

getInvBlock

public InvBlock getInvBlock(int index)
Get 'InvBlock' element item by position.

Parameters:
index -
Returns:
item

clearInvBlocks

public void clearInvBlocks()
Remove all 'InvBlock' element items.


getContacts

public InvBlockRS.InvBlocks.Contacts getContacts()
Get the 'Contacts' element value.

Returns:
value

setContacts

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

Parameters:
contacts -

getInvBlockGroup

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

Returns:
value

setInvBlockGroup

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

Parameters:
invBlockGroup -