org.ota.air
Class DemandTicketRS

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

public class DemandTicketRS
extends java.lang.Object

Provides the capability to respond to a demand ticket request, returning minimal information about the ticket that was issued. 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_AirDemandTicketRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningType" name="Warnings" minOccurs="0"/>
         <xs:element type="ns:UniqueID_Type" name="BookingReferenceID" minOccurs="0"/>
         <xs:element name="TicketItemInfo" minOccurs="0" maxOccurs="99">
           <!-- Reference to inner class TicketItemInfo -->
         </xs:element>
         <xs:element name="QueuePNR" minOccurs="0">
           <!-- Reference to inner class QueuePNR -->
         </xs:element>
         <xs:element type="ns:FreeTextType" name="Comment" minOccurs="0"/>
       </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 DemandTicketRS.QueuePNR
          Information to specify which queue a PNR was placed on after the ticket was isssued.
static class DemandTicketRS.TicketItemInfo
          Information for the ticket that was issued.
 
Constructor Summary
DemandTicketRS()
           
 
Method Summary
 void addTicketItemInfo(DemandTicketRS.TicketItemInfo item)
          Add a 'TicketItemInfo' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearTicketItemInfos()
          Remove all 'TicketItemInfo' element items.
 UniqueID getBookingReferenceID()
          Get the 'BookingReferenceID' element value.
 FreeText getComment()
          Get the 'Comment' element value.
 Errors getErrors()
          Get the 'Errors' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 DemandTicketRS.QueuePNR getQueuePNR()
          Get the 'QueuePNR' element value.
 DemandTicketRS.TicketItemInfo getTicketItemInfo(int index)
          Get 'TicketItemInfo' element item by position.
 java.util.List<DemandTicketRS.TicketItemInfo> getTicketItemInfos()
          Get the list of 'TicketItemInfo' element items.
 Warning 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 setBookingReferenceID(UniqueID bookingReferenceID)
          Set the 'BookingReferenceID' element value.
 void setComment(FreeText comment)
          Set the 'Comment' element value.
 void setErrors(Errors errors)
          Set the 'Errors' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setQueuePNR(DemandTicketRS.QueuePNR queuePNR)
          Set the 'QueuePNR' element value.
 void setTicketItemInfos(java.util.List<DemandTicketRS.TicketItemInfo> list)
          Set the list of 'TicketItemInfo' element items.
 void setWarnings(Warning warnings)
          Set the 'Warnings' element value.
 int sizeTicketItemInfos()
          Get the number of 'TicketItemInfo' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemandTicketRS

public DemandTicketRS()
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 Warning getWarnings()
Get the 'Warnings' element value. Used in conjunction with the Success element to define one or more business errors.

Returns:
value

setWarnings

public void setWarnings(Warning warnings)
Set the 'Warnings' element value. Used in conjunction with the Success element to define one or more business errors.

Parameters:
warnings -

getBookingReferenceID

public UniqueID getBookingReferenceID()
Get the 'BookingReferenceID' element value. The PNR record locator for which a ticket was issued.

Returns:
value

setBookingReferenceID

public void setBookingReferenceID(UniqueID bookingReferenceID)
Set the 'BookingReferenceID' element value. The PNR record locator for which a ticket was issued.

Parameters:
bookingReferenceID -

getTicketItemInfos

public java.util.List<DemandTicketRS.TicketItemInfo> getTicketItemInfos()
Get the list of 'TicketItemInfo' element items.

Returns:
list

setTicketItemInfos

public void setTicketItemInfos(java.util.List<DemandTicketRS.TicketItemInfo> list)
Set the list of 'TicketItemInfo' element items.

Parameters:
list -

sizeTicketItemInfos

public int sizeTicketItemInfos()
Get the number of 'TicketItemInfo' element items.

Returns:
count

addTicketItemInfo

public void addTicketItemInfo(DemandTicketRS.TicketItemInfo item)
Add a 'TicketItemInfo' element item.

Parameters:
item -

getTicketItemInfo

public DemandTicketRS.TicketItemInfo getTicketItemInfo(int index)
Get 'TicketItemInfo' element item by position.

Parameters:
index -
Returns:
item

clearTicketItemInfos

public void clearTicketItemInfos()
Remove all 'TicketItemInfo' element items.


getQueuePNR

public DemandTicketRS.QueuePNR getQueuePNR()
Get the 'QueuePNR' element value.

Returns:
value

setQueuePNR

public void setQueuePNR(DemandTicketRS.QueuePNR queuePNR)
Set the 'QueuePNR' element value.

Parameters:
queuePNR -

getComment

public FreeText getComment()
Get the 'Comment' element value. A comment associated with the ticket.

Returns:
value

setComment

public void setComment(FreeText comment)
Set the 'Comment' element value. A comment associated with the ticket.

Parameters:
comment -

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. Errors are returned if the request was unable to be processed.

Returns:
value

setErrors

public void setErrors(Errors errors)
Set the 'Errors' element value. Errors are returned if the request was unable to be processed.

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 -