org.ota.cruise
Class BookingDocumentRS

java.lang.Object
  extended by org.ota.cruise.BookingDocumentRS

public class BookingDocumentRS
extends java.lang.Object

Provides confirmation that the documents will be delivered as requested. 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_CruiseBookingDocumentRS">
   <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="ReservationID">
           <xs:complexType>
             <xs:complexContent>
               <xs:extension base="ns:UniqueID_Type">
                 <xs:attribute type="xs:dateTime" use="optional" name="SyncDateTime"/>
               </xs:extension>
             </xs:complexContent>
           </xs:complexType>
         </xs:element>
         <xs:element name="CruiseDocument" maxOccurs="9">
           <!-- Reference to inner class CruiseDocument -->
         </xs:element>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </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 BookingDocumentRS.CruiseDocument
          The document and the delivery method of the request.
 
Constructor Summary
BookingDocumentRS()
           
 
Method Summary
 void addCruiseDocument(BookingDocumentRS.CruiseDocument item)
          Add a 'CruiseDocument' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearCruiseDocuments()
          Remove all 'CruiseDocument' element items.
 BookingDocumentRS.CruiseDocument getCruiseDocument(int index)
          Get 'CruiseDocument' element item by position.
 java.util.List<BookingDocumentRS.CruiseDocument> getCruiseDocuments()
          Get the list of 'CruiseDocument' element items.
 Errors getErrors()
          Get the 'Errors' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 java.util.Date getReservationIDSyncDateTime()
          Get the 'SyncDateTime' attribute value.
 UniqueID getReservationIDUniqueID()
          Get the extension 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 setCruiseDocuments(java.util.List<BookingDocumentRS.CruiseDocument> list)
          Set the list of 'CruiseDocument' element items.
 void setErrors(Errors errors)
          Set the 'Errors' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setReservationIDSyncDateTime(java.util.Date reservationIDSyncDateTime)
          Set the 'SyncDateTime' attribute value.
 void setReservationIDUniqueID(UniqueID reservationIDUniqueID)
          Set the extension value.
 void setWarnings(Warnings warnings)
          Set the 'Warnings' element value.
 int sizeCruiseDocuments()
          Get the number of 'CruiseDocument' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookingDocumentRS

public BookingDocumentRS()
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. Standard way to indicate successful processing of an OpenTravel message, but one in which warnings are generated.

Returns:
value

setWarnings

public void setWarnings(Warnings warnings)
Set the 'Warnings' element value. Standard way to indicate successful processing of an OpenTravel message, but one in which warnings are generated.

Parameters:
warnings -

getReservationIDUniqueID

public UniqueID getReservationIDUniqueID()
Get the extension value.

Returns:
value

setReservationIDUniqueID

public void setReservationIDUniqueID(UniqueID reservationIDUniqueID)
Set the extension value.

Parameters:
reservationIDUniqueID -

getReservationIDSyncDateTime

public java.util.Date getReservationIDSyncDateTime()
Get the 'SyncDateTime' attribute value. Specifies the Syncronization date of the record between GDS and CruiseLine.

Returns:
value

setReservationIDSyncDateTime

public void setReservationIDSyncDateTime(java.util.Date reservationIDSyncDateTime)
Set the 'SyncDateTime' attribute value. Specifies the Syncronization date of the record between GDS and CruiseLine.

Parameters:
reservationIDSyncDateTime -

getCruiseDocuments

public java.util.List<BookingDocumentRS.CruiseDocument> getCruiseDocuments()
Get the list of 'CruiseDocument' element items.

Returns:
list

setCruiseDocuments

public void setCruiseDocuments(java.util.List<BookingDocumentRS.CruiseDocument> list)
Set the list of 'CruiseDocument' element items.

Parameters:
list -

sizeCruiseDocuments

public int sizeCruiseDocuments()
Get the number of 'CruiseDocument' element items.

Returns:
count

addCruiseDocument

public void addCruiseDocument(BookingDocumentRS.CruiseDocument item)
Add a 'CruiseDocument' element item.

Parameters:
item -

getCruiseDocument

public BookingDocumentRS.CruiseDocument getCruiseDocument(int index)
Get 'CruiseDocument' element item by position.

Parameters:
index -
Returns:
item

clearCruiseDocuments

public void clearCruiseDocuments()
Remove all 'CruiseDocument' element items.


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. A collection of errors that occurred during the processing of a message.

Returns:
value

setErrors

public void setErrors(Errors errors)
Set the 'Errors' element value. A collection of errors that occurred during the processing of a message.

Parameters:
errors -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel messages.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel messages.

Parameters:
OTAPayloadStdAttributes -