org.ota.loyalty
Class LoyaltyTravelInfo

java.lang.Object
  extended by org.ota.loyalty.LoyaltyTravelInfo

public class LoyaltyTravelInfo
extends java.lang.Object

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="LoyaltyTravelInfoType">
   <xs:choice>
     <xs:element name="HotelStayInfo">
       <!-- Reference to inner class HotelStayInfo -->
     </xs:element>
     <xs:element name="AirFlightInfo">
       <xs:complexType>
         <xs:sequence>
           <xs:element type="ns:FlightSegmentBaseType" name="FlightSegment" maxOccurs="9"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element name="CarRentalInfo">
       <!-- Reference to inner class CarRentalInfo -->
     </xs:element>
   </xs:choice>
 </xs:complexType>
 


Nested Class Summary
static class LoyaltyTravelInfo.CarRentalInfo
          Schema fragment(s) for this class:
static class LoyaltyTravelInfo.HotelStayInfo
          Schema fragment(s) for this class:
 
Constructor Summary
LoyaltyTravelInfo()
           
 
Method Summary
 void addFlightSegment(FlightSegmentBase item)
          Add a 'FlightSegment' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearFlightSegments()
          Remove all 'FlightSegment' element items.
 LoyaltyTravelInfo.CarRentalInfo getCarRentalInfo()
          Get the 'CarRentalInfo' element value.
 FlightSegmentBase getFlightSegment(int index)
          Get 'FlightSegment' element item by position.
 java.util.List<FlightSegmentBase> getFlightSegments()
          Get the list of 'FlightSegment' element items.
 LoyaltyTravelInfo.HotelStayInfo getHotelStayInfo()
          Get the 'HotelStayInfo' element value.
 boolean ifAirFlightInfo()
          Check if AirFlightInfo is current selection for choice.
 boolean ifCarRentalInfo()
          Check if CarRentalInfo is current selection for choice.
 boolean ifHotelStayInfo()
          Check if HotelStayInfo is current selection for choice.
 void setCarRentalInfo(LoyaltyTravelInfo.CarRentalInfo carRentalInfo)
          Set the 'CarRentalInfo' element value.
 void setFlightSegments(java.util.List<FlightSegmentBase> list)
          Set the list of 'FlightSegment' element items.
 void setHotelStayInfo(LoyaltyTravelInfo.HotelStayInfo hotelStayInfo)
          Set the 'HotelStayInfo' element value.
 int sizeFlightSegments()
          Get the number of 'FlightSegment' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoyaltyTravelInfo

public LoyaltyTravelInfo()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifHotelStayInfo

public boolean ifHotelStayInfo()
Check if HotelStayInfo is current selection for choice.

Returns:
true if selection, false if not

getHotelStayInfo

public LoyaltyTravelInfo.HotelStayInfo getHotelStayInfo()
Get the 'HotelStayInfo' element value.

Returns:
value

setHotelStayInfo

public void setHotelStayInfo(LoyaltyTravelInfo.HotelStayInfo hotelStayInfo)
Set the 'HotelStayInfo' element value.

Parameters:
hotelStayInfo -

ifAirFlightInfo

public boolean ifAirFlightInfo()
Check if AirFlightInfo is current selection for choice.

Returns:
true if selection, false if not

getFlightSegments

public java.util.List<FlightSegmentBase> getFlightSegments()
Get the list of 'FlightSegment' element items.

Returns:
list

setFlightSegments

public void setFlightSegments(java.util.List<FlightSegmentBase> list)
Set the list of 'FlightSegment' element items.

Parameters:
list -

sizeFlightSegments

public int sizeFlightSegments()
Get the number of 'FlightSegment' element items.

Returns:
count

addFlightSegment

public void addFlightSegment(FlightSegmentBase item)
Add a 'FlightSegment' element item.

Parameters:
item -

getFlightSegment

public FlightSegmentBase getFlightSegment(int index)
Get 'FlightSegment' element item by position.

Parameters:
index -
Returns:
item

clearFlightSegments

public void clearFlightSegments()
Remove all 'FlightSegment' element items.


ifCarRentalInfo

public boolean ifCarRentalInfo()
Check if CarRentalInfo is current selection for choice.

Returns:
true if selection, false if not

getCarRentalInfo

public LoyaltyTravelInfo.CarRentalInfo getCarRentalInfo()
Get the 'CarRentalInfo' element value.

Returns:
value

setCarRentalInfo

public void setCarRentalInfo(LoyaltyTravelInfo.CarRentalInfo carRentalInfo)
Set the 'CarRentalInfo' element value.

Parameters:
carRentalInfo -