org.ota.insurance
Class PlanSearchRQ.SearchTripInfo

java.lang.Object
  extended by org.ota.insurance.PlanSearchRQ.SearchTripInfo
Enclosing class:
PlanSearchRQ

public static class PlanSearchRQ.SearchTripInfo
extends java.lang.Object

Collection of information about the trips for which insurance coverage is being searched for. 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="SearchTripInfo" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="xs:string" name="TravelSector" minOccurs="0" maxOccurs="5"/>
       <xs:element name="TotalTripCost" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:TimeDurationType" name="MaximumTripLength" minOccurs="0"/>
       <xs:element name="CoveredTrips" minOccurs="0">
         <!-- Reference to inner class CoveredTrips -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class PlanSearchRQ.SearchTripInfo.CoveredTrips
          Container for any information about the trip(s) for which the traveler(s) are requesting coverage.
 
Constructor Summary
PlanSearchRQ.SearchTripInfo()
           
 
Method Summary
 void addTravelSector(java.lang.String item)
          Add a 'TravelSector' element item.
 void clearTravelSectors()
          Remove all 'TravelSector' element items.
 PlanSearchRQ.SearchTripInfo.CoveredTrips getCoveredTrips()
          Get the 'CoveredTrips' element value.
 TimeDuration getMaximumTripLength()
          Get the 'MaximumTripLength' element value.
 CurrencyAmountGroup getTotalTripCost()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 java.lang.String getTravelSector(int index)
          Get 'TravelSector' element item by position.
 java.util.List<java.lang.String> getTravelSectors()
          Get the list of 'TravelSector' element items.
 void setCoveredTrips(PlanSearchRQ.SearchTripInfo.CoveredTrips coveredTrips)
          Set the 'CoveredTrips' element value.
 void setMaximumTripLength(TimeDuration maximumTripLength)
          Set the 'MaximumTripLength' element value.
 void setTotalTripCost(CurrencyAmountGroup totalTripCost)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 void setTravelSectors(java.util.List<java.lang.String> list)
          Set the list of 'TravelSector' element items.
 int sizeTravelSectors()
          Get the number of 'TravelSector' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanSearchRQ.SearchTripInfo

public PlanSearchRQ.SearchTripInfo()
Method Detail

getTravelSectors

public java.util.List<java.lang.String> getTravelSectors()
Get the list of 'TravelSector' element items. Code used to indicate the travel sector (air, car, hotel, cruise) associated with the trips. Refer to OpenTravel Code List Travel Sector (TVS).

Returns:
list

setTravelSectors

public void setTravelSectors(java.util.List<java.lang.String> list)
Set the list of 'TravelSector' element items. Code used to indicate the travel sector (air, car, hotel, cruise) associated with the trips. Refer to OpenTravel Code List Travel Sector (TVS).

Parameters:
list -

sizeTravelSectors

public int sizeTravelSectors()
Get the number of 'TravelSector' element items.

Returns:
count

addTravelSector

public void addTravelSector(java.lang.String item)
Add a 'TravelSector' element item.

Parameters:
item -

getTravelSector

public java.lang.String getTravelSector(int index)
Get 'TravelSector' element item by position.

Parameters:
index -
Returns:
item

clearTravelSectors

public void clearTravelSectors()
Remove all 'TravelSector' element items.


getTotalTripCost

public CurrencyAmountGroup getTotalTripCost()
Get the 'CurrencyAmountGroup' attributeGroup value. Estimated trip cost, or the total price of the journey for the traveler(s).

Returns:
value

setTotalTripCost

public void setTotalTripCost(CurrencyAmountGroup totalTripCost)
Set the 'CurrencyAmountGroup' attributeGroup value. Estimated trip cost, or the total price of the journey for the traveler(s).

Parameters:
totalTripCost -

getMaximumTripLength

public TimeDuration getMaximumTripLength()
Get the 'MaximumTripLength' element value. The maximum trip length the traveler(s) plan on taking during the period of coverage (Multi-Trip plans only).

Returns:
value

setMaximumTripLength

public void setMaximumTripLength(TimeDuration maximumTripLength)
Set the 'MaximumTripLength' element value. The maximum trip length the traveler(s) plan on taking during the period of coverage (Multi-Trip plans only).

Parameters:
maximumTripLength -

getCoveredTrips

public PlanSearchRQ.SearchTripInfo.CoveredTrips getCoveredTrips()
Get the 'CoveredTrips' element value.

Returns:
value

setCoveredTrips

public void setCoveredTrips(PlanSearchRQ.SearchTripInfo.CoveredTrips coveredTrips)
Set the 'CoveredTrips' element value.

Parameters:
coveredTrips -