org.ota.shared
Class FlightSegmentBase

java.lang.Object
  extended by org.ota.shared.FlightSegmentBase
Direct Known Subclasses:
FlightSegment

public class FlightSegmentBase
extends java.lang.Object

Construct for holding a flight segment availability 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="FlightSegmentBaseType">
   <xs:sequence>
     <xs:element name="DepartureAirport" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:AirportLocationGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="ArrivalAirport" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:AirportLocationGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:OperatingAirlineType" name="OperatingAirline" minOccurs="0"/>
     <xs:element type="ns:EquipmentType" name="Equipment" minOccurs="0" maxOccurs="2"/>
   </xs:sequence>
   <xs:attribute type="xs:dateTime" use="optional" name="DepartureDateTime"/>
   <xs:attribute type="xs:dateTime" use="optional" name="ArrivalDateTime"/>
   <xs:attribute type="xs:int" use="optional" name="StopQuantity"/>
   <xs:attribute type="xs:string" use="optional" name="RPH"/>
   <xs:attribute type="xs:string" use="optional" name="InfoSource"/>
 </xs:complexType>
 


Constructor Summary
FlightSegmentBase()
           
 
Method Summary
 void addEquipment(Equipment item)
          Add a 'Equipment' element item.
 void clearEquipments()
          Remove all 'Equipment' element items.
 AirportLocationGroup getArrivalAirport()
          Get the 'AirportLocationGroup' attributeGroup value.
 java.util.Date getArrivalDateTime()
          Get the 'ArrivalDateTime' attribute value.
 AirportLocationGroup getDepartureAirport()
          Get the 'AirportLocationGroup' attributeGroup value.
 java.util.Date getDepartureDateTime()
          Get the 'DepartureDateTime' attribute value.
 Equipment getEquipment(int index)
          Get 'Equipment' element item by position.
 java.util.List<Equipment> getEquipments()
          Get the list of 'Equipment' element items.
 java.lang.String getInfoSource()
          Get the 'InfoSource' attribute value.
 OperatingAirline getOperatingAirline()
          Get the 'OperatingAirline' element value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 java.lang.Integer getStopQuantity()
          Get the 'StopQuantity' attribute value.
 void setArrivalAirport(AirportLocationGroup arrivalAirport)
          Set the 'AirportLocationGroup' attributeGroup value.
 void setArrivalDateTime(java.util.Date arrivalDateTime)
          Set the 'ArrivalDateTime' attribute value.
 void setDepartureAirport(AirportLocationGroup departureAirport)
          Set the 'AirportLocationGroup' attributeGroup value.
 void setDepartureDateTime(java.util.Date departureDateTime)
          Set the 'DepartureDateTime' attribute value.
 void setEquipments(java.util.List<Equipment> list)
          Set the list of 'Equipment' element items.
 void setInfoSource(java.lang.String infoSource)
          Set the 'InfoSource' attribute value.
 void setOperatingAirline(OperatingAirline operatingAirline)
          Set the 'OperatingAirline' element value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 void setStopQuantity(java.lang.Integer stopQuantity)
          Set the 'StopQuantity' attribute value.
 int sizeEquipments()
          Get the number of 'Equipment' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlightSegmentBase

public FlightSegmentBase()
Method Detail

getDepartureAirport

public AirportLocationGroup getDepartureAirport()
Get the 'AirportLocationGroup' attributeGroup value. Identifies the airport location for the departure.

Returns:
value

setDepartureAirport

public void setDepartureAirport(AirportLocationGroup departureAirport)
Set the 'AirportLocationGroup' attributeGroup value. Identifies the airport location for the departure.

Parameters:
departureAirport -

getArrivalAirport

public AirportLocationGroup getArrivalAirport()
Get the 'AirportLocationGroup' attributeGroup value. Identifies the airport location for the arrival.

Returns:
value

setArrivalAirport

public void setArrivalAirport(AirportLocationGroup arrivalAirport)
Set the 'AirportLocationGroup' attributeGroup value. Identifies the airport location for the arrival.

Parameters:
arrivalAirport -

getOperatingAirline

public OperatingAirline getOperatingAirline()
Get the 'OperatingAirline' element value. The operating airline of the flight if it is a codeshare flight.

Returns:
value

setOperatingAirline

public void setOperatingAirline(OperatingAirline operatingAirline)
Set the 'OperatingAirline' element value. The operating airline of the flight if it is a codeshare flight.

Parameters:
operatingAirline -

getEquipments

public java.util.List<Equipment> getEquipments()
Get the list of 'Equipment' element items. The type of equipment used for the flight..

Returns:
list

setEquipments

public void setEquipments(java.util.List<Equipment> list)
Set the list of 'Equipment' element items. The type of equipment used for the flight..

Parameters:
list -

sizeEquipments

public int sizeEquipments()
Get the number of 'Equipment' element items.

Returns:
count

addEquipment

public void addEquipment(Equipment item)
Add a 'Equipment' element item.

Parameters:
item -

getEquipment

public Equipment getEquipment(int index)
Get 'Equipment' element item by position.

Parameters:
index -
Returns:
item

clearEquipments

public void clearEquipments()
Remove all 'Equipment' element items.


getDepartureDateTime

public java.util.Date getDepartureDateTime()
Get the 'DepartureDateTime' attribute value. The date and time of the flight segment departure.

Returns:
value

setDepartureDateTime

public void setDepartureDateTime(java.util.Date departureDateTime)
Set the 'DepartureDateTime' attribute value. The date and time of the flight segment departure.

Parameters:
departureDateTime -

getArrivalDateTime

public java.util.Date getArrivalDateTime()
Get the 'ArrivalDateTime' attribute value. Specifies the arrival date and time of a flight.

Returns:
value

setArrivalDateTime

public void setArrivalDateTime(java.util.Date arrivalDateTime)
Set the 'ArrivalDateTime' attribute value. Specifies the arrival date and time of a flight.

Parameters:
arrivalDateTime -

getStopQuantity

public java.lang.Integer getStopQuantity()
Get the 'StopQuantity' attribute value. The number of stops the flight makes

Returns:
value

setStopQuantity

public void setStopQuantity(java.lang.Integer stopQuantity)
Set the 'StopQuantity' attribute value. The number of stops the flight makes

Parameters:
stopQuantity -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. Reference place holder for this flight segment.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. Reference place holder for this flight segment.

Parameters:
RPH -

getInfoSource

public java.lang.String getInfoSource()
Get the 'InfoSource' attribute value. Used to specify the source of the data being exchanged as determined by trading partners.

Returns:
value

setInfoSource

public void setInfoSource(java.lang.String infoSource)
Set the 'InfoSource' attribute value. Used to specify the source of the data being exchanged as determined by trading partners.

Parameters:
infoSource -