org.ota.misc
Class DestActivityResRS

java.lang.Object
  extended by org.ota.misc.DestActivityResRS

public class DestActivityResRS
extends java.lang.Object

This could be used to respond to a OTA_DestActivityResRQ.xsd or the OTA_ReadRQ.xsd. The response to a booking request is either Yes or No based upon the availability. The Destination Activity reservation system responds back attaching a confirmation number or additional information such as the reservation ID, etc. when the response is affirmative. 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_DestActivityResRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
         <xs:element name="ReservationReferences">
           <xs:complexType>
             <xs:sequence>
               <xs:element type="ns:UniqueID_Type" name="ReservationReference" maxOccurs="unbounded"/>
             </xs:sequence>
           </xs:complexType>
         </xs:element>
         <xs:element name="ReservationResponseItems" minOccurs="0">
           <!-- Reference to inner class ReservationResponseItems -->
         </xs:element>
         <xs:element type="ns:DestActivityReservationType" name="DestActivityReservation" minOccurs="0"/>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attribute type="ns:TransactionStatusType" name="ResResponseType"/>
   </xs:complexType>
 </xs:element>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SuccessType"/>
 


Nested Class Summary
static class DestActivityResRS.ReservationResponseItems
          A set of responses to a reservation request, one per item Schema fragment(s) for this class:
 
Constructor Summary
DestActivityResRS()
           
 
Method Summary
 void addReservationReference(UniqueID item)
          Add a 'ReservationReference' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearReservationReferences()
          Remove all 'ReservationReference' element items.
 DestActivityReservation getDestActivityReservation()
          Get the 'DestActivityReservation' element value.
 Errors getErrors()
          Get the 'Errors' element value.
 OTAPayloadStdAttributes getPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 UniqueID getReservationReference(int index)
          Get 'ReservationReference' element item by position.
 java.util.List<UniqueID> getReservationReferences()
          Get the list of 'ReservationReference' element items.
 DestActivityResRS.ReservationResponseItems getReservationResponseItems()
          Get the 'ReservationResponseItems' element value.
 TransactionStatus getResResponse()
          Get the 'ResResponseType' attribute value.
 Warnings getWarnings()
          Get the 'Warnings' element value.
 boolean ifErrors()
          Check if Errors is current selection for choice.
 boolean ifSuccess()
          Check if Success is current selection for choice.
 void setDestActivityReservation(DestActivityReservation destActivityReservation)
          Set the 'DestActivityReservation' element value.
 void setErrors(Errors errors)
          Set the 'Errors' element value.
 void setPayloadStdAttributes(OTAPayloadStdAttributes payloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setReservationReferences(java.util.List<UniqueID> list)
          Set the list of 'ReservationReference' element items.
 void setReservationResponseItems(DestActivityResRS.ReservationResponseItems reservationResponseItems)
          Set the 'ReservationResponseItems' element value.
 void setResResponse(TransactionStatus resResponse)
          Set the 'ResResponseType' attribute value.
 void setWarnings(Warnings warnings)
          Set the 'Warnings' element value.
 int sizeReservationReferences()
          Get the number of 'ReservationReference' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DestActivityResRS

public DestActivityResRS()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifSuccess

public boolean ifSuccess()
Check if Success is current selection for choice.

Returns:
true if selection, false if not

getWarnings

public Warnings getWarnings()
Get the 'Warnings' element value.

Returns:
value

setWarnings

public void setWarnings(Warnings warnings)
Set the 'Warnings' element value.

Parameters:
warnings -

getReservationReferences

public java.util.List<UniqueID> getReservationReferences()
Get the list of 'ReservationReference' element items. A set of unique references returned to identify this reservation, allocated by the called system

Returns:
list

setReservationReferences

public void setReservationReferences(java.util.List<UniqueID> list)
Set the list of 'ReservationReference' element items. A set of unique references returned to identify this reservation, allocated by the called system

Parameters:
list -

sizeReservationReferences

public int sizeReservationReferences()
Get the number of 'ReservationReference' element items.

Returns:
count

addReservationReference

public void addReservationReference(UniqueID item)
Add a 'ReservationReference' element item.

Parameters:
item -

getReservationReference

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

Parameters:
index -
Returns:
item

clearReservationReferences

public void clearReservationReferences()
Remove all 'ReservationReference' element items.


getReservationResponseItems

public DestActivityResRS.ReservationResponseItems getReservationResponseItems()
Get the 'ReservationResponseItems' element value.

Returns:
value

setReservationResponseItems

public void setReservationResponseItems(DestActivityResRS.ReservationResponseItems reservationResponseItems)
Set the 'ReservationResponseItems' element value.

Parameters:
reservationResponseItems -

getDestActivityReservation

public DestActivityReservation getDestActivityReservation()
Get the 'DestActivityReservation' element value. Details of a destination activity reservation, generally only returned in response to a OTA_ReadRQ.

Returns:
value

setDestActivityReservation

public void setDestActivityReservation(DestActivityReservation destActivityReservation)
Set the 'DestActivityReservation' element value. Details of a destination activity reservation, generally only returned in response to a OTA_ReadRQ.

Parameters:
destActivityReservation -

ifErrors

public boolean ifErrors()
Check if Errors is current selection for choice.

Returns:
true if selection, false if not

getErrors

public Errors getErrors()
Get the 'Errors' element value.

Returns:
value

setErrors

public void setErrors(Errors errors)
Set the 'Errors' element value.

Parameters:
errors -

getPayloadStdAttributes

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

Returns:
value

setPayloadStdAttributes

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

Parameters:
payloadStdAttributes -

getResResponse

public TransactionStatus getResResponse()
Get the 'ResResponseType' attribute value.

Returns:
value

setResResponse

public void setResResponse(TransactionStatus resResponse)
Set the 'ResResponseType' attribute value.

Parameters:
resResponse -