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 Availability Request message requests Flight Availability for a city pair on a specific date for a specific number and type of passengers. Optional request information can include:Time / Time Window, Connecting cities, Client Preferences (airlines, cabin, flight types etc.) The request can be narrowed to request availability for a specific airline, specific flight, or specific booking class on a specific flight. The availability request message contains similar information to a standard Airline CRS or GDS availability request message. 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_AirAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="ProcessingInfo" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:AirProcessingInfoGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:MultiModalOfferType" name="MultimodalOffer" minOccurs="0"/>
       <xs:element name="OriginDestinationInformation" maxOccurs="99">
         <!-- Reference to inner class OriginDestinationInformation -->
       </xs:element>
       <xs:element type="ns:SpecificFlightInfoType" name="SpecificFlightInfo" minOccurs="0"/>
       <xs:element type="ns:AirSearchPrefsType" name="TravelPreferences" minOccurs="0"/>
       <xs:element type="ns:TravelerInfoSummaryType" name="TravelerInfoSummary" minOccurs="0"/>
       <xs:element type="ns:BookFlightSegmentType" name="BookedFlightSegment" minOccurs="0" maxOccurs="99"/>
       <xs:element type="ns:AirOfferChoiceType" name="Offer" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:MaxResponsesGroup"/>
     <xs:attributeGroup ref="ns:DirectAndStopsGroup"/>
   </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 AvailRQ
 {
     private POS POS;
     private MultiModalOffer multimodalOffer;
     private AirSearchPrefs travelPreferences;
     private AirOfferChoice offer;
     private String maxResponses;
     private DirectAndStopsGroup directAndStopsGroup;

    
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 'AirProcessingInfoGroup' attributeGroup value. A collection of information that specifies how the message processing should occur or how the data should be returned.

Returns:
value
 
         return ;
     }

    
Set the 'AirProcessingInfoGroup' attributeGroup value. A collection of information that specifies how the message processing should occur or how the data should be returned.

Parameters:
processingInfo
 
     public void setProcessingInfo(AirProcessingInfoGroup processingInfo) {
         this. = processingInfo;
    }

    
Get the 'MultimodalOffer' element value. Multimodal offer influencers.

Returns:
value
        return ;
    }

    
Set the 'MultimodalOffer' element value. Multimodal offer influencers.

Parameters:
multimodalOffer
    public void setMultimodalOffer(MultiModalOffer multimodalOffer) {
        this. = multimodalOffer;
    }

    
Get the list of 'OriginDestinationInformation' element items.

Returns:
list
        return ;
    }

    
Set the list of 'OriginDestinationInformation' element items.

Parameters:
list
            List<OriginDestinationInformationlist) {
         = list;
    }

    
Get the number of 'OriginDestinationInformation' element items.

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

    
Add a 'OriginDestinationInformation' element item.

Parameters:
item
    public void addOriginDestinationInformation(
            OriginDestinationInformation item) {
    }

    
Get 'OriginDestinationInformation' element item by position.

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

    
Remove all 'OriginDestinationInformation' element items.
    public void clearOriginDestinationInformationList() {
    }

    
Get the 'SpecificFlightInfo' element value. Information used to specify a flight for which availability is to be checked.

Returns:
value
        return ;
    }

    
Set the 'SpecificFlightInfo' element value. Information used to specify a flight for which availability is to be checked.

Parameters:
specificFlightInfo
    public void setSpecificFlightInfo(
            org.jibx.schema.org.opentravel._2012B.base.air.SpecificFlightInfo specificFlightInfo) {
        this. = specificFlightInfo;
    }

    
Get the 'TravelPreferences' element value. Air Availability Request preference information.

Returns:
value
        return ;
    }

    
Set the 'TravelPreferences' element value. Air Availability Request preference information.

Parameters:
travelPreferences
    public void setTravelPreferences(AirSearchPrefs travelPreferences) {
        this. = travelPreferences;
    }

    
Get the 'TravelerInfoSummary' element value. Used to specify passenger and fare information for which availability is to be checked.

Returns:
value
        return ;
    }

    
Set the 'TravelerInfoSummary' element value. Used to specify passenger and fare information for which availability is to be checked.

Parameters:
travelerInfoSummary
    public void setTravelerInfoSummary(TravelerInfoSummary travelerInfoSummary) {
        this. = travelerInfoSummary;
    }

    
Get the list of 'BookedFlightSegment' element items. The flight segment information contained in the passenger's current booking.

Returns:
list
        return ;
    }

    
Set the list of 'BookedFlightSegment' element items. The flight segment information contained in the passenger's current booking.

