org.ota.air
Class ScheduleRQ

java.lang.Object
  extended by org.ota.air.ScheduleRQ

public class ScheduleRQ
extends java.lang.Object

The Schedule Request message requests Flight Schedules for a city pair. Optional request information can include: - Time / Time Window - Connecting cities. - Client Preferences (airlines, cabin, flight types etc.) The request can be narrowed to request schedules for a specific airline or specific flight. 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="OTA_AirScheduleRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element name="OriginDestinationInformation">
         <xs:complexType>
           <xs:complexContent>
             <xs:extension base="ns:OriginDestinationInformationType">
               <xs:attributeGroup ref="ns:DOW_PatternGroup"/>
             </xs:extension>
           </xs:complexContent>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:SpecificFlightInfoType" name="FlightInfo" minOccurs="0"/>
       <xs:element type="ns:CompanyNamePrefType" name="VendorPref" minOccurs="0" maxOccurs="99"/>
       <xs:element name="FlightTypePref" minOccurs="0" maxOccurs="3">
         <xs:complexType>
           <xs:attributeGroup ref="ns:FlightTypePrefGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:EquipmentTypePref" name="EquipPref" minOccurs="0" maxOccurs="9"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:MaxResponsesGroup"/>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="MaxResponsesGroup">
   <xs:attribute type="xs:string" use="optional" name="MaxResponses"/>
 </xs:attributeGroup>
 


Constructor Summary
ScheduleRQ()
           
 
Method Summary
 void addEquipPref(EquipmentTypePref item)
          Add a 'EquipPref' element item.
 void addFlightTypePref(FlightTypePrefGroup item)
          Add a 'FlightTypePref' element item.
 void addVendorPref(CompanyNamePref item)
          Add a 'VendorPref' element item.
 void clearEquipPrefs()
          Remove all 'EquipPref' element items.
 void clearFlightTypePrefs()
          Remove all 'FlightTypePref' element items.
 void clearVendorPrefs()
          Remove all 'VendorPref' element items.
 EquipmentTypePref getEquipPref(int index)
          Get 'EquipPref' element item by position.
 java.util.List<EquipmentTypePref> getEquipPrefs()
          Get the list of 'EquipPref' element items.
 SpecificFlightInfo getFlightInfo()
          Get the 'FlightInfo' element value.
 FlightTypePrefGroup getFlightTypePref(int index)
          Get 'FlightTypePref' element item by position.
 java.util.List<FlightTypePrefGroup> getFlightTypePrefs()
          Get the list of 'FlightTypePref' element items.
 java.lang.String getMaxResponses()
          Get the 'MaxResponses' attribute value.
 DOWPatternGroup getOriginDestinationInformationDOWPatternGroup()
          Get the 'DOW_PatternGroup' attributeGroup value.
 OriginDestinationInformation getOriginDestinationInformationOriginDestinationInformation()
          Get the extension value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 CompanyNamePref getVendorPref(int index)
          Get 'VendorPref' element item by position.
 java.util.List<CompanyNamePref> getVendorPrefs()
          Get the list of 'VendorPref' element items.
 void setEquipPrefs(java.util.List<EquipmentTypePref> list)
          Set the list of 'EquipPref' element items.
 void setFlightInfo(SpecificFlightInfo flightInfo)
          Set the 'FlightInfo' element value.
 void setFlightTypePrefs(java.util.List<FlightTypePrefGroup> list)
          Set the list of 'FlightTypePref' element items.
 void setMaxResponses(java.lang.String maxResponses)
          Set the 'MaxResponses' attribute value.
 void setOriginDestinationInformationDOWPatternGroup(DOWPatternGroup originDestinationInformationDOWPatternGroup)
          Set the 'DOW_PatternGroup' attributeGroup value.
 void setOriginDestinationInformationOriginDestinationInformation(OriginDestinationInformation originDestinationInformationOriginDestinationInformation)
          Set the extension value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setVendorPrefs(java.util.List<CompanyNamePref> list)
          Set the list of 'VendorPref' element items.
 int sizeEquipPrefs()
          Get the number of 'EquipPref' element items.
 int sizeFlightTypePrefs()
          Get the number of 'FlightTypePref' element items.
 int sizeVendorPrefs()
          Get the number of 'VendorPref' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduleRQ

public ScheduleRQ()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. Point of sale object.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. Point of sale object.

Parameters:
POS -

getOriginDestinationInformationOriginDestinationInformation

