org.ota.vehicle
Class VehicleRetrieveResRSCore

java.lang.Object
  extended by org.ota.vehicle.VehicleRetrieveResRSCore

public class VehicleRetrieveResRSCore
extends java.lang.Object

The VehicleRetrieveResRSCoreType complex type identifies the core, or common, information that is associated with a retrieved reservation, or a list of reservations when one exact match could not be identified. 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="VehicleRetrieveResRSCoreType">
   <xs:sequence>
     <xs:choice>
       <xs:element type="ns:VehicleReservationType" name="VehReservation"/>
       <xs:element name="VehResSummaries">
         <xs:complexType>
           <xs:sequence>
             <xs:element type="ns:VehicleReservationSummaryType" name="VehResSummary" maxOccurs="99"/>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
     </xs:choice>
   </xs:sequence>
 </xs:complexType>
 


Constructor Summary
VehicleRetrieveResRSCore()
           
 
Method Summary
 void addVehResSummary(VehicleReservationSummary item)
          Add a 'VehResSummary' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearVehResSummaries()
          Remove all 'VehResSummary' element items.
 VehicleReservation getVehReservation()
          Get the 'VehReservation' element value.
 java.util.List<VehicleReservationSummary> getVehResSummaries()
          Get the list of 'VehResSummary' element items.
 VehicleReservationSummary getVehResSummary(int index)
          Get 'VehResSummary' element item by position.
 boolean ifVehReservation()
          Check if VehReservation is current selection for choice.
 boolean ifVehResSummaries()
          Check if VehResSummaries is current selection for choice.
 void setVehReservation(VehicleReservation vehReservation)
          Set the 'VehReservation' element value.
 void setVehResSummaries(java.util.List<VehicleReservationSummary> list)
          Set the list of 'VehResSummary' element items.
 int sizeVehResSummaries()
          Get the number of 'VehResSummary' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleRetrieveResRSCore

public VehicleRetrieveResRSCore()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifVehReservation

public boolean ifVehReservation()
Check if VehReservation is current selection for choice.

Returns:
true if selection, false if not

getVehReservation

public VehicleReservation getVehReservation()
Get the 'VehReservation' element value. Information on one reservation when the request results in exactly one matching reservation being located

Returns:
value

setVehReservation

public void setVehReservation(VehicleReservation vehReservation)
Set the 'VehReservation' element value. Information on one reservation when the request results in exactly one matching reservation being located

Parameters:
vehReservation -

ifVehResSummaries

public boolean ifVehResSummaries()
Check if VehResSummaries is current selection for choice.

Returns:
true if selection, false if not

getVehResSummaries

public java.util.List<VehicleReservationSummary> getVehResSummaries()
Get the list of 'VehResSummary' element items. A list of 2 or more reservations that match the criteria in the request

Returns:
list

setVehResSummaries

public void setVehResSummaries(java.util.List<VehicleReservationSummary> list)
Set the list of 'VehResSummary' element items. A list of 2 or more reservations that match the criteria in the request

Parameters:
list -

sizeVehResSummaries

public int sizeVehResSummaries()
Get the number of 'VehResSummary' element items.

Returns:
count

addVehResSummary

public void addVehResSummary(VehicleReservationSummary item)
Add a 'VehResSummary' element item.

Parameters:
item -

getVehResSummary

public VehicleReservationSummary getVehResSummary(int index)
Get 'VehResSummary' element item by position.

Parameters:
index -
Returns:
item

clearVehResSummaries

public void clearVehResSummaries()
Remove all 'VehResSummary' element items.