Parameters:
list
    public void setBookedFlightSegmentList(List<BookFlightSegmentlist) {
         = list;
    }

    
Get the number of 'BookedFlightSegment' element items.

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

    
Add a 'BookedFlightSegment' element item.

Parameters:
item
    public void addBookedFlightSegment(BookFlightSegment item) {
        .add(item);
    }

    
Get 'BookedFlightSegment' element item by position.

Parameters:
index
Returns:
item
    public BookFlightSegment getBookedFlightSegment(int index) {
        return .get(index);
    }

    
Remove all 'BookedFlightSegment' element items.
    public void clearBookedFlightSegmentList() {
    }

    
Get the 'Offer' element value. Merchandising offers associated with the fare or traveler.

Returns:
value
    public AirOfferChoice getOffer() {
        return ;
    }

    
Set the 'Offer' element value. Merchandising offers associated with the fare or traveler.

Parameters:
offer
    public void setOffer(AirOfferChoice offer) {
        this. = offer;
    }

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value
        return ;
    }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

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;
    }

    
Get the 'DirectAndStopsGroup' attributeGroup value.

Returns:
value
        return ;
    }

    
Set the 'DirectAndStopsGroup' attributeGroup value.

Parameters:
directAndStopsGroup
    public void setDirectAndStopsGroup(DirectAndStopsGroup directAndStopsGroup) {
        this. = directAndStopsGroup;
    }
    
Information on the locations between which availability is to be checked. 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="OriginDestinationInformation" maxOccurs="99">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:OriginDestinationInformationType">
         <xs:sequence>
           <xs:element name="SpecificFlightInfo" minOccurs="0">
             <!-- Reference to inner class SpecificFlightInfo -->
           </xs:element>
           <xs:element type="ns:AirSearchPrefsType" name="TravelPreferences" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute type="xs:boolean" use="optional" name="SameAirportInd"/>
         <xs:attribute type="xs:string" use="optional" name="RPH"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class OriginDestinationInformation
            extends
    {
        private SpecificFlightInfo specificFlightInfo;
        private AirSearchPrefs travelPreferences;
        private Boolean sameAirportInd;
        private String RPH;

        
Get the 'SpecificFlightInfo' element value.

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

        
Set the 'SpecificFlightInfo' element value.

Parameters:
specificFlightInfo
        public void setSpecificFlightInfo(SpecificFlightInfo specificFlightInfo) {
            this. = specificFlightInfo;
        }

        
Get the 'TravelPreferences' element value. Traveler preference information for this particular origin and destination.

Returns:
value
        public AirSearchPrefs getTravelPreferences() {
            return ;
        }

        
Set the 'TravelPreferences' element value. Traveler preference information for this particular origin and destination.

Parameters:
travelPreferences
        public void setTravelPreferences(AirSearchPrefs travelPreferences) {
            this. = travelPreferences;
        }

        
Get the 'SameAirportInd' attribute value. If true, the return departure must be from the same airport as the outbound arrival.

Returns:
value
        public Boolean getSameAirportInd() {
            return ;
        }

        
Set the 'SameAirportInd' attribute value. If true, the return departure must be from the same airport as the outbound arrival.

Parameters:
sameAirportInd
        public void setSameAirportInd(Boolean sameAirportInd) {
            this. = sameAirportInd;
        }

        
Get the 'RPH' attribute value. Uniquely identifies this origin destination information.

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

        
Set the 'RPH' attribute value. Uniquely identifies this origin destination information.

Parameters:
RPH
        public void setRPH(String RPH) {
            this. = RPH;
        }
        
To specify a flight for this origin and destination for which availability is to be checked. 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="SpecificFlightInfo" minOccurs="0">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:SpecificFlightInfoType">
         <xs:attribute type="xs:boolean" use="optional" name="PollingIndicator"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
        public static class SpecificFlightInfo
                extends
                    org.jibx.schema.org.opentravel._2012B.base.air.SpecificFlightInfo
        {
            private Boolean pollingIndicator;

            
Get the 'PollingIndicator' attribute value. Indicates if the actual inventory information needs to be returned for a specific flight.

Returns:
value
            public Boolean getPollingIndicator() {
                return ;
            }

            
Set the 'PollingIndicator' attribute value. Indicates if the actual inventory information needs to be returned for a specific flight.

Parameters:
pollingIndicator
            public void setPollingIndicator(Boolean pollingIndicator) {
                this. = pollingIndicator;
            }
        }
    }
New to GrepCode? Check out our FAQ X