org.ota.air
Class BookRS

java.lang.Object
  extended by org.ota.air.BookRS

public class BookRS
extends java.lang.Object

The Book Response message contains the itinerary, passenger and pricing information sent in the request, along with a Booking reference number (PNR Locator) and ticketing information if the booking was successful. This message contains similar information to a standard airline CRS or GDS Display PNR message. 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_AirBookRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence maxOccurs="2">
         <!-- Reference to inner class Sequence -->
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attribute type="xs:boolean" name="Cancel"/>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attribute type="xs:boolean" use="optional" name="PriceInd"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class BookRS.Sequence
          Schema fragment(s) for this class:
 
Constructor Summary
BookRS()
           
 
Method Summary
 void addSequence(BookRS.Sequence item)
          Add a sequence item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearSequences()
          Remove all sequence items.
 java.lang.Boolean getCancel()
          Get the 'Cancel' attribute value.
 Errors getErrors()
          Get the 'Errors' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 java.lang.Boolean getPriceInd()
          Get the 'PriceInd' attribute value.
 BookRS.Sequence getSequence(int index)
          Get sequence item by position.
 java.util.List<BookRS.Sequence> getSequences()
          Get the list of sequence items.
 boolean ifErrors()
          Check if Errors is current selection for choice.
 boolean ifSequence()
          Check if Sequences is current selection for choice.
 void setCancel(java.lang.Boolean cancel)
          Set the 'Cancel' attribute value.
 void setErrors(Errors errors)
          Set the 'Errors' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPriceInd(java.lang.Boolean priceInd)
          Set the 'PriceInd' attribute value.
 void setSequences(java.util.List<BookRS.Sequence> list)
          Set the list of sequence items.
 int sizeSequences()
          Get the number of sequence items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookRS

public BookRS()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifSequence

public boolean ifSequence()
Check if Sequences is current selection for choice.

Returns:
true if selection, false if not

getSequences

public java.util.List<BookRS.Sequence> getSequences()
Get the list of sequence items.

Returns:
list

setSequences

public void setSequences(java.util.List<BookRS.Sequence> list)
Set the list of sequence items.

Parameters:
list -

sizeSequences

public int sizeSequences()
Get the number of sequence items.

Returns:
count

addSequence

public void addSequence(BookRS.Sequence item)
Add a sequence item.

Parameters:
item -

getSequence

public BookRS.Sequence getSequence(int index)
Get sequence item by position.

Parameters:
index -
Returns:
item

clearSequences

public void clearSequences()
Remove all sequence 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 -

getCancel

public java.lang.Boolean getCancel()
Get the 'Cancel' attribute value. AWG to revisit. false

Returns:
value

setCancel

public void setCancel(java.lang.Boolean cancel)
Set the 'Cancel' attribute value. AWG to revisit. false

Parameters:
cancel -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value. The OTA_PayloadStdAttributes defines 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 OTA_PayloadStdAttributes defines the standard attributes that appear on the root element for all OpenTravel messages.

Parameters:
OTAPayloadStdAttributes -

getPriceInd

public java.lang.Boolean getPriceInd()
Get the 'PriceInd' attribute value. When true, pricing was requested along with the booking.

Returns:
value

setPriceInd

public void setPriceInd(java.lang.Boolean priceInd)
Set the 'PriceInd' attribute value. When true, pricing was requested along with the booking.

Parameters:
priceInd -