org.ota.rail
Class RailReservation

java.lang.Object
  extended by org.ota.rail.RailReservation

public class RailReservation
extends java.lang.Object

The RailReservationType complex type defines the information used to fully describe a rail reservation. 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="RailReservationType">
   <xs:sequence>
     <xs:element type="ns:UniqueID_Type" name="BookingID"/>
     <xs:element name="Itinerary">
       <xs:complexType>
         <xs:sequence>
           <xs:element name="OriginandDestinations">
             <xs:complexType>
               <xs:sequence>
                 <xs:element name="OriginandDestination" maxOccurs="9">
                   <!-- Reference to inner class OriginandDestination -->
                 </xs:element>
               </xs:sequence>
             </xs:complexType>
           </xs:element>
           <xs:element type="ns:RailChargesType" name="RailCharges" minOccurs="0">
             <!-- Reference to inner class RailCharges -->
           </xs:element>
           <xs:element type="ns:VendorMessagesType" name="VendorMessages" minOccurs="0"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:choice>
       <xs:element name="TravelerNames">
         <xs:complexType>
           <xs:sequence>
             <xs:element type="ns:PersonNameType" name="TravelerName" maxOccurs="99"/>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element name="TravelerCount" maxOccurs="5">
         <xs:complexType>
           <xs:attributeGroup ref="ns:TravelerCountGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:choice>
     <xs:element name="PaymentRules" minOccurs="0">
       <!-- Reference to inner class PaymentRules -->
     </xs:element>
     <xs:element name="Fulfillment" minOccurs="0">
       <!-- Reference to inner class Fulfillment -->
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:date" name="LastHoldDate"/>
 </xs:complexType>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Nested Class Summary
static class RailReservation.Fulfillment
          Information on the fullfilment of the ticket, that is, who will be issuing the ticket, or who did issue the ticket.
static class RailReservation.OriginandDestination
          Information on one specific journey from one specific origin to one specific destination.
static class RailReservation.PaymentRules
          A collection of payment rules associated with this reservation.
static class RailReservation.RailCharges
          Information on the individual charges that incurred are a result of this specific itinerary.
 
Constructor Summary
RailReservation()
           
 
Method Summary
 void addOriginandDestination(RailReservation.OriginandDestination item)
          Add a 'OriginandDestination' element item.
 void addTravelerCount(TravelerCountGroup item)
          Add a 'TravelerCount' element item.
 void addTravelerName(PersonName item)
          Add a 'TravelerName' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearOriginandDestinations()
          Remove all 'OriginandDestination' element items.
 void clearTravelerCounts()
          Remove all 'TravelerCount' element items.
 void clearTravelerNames()
          Remove all 'TravelerName' element items.
 UniqueID getBookingID()
          Get the 'BookingID' element value.
 RailReservation.Fulfillment getFulfillment()
          Get the 'Fulfillment' element value.
 VendorMessages getItineraryVendorMessages()
          Get the 'VendorMessages' element value.
 java.sql.Date getLastHoldDate()
          Get the 'LastHoldDate' attribute value.
 RailReservation.OriginandDestination getOriginandDestination(int index)
          Get 'OriginandDestination' element item by position.
 java.util.List<RailReservation.OriginandDestination> getOriginandDestinations()
          Get the list of 'OriginandDestination' element items.
 RailReservation.PaymentRules getPaymentRules()
          Get the 'PaymentRules' element value.
 RailReservation.RailCharges getRailCharges()
          Get the 'RailCharges' element value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 TravelerCountGroup getTravelerCount(int index)
          Get 'TravelerCount' element item by position.
 java.util.List<TravelerCountGroup> getTravelerCounts()
          Get the list of 'TravelerCount' element items.
 PersonName getTravelerName(int index)
          Get 'TravelerName' element item by position.
 java.util.List<PersonName> getTravelerNames()
          Get the list of 'TravelerName' element items.
 boolean ifTravelerCount()
          Check if TravelerCounts is current selection for choice.
 boolean ifTravelerNames()
          Check if TravelerNames is current selection for choice.
 void setBookingID(UniqueID bookingID)
          Set the 'BookingID' element value.
 void setFulfillment(RailReservation.Fulfillment fulfillment)
          Set the 'Fulfillment' element value.
 void setItineraryVendorMessages(VendorMessages itineraryVendorMessages)
          Set the 'VendorMessages' element value.
 void setLastHoldDate(java.sql.Date lastHoldDate)
          Set the 'LastHoldDate' attribute value.
 void setOriginandDestinations(java.util.List<RailReservation.OriginandDestination> list)
          Set the list of 'OriginandDestination' element items.
 void setPaymentRules(RailReservation.PaymentRules paymentRules)
          Set the 'PaymentRules' element value.
 void setRailCharges(RailReservation.RailCharges railCharges)
          Set the 'RailCharges' element value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setTravelerCounts(java.util.List<TravelerCountGroup> list)
          Set the list of 'TravelerCount' element items.
 void setTravelerNames(java.util.List<PersonName> list)
          Set the list of 'TravelerName' element items.
 int sizeOriginandDestinations()
          Get the number of 'OriginandDestination' element items.
 int sizeTravelerCounts()
          Get the number of 'TravelerCount' element items.
 int sizeTravelerNames()
          Get the number of 'TravelerName' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RailReservation

public RailReservation()
Method Detail

getBookingID

public UniqueID getBookingID()
Get the 'BookingID' element value. A confirmation number by which this reservation can be uniquely identified

Returns:
value

setBookingID

public void setBookingID(UniqueID bookingID)
Set the 'BookingID' element value. A confirmation number by which this reservation can be uniquely identified

Parameters:
bookingID -

getOriginandDestinations

public java.util.List<RailReservation.OriginandDestination> getOriginandDestinations()
Get the list of 'OriginandDestination' element items. A collection of origin to destination journies that are part of the complete itinerary.

Returns:
list

setOriginandDestinations

public void setOriginandDestinations(java.util.List<RailReservation.OriginandDestination> list)
Set the list of 'OriginandDestination' element items. A collection of origin to destination journies that are part of the complete itinerary.

Parameters:
list -

sizeOriginandDestinations

public int sizeOriginandDestinations()
Get the number of 'OriginandDestination' element items.

Returns:
count

addOriginandDestination

public void addOriginandDestination(RailReservation.OriginandDestination item)
Add a 'OriginandDestination' element item.

Parameters:
item -

getOriginandDestination

public RailReservation.OriginandDestination getOriginandDestination(int index)
Get 'OriginandDestination' element item by position.

Parameters:
index -
Returns:
item

clearOriginandDestinations

public void clearOriginandDestinations()
Remove all 'OriginandDestination' element items.


getRailCharges

public RailReservation.RailCharges getRailCharges()
Get the 'RailCharges' element value. Full details on the itinerary referenced by this reservation. An itinerary represents all inventory booked and associated with this specific reservation.

Returns:
value

setRailCharges

public void setRailCharges(RailReservation.RailCharges railCharges)
Set the 'RailCharges' element value. Full details on the itinerary referenced by this reservation. An itinerary represents all inventory booked and associated with this specific reservation.

Parameters:
railCharges -

getItineraryVendorMessages

public VendorMessages getItineraryVendorMessages()
Get the 'VendorMessages' element value. A collection of special comments associated with the itinerary.

Returns:
value

setItineraryVendorMessages

public void setItineraryVendorMessages(VendorMessages itineraryVendorMessages)
Set the 'VendorMessages' element value. A collection of special comments associated with the itinerary.

Parameters:
itineraryVendorMessages -

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifTravelerNames

public boolean ifTravelerNames()
Check if TravelerNames is current selection for choice.

Returns:
true if selection, false if not

getTravelerNames

public java.util.List<PersonName> getTravelerNames()
Get the list of 'TravelerName' element items. A collection of traveler names that are associated with the reservation.

Returns:
list

setTravelerNames

public void setTravelerNames(java.util.List<PersonName> list)
Set the list of 'TravelerName' element items. A collection of traveler names that are associated with the reservation.

Parameters:
list -

sizeTravelerNames

public int sizeTravelerNames()
Get the number of 'TravelerName' element items.

Returns:
count

addTravelerName

public void addTravelerName(PersonName item)
Add a 'TravelerName' element item.

Parameters:
item -

getTravelerName

public PersonName getTravelerName(int index)
Get 'TravelerName' element item by position.

Parameters:
index -
Returns:
item

clearTravelerNames

public void clearTravelerNames()
Remove all 'TravelerName' element items.


ifTravelerCount

public boolean ifTravelerCount()
Check if TravelerCounts is current selection for choice.

Returns:
true if selection, false if not

getTravelerCounts

public java.util.List<TravelerCountGroup> getTravelerCounts()
Get the list of 'TravelerCount' element items. Information on one specific traveler type and the quantity of that type of traveler.

Returns:
list

setTravelerCounts

public void setTravelerCounts(java.util.List<TravelerCountGroup> list)
Set the list of 'TravelerCount' element items. Information on one specific traveler type and the quantity of that type of traveler.

Parameters:
list -

sizeTravelerCounts

public int sizeTravelerCounts()
Get the number of 'TravelerCount' element items.

Returns:
count

addTravelerCount

public void addTravelerCount(TravelerCountGroup item)
Add a 'TravelerCount' element item.

Parameters:
item -

getTravelerCount

public TravelerCountGroup getTravelerCount(int index)
Get 'TravelerCount' element item by position.

Parameters:
index -
Returns:
item

clearTravelerCounts

public void clearTravelerCounts()
Remove all 'TravelerCount' element items.


getPaymentRules

public RailReservation.PaymentRules getPaymentRules()
Get the 'PaymentRules' element value.

Returns:
value

setPaymentRules

public void setPaymentRules(RailReservation.PaymentRules paymentRules)
Set the 'PaymentRules' element value.

Parameters:
paymentRules -

getFulfillment

public RailReservation.Fulfillment getFulfillment()
Get the 'Fulfillment' element value.

Returns:
value

setFulfillment

public void setFulfillment(RailReservation.Fulfillment fulfillment)
Set the 'Fulfillment' element value.

Parameters:
fulfillment -

getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -

getLastHoldDate

public java.sql.Date getLastHoldDate()
Get the 'LastHoldDate' attribute value.

Returns:
value

setLastHoldDate

public void setLastHoldDate(java.sql.Date lastHoldDate)
Set the 'LastHoldDate' attribute value.

Parameters:
lastHoldDate -