org.ota.hotel
Class StatsRQ

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

public class StatsRQ
extends java.lang.Object

This message is sent by a system (e.g. RMS) requesting one or several pre-defined statistic reports for one or several hotels from another system (e.g. CRS) which has the data required to generate the reports. 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="OTA_HotelStatsRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="RequestedHotels">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="RequestedHotel" maxOccurs="unbounded">
               <!-- Reference to inner class RequestedHotel -->
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:UniqueID_Type" name="MessageID" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class StatsRQ.RequestedHotel
          Identifies each hotel or set of hotels for which reports are being requested.
 
Constructor Summary
StatsRQ()
           
 
Method Summary
 void addRequestedHotel(StatsRQ.RequestedHotel item)
          Add a 'RequestedHotel' element item.
 void clearRequestedHotels()
          Remove all 'RequestedHotel' element items.
 UniqueID getMessageID()
          Get the 'MessageID' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 StatsRQ.RequestedHotel getRequestedHotel(int index)
          Get 'RequestedHotel' element item by position.
 java.util.List<StatsRQ.RequestedHotel> getRequestedHotels()
          Get the list of 'RequestedHotel' element items.
 void setMessageID(UniqueID messageID)
          Set the 'MessageID' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setRequestedHotels(java.util.List<StatsRQ.RequestedHotel> list)
          Set the list of 'RequestedHotel' element items.
 int sizeRequestedHotels()
          Get the number of 'RequestedHotel' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatsRQ

public StatsRQ()
Method Detail

getRequestedHotels

public java.util.List<StatsRQ.RequestedHotel> getRequestedHotels()
Get the list of 'RequestedHotel' element items. Collection of requested hotels.

Returns:
list

setRequestedHotels

public void setRequestedHotels(java.util.List<StatsRQ.RequestedHotel> list)
Set the list of 'RequestedHotel' element items. Collection of requested hotels.

Parameters:
list -

sizeRequestedHotels

public int sizeRequestedHotels()
Get the number of 'RequestedHotel' element items.

Returns:
count

addRequestedHotel

public void addRequestedHotel(StatsRQ.RequestedHotel item)
Add a 'RequestedHotel' element item.

Parameters:
item -

getRequestedHotel

public StatsRQ.RequestedHotel getRequestedHotel(int index)
Get 'RequestedHotel' element item by position.

Parameters:
index -
Returns:
item

clearRequestedHotels

public void clearRequestedHotels()
Remove all 'RequestedHotel' element items.


getMessageID

public UniqueID getMessageID()
Get the 'MessageID' element value. Uniquely identifies this message.

Returns:
value

setMessageID

public void setMessageID(UniqueID messageID)
Set the 'MessageID' element value. Uniquely identifies this message.

Parameters:
messageID -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes -