org.ota.hotel
Class EventReport.EventSites.EventSite.RoomBlocks

java.lang.Object
  extended by org.ota.hotel.EventReport.EventSites.EventSite.RoomBlocks
Enclosing class:
EventReport.EventSites.EventSite

public static class EventReport.EventSites.EventSite.RoomBlocks
extends java.lang.Object

A collection of room blocks for this event. 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="RoomBlocks" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="RoomBlock" maxOccurs="99">
         <!-- Reference to inner class RoomBlock -->
       </xs:element>
       <xs:element name="Comments" minOccurs="0">
         <!-- Reference to inner class Comments -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:int" use="optional" name="TotalBlockQuantity"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class EventReport.EventSites.EventSite.RoomBlocks.Comments
          A collection of comments pertaining to the stay.
static class EventReport.EventSites.EventSite.RoomBlocks.RoomBlock
          Information pertaining to a room block for this event.
 
Constructor Summary
EventReport.EventSites.EventSite.RoomBlocks()
           
 
Method Summary
 void addRoomBlock(EventReport.EventSites.EventSite.RoomBlocks.RoomBlock item)
          Add a 'RoomBlock' element item.
 void clearRoomBlocks()
          Remove all 'RoomBlock' element items.
 EventReport.EventSites.EventSite.RoomBlocks.Comments getComments()
          Get the 'Comments' element value.
 EventReport.EventSites.EventSite.RoomBlocks.RoomBlock getRoomBlock(int index)
          Get 'RoomBlock' element item by position.
 java.util.List<EventReport.EventSites.EventSite.RoomBlocks.RoomBlock> getRoomBlocks()
          Get the list of 'RoomBlock' element items.
 java.lang.Integer getTotalBlockQuantity()
          Get the 'TotalBlockQuantity' attribute value.
 void setComments(EventReport.EventSites.EventSite.RoomBlocks.Comments comments)
          Set the 'Comments' element value.
 void setRoomBlocks(java.util.List<EventReport.EventSites.EventSite.RoomBlocks.RoomBlock> list)
          Set the list of 'RoomBlock' element items.
 void setTotalBlockQuantity(java.lang.Integer totalBlockQuantity)
          Set the 'TotalBlockQuantity' attribute value.
 int sizeRoomBlocks()
          Get the number of 'RoomBlock' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventReport.EventSites.EventSite.RoomBlocks

public EventReport.EventSites.EventSite.RoomBlocks()
Method Detail

getRoomBlocks

public java.util.List<EventReport.EventSites.EventSite.RoomBlocks.RoomBlock> getRoomBlocks()
Get the list of 'RoomBlock' element items.

Returns:
list

setRoomBlocks

public void setRoomBlocks(java.util.List<EventReport.EventSites.EventSite.RoomBlocks.RoomBlock> list)
Set the list of 'RoomBlock' element items.

Parameters:
list -

sizeRoomBlocks

public int sizeRoomBlocks()
Get the number of 'RoomBlock' element items.

Returns:
count

addRoomBlock

public void addRoomBlock(EventReport.EventSites.EventSite.RoomBlocks.RoomBlock item)
Add a 'RoomBlock' element item.

Parameters:
item -

getRoomBlock

public EventReport.EventSites.EventSite.RoomBlocks.RoomBlock getRoomBlock(int index)
Get 'RoomBlock' element item by position.

Parameters:
index -
Returns:
item

clearRoomBlocks

public void clearRoomBlocks()
Remove all 'RoomBlock' element items.


getComments

public EventReport.EventSites.EventSite.RoomBlocks.Comments getComments()
Get the 'Comments' element value.

Returns:
value

setComments

public void setComments(EventReport.EventSites.EventSite.RoomBlocks.Comments comments)
Set the 'Comments' element value.

Parameters:
comments -

getTotalBlockQuantity

public java.lang.Integer getTotalBlockQuantity()
Get the 'TotalBlockQuantity' attribute value. The total number of room blocks for this event at this property (i.e., sub blocks plus primary room block).

Returns:
value

setTotalBlockQuantity

public void setTotalBlockQuantity(java.lang.Integer totalBlockQuantity)
Set the 'TotalBlockQuantity' attribute value. The total number of room blocks for this event at this property (i.e., sub blocks plus primary room block).

Parameters:
totalBlockQuantity -