org.ota.hotel
Class HotelResRequest

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

public class HotelResRequest
extends java.lang.Object

This is a request message for creating a reservation. It is used by HotelResRQ and HotelResNotifRQ to keep them synchronized. 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="HotelResRequestType">
   <xs:sequence>
     <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
     <xs:sequence>
       <xs:element type="ns:UniqueID_Type" name="UniqueID" minOccurs="0" maxOccurs="2"/>
       <xs:element type="ns:HotelReservationsType" name="HotelReservations" minOccurs="0"/>
     </xs:sequence>
   </xs:sequence>
   <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   <xs:attribute type="ns:TransactionActionType" use="optional" name="ResStatus"/>
   <xs:attribute type="xs:string" use="optional" name="HoldDuration"/>
 </xs:complexType>
 


Constructor Summary
HotelResRequest()
           
 
Method Summary
 void addUniqueID(UniqueID item)
          Add a 'UniqueID' element item.
 void clearUniqueIDs()
          Remove all 'UniqueID' element items.
 java.lang.String getHoldDuration()
          Get the 'HoldDuration' attribute value.
 HotelReservations getHotelReservations()
          Get the 'HotelReservations' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 TransactionAction getResStatus()
          Get the 'ResStatus' attribute value.
 UniqueID getUniqueID(int index)
          Get 'UniqueID' element item by position.
 java.util.List<UniqueID> getUniqueIDs()
          Get the list of 'UniqueID' element items.
 void setHoldDuration(java.lang.String holdDuration)
          Set the 'HoldDuration' attribute value.
 void setHotelReservations(HotelReservations hotelReservations)
          Set the 'HotelReservations' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setResStatus(TransactionAction resStatus)
          Set the 'ResStatus' attribute value.
 void setUniqueIDs(java.util.List<UniqueID> list)
          Set the list of 'UniqueID' element items.
 int sizeUniqueIDs()
          Get the number of 'UniqueID' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelResRequest

public HotelResRequest()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. The point-of-sale data, contained in the POS element, communicates the information that allows the receiving system to identify the trading partner that is sending the request or the response message.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. The point-of-sale data, contained in the POS element, communicates the information that allows the receiving system to identify the trading partner that is sending the request or the response message.

Parameters:
POS -

getUniqueIDs

public java.util.List<UniqueID> getUniqueIDs()
Get the list of 'UniqueID' element items.

Returns:
list

setUniqueIDs

public void setUniqueIDs(java.util.List<UniqueID> list)
Set the list of 'UniqueID' element items.

Parameters:
list -

sizeUniqueIDs

public int sizeUniqueIDs()
Get the number of 'UniqueID' element items.

Returns:
count

addUniqueID

public void addUniqueID(UniqueID item)
Add a 'UniqueID' element item.

Parameters:
item -

getUniqueID

public UniqueID getUniqueID(int index)
Get 'UniqueID' element item by position.

Parameters:
index -
Returns:
item

clearUniqueIDs

public void clearUniqueIDs()
Remove all 'UniqueID' element items.


getHotelReservations

public HotelReservations getHotelReservations()
Get the 'HotelReservations' element value.

Returns:
value

setHotelReservations

public void setHotelReservations(HotelReservations hotelReservations)
Set the 'HotelReservations' element value.

Parameters:
hotelReservations -

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 -

getResStatus

public TransactionAction getResStatus()
Get the 'ResStatus' attribute value. Indicates the status of the reservation represented by the message.

Returns:
value

setResStatus

public void setResStatus(TransactionAction resStatus)
Set the 'ResStatus' attribute value. Indicates the status of the reservation represented by the message.

Parameters:
resStatus -

getHoldDuration

public java.lang.String getHoldDuration()
Get the 'HoldDuration' attribute value. The period from the date and time the reservation was booked until the hold on the inventory is released.

Returns:
value

setHoldDuration

public void setHoldDuration(java.lang.String holdDuration)
Set the 'HoldDuration' attribute value. The period from the date and time the reservation was booked until the hold on the inventory is released.

Parameters:
holdDuration -