Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.air;
  
  import java.util.List;
The Schedule Request message requests Flight Schedules for a city pair. Optional request information can include: Time / Time Window; Connecting cities; and 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/common" 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/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="MaxResponsesGroup">
   <xs:attribute type="xs:string" use="optional" name="MaxResponses"/>
 </xs:attributeGroup>
 
 
 public class ScheduleRQ
 {
     private POS POS;
     private SpecificFlightInfo flightInfo;
     private String maxResponses;

    
Get the 'POS' element value. Point of sale object.

Returns:
value
 
     public POS getPOS() {
         return ;
     }

    
Set the 'POS' element value. Point of sale object.

Parameters:
POS
 
     public void setPOS(POS POS) {
         this. = POS;
     }

    
Get the extension value.

Returns:
value
 
     }

    
Set the extension value.

Parameters:
originDestinationInformationOriginDestinationInformation
 
             OriginDestinationInformation originDestinationInformationOriginDestinationInformation) {
         this. = originDestinationInformationOriginDestinationInformation;
     }

    
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
    }

    
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
            DOWPatternGroup originDestinationInformationDOWPatternGroup) {
        this. = originDestinationInformationDOWPatternGroup;
    }

    
Get the 'FlightInfo' element value. Specific airline and flight number for which a schedule is being requested.

Returns:
value
    public SpecificFlightInfo getFlightInfo() {
        return ;
    }

    
Set the 'FlightInfo' element value. Specific airline and flight number for which a schedule is being requested.

Parameters:
flightInfo
    public void setFlightInfo(SpecificFlightInfo flightInfo) {
        this. = flightInfo;
    }

    
Get the list of 'VendorPref' element items. Specify vendors to include and exclude from the response.

Returns:
list
        return ;
    }

    
Set the list of 'VendorPref' element items. Specify vendors to include and exclude from the response.

Parameters:
list
    public void setVendorPrefList(List<CompanyNamePreflist) {
         = list;
    }

    
Get the number of 'VendorPref' element items.

Returns:
count
    public int sizeVendorPrefList() {
        return .size();
    }

    
Add a 'VendorPref' element item.

Parameters:
item
    public void addVendorPref(CompanyNamePref item) {
        .add(item);
    }

    
Get 'VendorPref' element item by position.

Parameters:
index
Returns:
item
    public CompanyNamePref getVendorPref(int index) {
        return .get(index);
    }

    
Remove all 'VendorPref' element items.
    public void clearVendorPrefList() {
        .clear();
    }

    
Get the list of 'FlightTypePref' element items. Flight Type Preferences to qualify Air Schedule request.

Returns:
list
        return ;
    }

    
Set the list of 'FlightTypePref' element items. Flight Type Preferences to qualify Air Schedule request.

Parameters:
list
    public void setFlightTypePrefList(List<FlightTypePrefGrouplist) {
         = list;
    }

    
Get the number of 'FlightTypePref' element items.

Returns:
count
    public int sizeFlightTypePrefList() {
        return .size();
    }

    
Add a 'FlightTypePref' element item.

Parameters:
item
    public void addFlightTypePref(FlightTypePrefGroup item) {
        .add(item);
    }

    
Get 'FlightTypePref' element item by position.

Parameters:
index
Returns:
item
    public FlightTypePrefGroup getFlightTypePref(int index) {
        return .get(index);
    }

    
Remove all 'FlightTypePref' element items.
    public void clearFlightTypePrefList() {
        .clear();
    }

    
Get the list of 'EquipPref' element items. Equipment Preference to qualify Air Schedule request.

Returns:
list
        return ;
    }

    
Set the list of 'EquipPref' element items. Equipment Preference to qualify Air Schedule request.

Parameters:
list
    public void setEquipPrefList(List<EquipmentTypePreflist) {
         = list;
    }

    
Get the number of 'EquipPref' element items.

Returns:
count
    public int sizeEquipPrefList() {
        return .size();
    }

    
Add a 'EquipPref' element item.

Parameters:
item
    public void addEquipPref(EquipmentTypePref item) {
        .add(item);
    }

    
Get 'EquipPref' element item by position.

Parameters:
index
Returns:
item
    public EquipmentTypePref getEquipPref(int index) {
        return .get(index);
    }

    
Remove all 'EquipPref' element items.
    public void clearEquipPrefList() {
        .clear();
    }

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value. The OTA_PayloadStdAttributes defines the standard attributes that appear on the root element for all OpenTravel messages.

Returns:
value
        return ;
    }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value. The OTA_PayloadStdAttributes defines the standard attributes that appear on the root element for all OpenTravel messages.

Parameters:
OTAPayloadStdAttributes
    public void setOTAPayloadStdAttributes(
            OTAPayloadStdAttributes OTAPayloadStdAttributes) {
        this. = OTAPayloadStdAttributes;
    }

    
Get the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

Returns:
value
    public String getMaxResponses() {
        return ;
    }

    
Set the 'MaxResponses' attribute value. A positive integer value that indicates the maximum number of responses desired in the return.

Parameters:
maxResponses
    public void setMaxResponses(String maxResponses) {
        this. = maxResponses;
    }
New to GrepCode? Check out our FAQ X