public OriginDestinationInformation getOriginDestinationInformationOriginDestinationInformation()
Get the extension value.

Returns:
value

setOriginDestinationInformationOriginDestinationInformation

public void setOriginDestinationInformationOriginDestinationInformation(OriginDestinationInformation originDestinationInformationOriginDestinationInformation)
Set the extension value.

Parameters:
originDestinationInformationOriginDestinationInformation -

getOriginDestinationInformationDOWPatternGroup

public DOWPatternGroup getOriginDestinationInformationDOWPatternGroup()
Get the 'DOW_PatternGroup' attributeGroup value. If any day of the week attributes are set to true, only flights for those days of the week are being requested.

Returns:
value

setOriginDestinationInformationDOWPatternGroup

public void setOriginDestinationInformationDOWPatternGroup(DOWPatternGroup originDestinationInformationDOWPatternGroup)
Set the 'DOW_PatternGroup' attributeGroup value. If any day of the week attributes are set to true, only flights for those days of the week are being requested.

Parameters:
originDestinationInformationDOWPatternGroup -

getFlightInfo

public SpecificFlightInfo getFlightInfo()
Get the 'FlightInfo' element value. Specific airline and flight number for which a schedule is being requested.

Returns:
value

setFlightInfo

public void setFlightInfo(SpecificFlightInfo flightInfo)
Set the 'FlightInfo' element value. Specific airline and flight number for which a schedule is being requested.

Parameters:
flightInfo -

getVendorPrefs

public java.util.List<CompanyNamePref> getVendorPrefs()
Get the list of 'VendorPref' element items. Specify vendors to include and exclude from the response.

Returns:
list

setVendorPrefs

public void setVendorPrefs(java.util.List<CompanyNamePref> list)
Set the list of 'VendorPref' element items. Specify vendors to include and exclude from the response.

Parameters:
list -

sizeVendorPrefs

public int sizeVendorPrefs()
Get the number of 'VendorPref' element items.

Returns:
count

addVendorPref

public void addVendorPref(CompanyNamePref item)
Add a 'VendorPref' element item.

Parameters:
item -

getVendorPref

public CompanyNamePref getVendorPref(int index)
Get 'VendorPref' element item by position.

Parameters:
index -
Returns:
item

clearVendorPrefs

public void clearVendorPrefs()
Remove all 'VendorPref' element items.


getFlightTypePrefs

public java.util.List<FlightTypePrefGroup> getFlightTypePrefs()
Get the list of 'FlightTypePref' element items. Flight Type Preferences to qualify Air Schedule request.

Returns:
list

setFlightTypePrefs

public void setFlightTypePrefs(java.util.List<FlightTypePrefGroup> list)
Set the list of 'FlightTypePref' element items. Flight Type Preferences to qualify Air Schedule request.

Parameters:
list -

sizeFlightTypePrefs

public int sizeFlightTypePrefs()
Get the number of 'FlightTypePref' element items.

Returns:
count

addFlightTypePref

public void addFlightTypePref(FlightTypePrefGroup item)
Add a 'FlightTypePref' element item.

Parameters:
item -

getFlightTypePref

public FlightTypePrefGroup getFlightTypePref(int index)
Get 'FlightTypePref' element item by position.

Parameters:
index -
Returns:
item

clearFlightTypePrefs

public void clearFlightTypePrefs()
Remove all 'FlightTypePref' element items.


getEquipPrefs

public java.util.List<EquipmentTypePref> getEquipPrefs()
Get the list of 'EquipPref' element items. Equipment Preference to qualify Air Schedule request.

Returns:
list

setEquipPrefs

public void setEquipPrefs(java.util.List<EquipmentTypePref> list)
Set the list of 'EquipPref' element items. Equipment Preference to qualify Air Schedule request.

Parameters:
list -

sizeEquipPrefs

public int sizeEquipPrefs()
Get the number of 'EquipPref' element items.

Returns:
count

addEquipPref

public void addEquipPref(EquipmentTypePref item)
Add a 'EquipPref' element item.

Parameters:
item -

getEquipPref

public EquipmentTypePref getEquipPref(int index)
Get 'EquipPref' element item by position.

Parameters:
index -
Returns:
item

clearEquipPrefs

public void clearEquipPrefs()
Remove all 'EquipPref' element items.


getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes -

getMaxResponses

public java.lang.String getMaxResponses()
Get the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

Returns:
value

setMaxResponses

public void setMaxResponses(java.lang.String maxResponses)
Set the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

Parameters:
maxResponses -