org.ota.hotel
Class RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms.StayDateRoom

java.lang.Object
  extended by org.ota.hotel.RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms.StayDateRoom
Enclosing class:
RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms

public static class RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms.StayDateRoom
extends java.lang.Object

A container for the room availability data. 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="StayDateRoom" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Rates" minOccurs="0">
         <!-- Reference to inner class Rates -->
       </xs:element>
       <xs:element type="ns:ParagraphType" name="Comment" minOccurs="0" maxOccurs="5"/>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="RoomType"/>
     <xs:attribute type="xs:int" use="optional" name="NumberOfUnits"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms.StayDateRoom.Rates
          Collection of rates for a particular room type.
 
Constructor Summary
RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms.StayDateRoom()
           
 
Method Summary
 void addComment(Paragraph item)
          Add a 'Comment' element item.
 void clearComments()
          Remove all 'Comment' element items.
 Paragraph getComment(int index)
          Get 'Comment' element item by position.
 java.util.List<Paragraph> getComments()
          Get the list of 'Comment' element items.
 java.lang.Integer getNumberOfUnits()
          Get the 'NumberOfUnits' attribute value.
 RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms.StayDateRoom.Rates getRates()
          Get the 'Rates' element value.
 java.lang.String getRoom()
          Get the 'RoomType' attribute value.
 void setComments(java.util.List<Paragraph> list)
          Set the list of 'Comment' element items.
 void setNumberOfUnits(java.lang.Integer numberOfUnits)
          Set the 'NumberOfUnits' attribute value.
 void setRates(RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms.StayDateRoom.Rates rates)
          Set the 'Rates' element value.
 void setRoom(java.lang.String room)
          Set the 'RoomType' attribute value.
 int sizeComments()
          Get the number of 'Comment' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms.StayDateRoom

public RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms.StayDateRoom()
Method Detail

getRates

public RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms.StayDateRoom.Rates getRates()
Get the 'Rates' element value.

Returns:
value

setRates

public void setRates(RFPResponse.RFPResponseSegment.Sites.Site.Dates.Date.RoomBlock.StayDates.StayDate.StayDateRooms.StayDateRoom.Rates rates)
Set the 'Rates' element value.

Parameters:
rates -

getComments

public java.util.List<Paragraph> getComments()
Get the list of 'Comment' element items. Comments for this specific room type.

Returns:
list

setComments

public void setComments(java.util.List<Paragraph> list)
Set the list of 'Comment' element items. Comments for this specific room type.

Parameters:
list -

sizeComments

public int sizeComments()
Get the number of 'Comment' element items.

Returns:
count

addComment

public void addComment(Paragraph item)
Add a 'Comment' element item.

Parameters:
item -

getComment

public Paragraph getComment(int index)
Get 'Comment' element item by position.

Parameters:
index -
Returns:
item

clearComments

public void clearComments()
Remove all 'Comment' element items.


getRoom

public java.lang.String getRoom()
Get the 'RoomType' attribute value. This identifies the room type (e.g. king, double, double double). This is NOT an OpenTravel Codelist due to the infinite number of possible room types.

Returns:
value

setRoom

public void setRoom(java.lang.String room)
Set the 'RoomType' attribute value. This identifies the room type (e.g. king, double, double double). This is NOT an OpenTravel Codelist due to the infinite number of possible room types.

Parameters:
room -

getNumberOfUnits

public java.lang.Integer getNumberOfUnits()
Get the 'NumberOfUnits' attribute value. This is the number of rooms proposed for a particular day or date range for the room type indicated in the RoomTypeRequirement attribute.

Returns:
value

setNumberOfUnits

public void setNumberOfUnits(java.lang.Integer numberOfUnits)
Set the 'NumberOfUnits' attribute value. This is the number of rooms proposed for a particular day or date range for the room type indicated in the RoomTypeRequirement attribute.

Parameters:
numberOfUnits -