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 Low Fare Search Request message requests priced itinerary options for flights between specific city pairs on specific dates for specific numbers and types of passengers. Optional request information can include: Time / Time Window; Connecting cities; and Client Preferences (airlines, cabin, flight types etc.) The Low Fare Search request contains similar information to a Low Fare Search entry on an airline CRS or GDS. 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_AirLowFareSearchRQ">
   <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="10">
         <!-- Reference to inner class OriginDestinationInformation -->
       </xs:element>
       <xs:element type="ns:SpecificFlightInfoType" name="SpecificFlightInfo" minOccurs="0"/>
       <xs:element name="TravelPreferences" minOccurs="0" maxOccurs="10">
         <!-- Reference to inner class TravelPreferences -->
       </xs:element>
       <xs:element name="TravelerInfoSummary">
         <xs:complexType>
           <xs:complexContent>
             <xs:extension base="ns:TravelerInfoSummaryType">
               <xs:attribute type="xs:string" use="optional" name="TicketingCountryCode"/>
               <xs:attribute type="xs:boolean" use="optional" name="SpecificPTC_Indicator"/>
             </xs:extension>
           </xs:complexContent>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:AirArrangerType" name="ArrangerInfoSummary" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:MaxResponsesGroup"/>
     <xs:attribute type="xs:boolean" use="optional" name="DirectFlightsOnly"/>
     <xs:attribute type="xs:boolean" use="optional" name="AvailableFlightsOnly"/>
   </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 LowFareSearchRQ
 {
     private POS POS;
     private MultiModalOffer multimodalOffer;
     private AirArranger arrangerInfoSummary;
     private String maxResponses;
     private Boolean directFlightsOnly;
     private Boolean availableFlightsOnly;

    
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. Specify actual airline, flight number, or booking class to qualify the low fare search.

Returns:
value
        return ;
    }

    
Set the 'SpecificFlightInfo' element value. Specify actual airline, flight number, or booking class to qualify the low fare search.

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

    
Get the list of 'TravelPreferences' element items.

Returns:
list
        return ;
    }

    
Set the list of 'TravelPreferences' element items.

Parameters:
list
    public void setTravelPreferenceList(List<TravelPreferenceslist) {
         = list;
    }

    
Get the number of 'TravelPreferences' element items.

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

    
Add a 'TravelPreferences' element item.

Parameters:
item
    public void addTravelPreference(TravelPreferences item) {
        .add(item);
    }

    
Get 'TravelPreferences' element item by position.

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

    
Remove all 'TravelPreferences' element items.
    public void clearTravelPreferenceList() {
        .clear();
    }

    
Get the extension value.

Returns:
value
    }

    
Set the extension value.

Parameters:
travelerInfoSummaryTravelerInfoSummary
            TravelerInfoSummary travelerInfoSummaryTravelerInfoSummary) {
        this. = travelerInfoSummaryTravelerInfoSummary;
    }

    
Get the 'TicketingCountryCode' attribute value. To specify the country code where ticketing of the reservation will take place.

Returns:
value
    }

    
Set the 'TicketingCountryCode' attribute value. To specify the country code where ticketing of the reservation will take place.

Parameters:
travelerInfoSummaryTicketingCountryCode
            String travelerInfoSummaryTicketingCountryCode) {
        this. = travelerInfoSummaryTicketingCountryCode;
    }

    
Get the 'SpecificPTC_Indicator' attribute value. If true, this request is for a specific PTC and only fares applicable to that PTC will be checked and returned.

Returns:
value
    }

    
Set the 'SpecificPTC_Indicator' attribute value. If true, this request is for a specific PTC and only fares applicable to that PTC will be checked and returned.

Parameters:
travelerInfoSummarySpecificPTCIndicator
            Boolean travelerInfoSummarySpecificPTCIndicator) {
        this. = travelerInfoSummarySpecificPTCIndicator;
    }

    
Get the 'ArrangerInfoSummary' element value. Information about a person or entity associated with an air trip who will not be traveling. This is generally used to describe an individual or company paying for a ticket or making the travel plans.

Returns:
value
        return ;
    }

    
Set the 'ArrangerInfoSummary' element value. Information about a person or entity associated with an air trip who will not be traveling. This is generally used to describe an individual or company paying for a ticket or making the travel plans.

Parameters:
arrangerInfoSummary
    public void setArrangerInfoSummary(AirArranger arrangerInfoSummary) {
        this. = arrangerInfoSummary;
    }

    
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 'DirectFlightsOnly' attribute value. Request direct flights on between the given locations. <LegacyDefaultValue xmlns="http://www.opentravel.org/OTA/2003/05/common">false</LegacyDefaultValue>

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

    
Set the 'DirectFlightsOnly' attribute value. Request direct flights on between the given locations. <LegacyDefaultValue xmlns="http://www.opentravel.org/OTA/2003/05/common">false</LegacyDefaultValue>

Parameters:
directFlightsOnly
    public void setDirectFlightsOnly(Boolean directFlightsOnly) {
        this. = directFlightsOnly;
    }

    
Get the 'AvailableFlightsOnly' attribute value. Include only flights with available booking codes (when True or when attribute not present).

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

    
Set the 'AvailableFlightsOnly' attribute value. Include only flights with available booking codes (when True or when attribute not present).

Parameters:
availableFlightsOnly
    public void setAvailableFlightsOnly(Boolean availableFlightsOnly) {
        this. = availableFlightsOnly;
    }
    
Origin and Destination location, and time information for the Air Low Fare Search request. 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="10">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:OriginDestinationInformationType">
         <xs:sequence>
           <xs:element name="AlternateLocationInfo" minOccurs="0">
             <!-- Reference to inner class AlternateLocationInfo -->
           </xs:element>
           <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute type="xs:string" use="optional" name="RPH"/>
         <xs:attribute type="xs:int" use="optional" name="RefNumber"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class OriginDestinationInformation
            extends
    {
        private TPAExtensions TPAExtensions;
        private String RPH;
        private Integer refNumber;

        
Get the 'AlternateLocationInfo' element value.

Returns:
value
            return ;
        }

        
Set the 'AlternateLocationInfo' element value.

Parameters:
alternateLocationInfo
        public void setAlternateLocationInfo(
                AlternateLocationInfo alternateLocationInfo) {
            this. = alternateLocationInfo;
        }

        
Get the 'TPA_Extensions' element value.

Returns:
value
        public TPAExtensions getTPAExtensions() {
            return ;
        }

        
Set the 'TPA_Extensions' element value.

Parameters:
TPAExtensions
        public void setTPAExtensions(TPAExtensions TPAExtensions) {
            this. = TPAExtensions;
        }

        
Get the 'RPH' attribute value. A unique reference to this origin destination information.

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

        
Set the 'RPH' attribute value. A unique reference to this origin destination information.

Parameters:
RPH
        public void setRPH(String RPH) {
            this. = RPH;
        }

        
Get the 'RefNumber' attribute value. A unique reference to this origin destination information to be referenced within the OTA_AirLowFareSearchRS message.

Returns:
value
        public Integer getRefNumber() {
            return ;
        }

        
Set the 'RefNumber' attribute value. A unique reference to this origin destination information to be referenced within the OTA_AirLowFareSearchRS message.

Parameters:
refNumber
        public void setRefNumber(Integer refNumber) {
            this. = refNumber;
        }
        
Specifies alternate location(s) for the origin and/or destination. 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="AlternateLocationInfo" minOccurs="0">
   <xs:complexType>
     <xs:attribute type="ns:ListOfStringLength1to8" use="optional" name="OriginLocation"/>
     <xs:attribute type="ns:ListOfStringLength1to8" use="optional" name="DestinationLocation"/>
   </xs:complexType>
 </xs:element>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfStringLength1to8">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
        public static class AlternateLocationInfo
        {
            private List<StringoriginLocations = new ArrayList<String>();
            private List<StringdestinationLocations = new ArrayList<String>();

            
Get the list of 'OriginLocation' attribute items. Specifies alternate airport/city codes for the origin location.

Returns:
list
            public List<StringgetOriginLocations() {
                return ;
            }

            
Set the list of 'OriginLocation' attribute items. Specifies alternate airport/city codes for the origin location.

Parameters:
list
            public void setOriginLocations(List<Stringlist) {
                 = list;
            }

            
Serializer for 'OriginLocation' attribute list.

Parameters:
values
Returns:
text
            public static String serializeOriginLocations(List<Stringvalues) {
                if (values == null) {
                    return null;
                } else {
                    java.lang.StringBuffer buff = new java.lang.StringBuffer();
                    for (java.util.Iterator<Stringiter = values.iterator(); iter
                            .hasNext();) {
                        if (buff.length() > 0) {
                            buff.append(' ');
                        }
                        String value = iter.next();
                        buff.append(value);
                    }
                    return buff.toString();
                }
            }

            
Deserializer for 'OriginLocation' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
            public static List<StringdeserializeOriginLocations(String text)
                    throws org.jibx.runtime.JiBXException {
                org.jibx.runtime.IListItemDeserializer ldser = new org.jibx.runtime.IListItemDeserializer() {
                    public java.lang.Object deserialize(String text) {
                        return text;
                    }
                };
                return (List<String>) org.jibx.runtime.Utility.deserializeList(
                        textldser);
            }

            
Get the number of 'OriginLocation' attribute items.

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

            
Add a 'OriginLocation' attribute item.

Parameters:
item
            public void addOriginLocation(String item) {
                .add(item);
            }

            
Get 'OriginLocation' attribute item by position.

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

            
Remove all 'OriginLocation' attribute items.
            public void clearOriginLocations() {
                .clear();
            }

            
Get the list of 'DestinationLocation' attribute items. Specifies alternate airport/city codes for the destination location.

Returns:
list
            public List<StringgetDestinationLocations() {
                return ;
            }

            
Set the list of 'DestinationLocation' attribute items. Specifies alternate airport/city codes for the destination location.

Parameters:
list
            public void setDestinationLocations(List<Stringlist) {
                 = list;
            }

            
Serializer for 'DestinationLocation' attribute list.

Parameters:
values
Returns:
text
            public static String serializeDestinationLocations(
                    List<Stringvalues) {
                if (values == null) {
                    return null;
                } else {
                    java.lang.StringBuffer buff = new java.lang.StringBuffer();
                    for (java.util.Iterator<Stringiter = values.iterator(); iter
                            .hasNext();) {
                        if (buff.length() > 0) {
                            buff.append(' ');
                        }
                        String value = iter.next();
                        buff.append(value);
                    }
                    return buff.toString();
                }
            }

            
Deserializer for 'DestinationLocation' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
            public static List<StringdeserializeDestinationLocations(
                    String textthrows org.jibx.runtime.JiBXException {
                org.jibx.runtime.IListItemDeserializer ldser = new org.jibx.runtime.IListItemDeserializer() {
                    public java.lang.Object deserialize(String text) {
                        return text;
                    }
                };
                return (List<String>) org.jibx.runtime.Utility.deserializeList(
                        textldser);
            }

            
Get the number of 'DestinationLocation' attribute items.

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

            
Add a 'DestinationLocation' attribute item.

Parameters:
item
            public void addDestinationLocation(String item) {
                .add(item);
            }

            
Get 'DestinationLocation' attribute item by position.

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

            
Remove all 'DestinationLocation' attribute items.
            public void clearDestinationLocations() {
                .clear();
            }
        }
    }
    
Air Low Fare Search Request preference information. 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="TravelPreferences" minOccurs="0" maxOccurs="10">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:AirSearchPrefsType">
         <xs:attribute use="optional" name="FlexDatePref">
           <xs:simpleType>
             <!-- Reference to inner class FlexDatePref -->
           </xs:simpleType>
         </xs:attribute>
         <xs:attribute type="xs:boolean" use="optional" name="FlexWeekendIndicator"/>
         <xs:attribute type="xs:boolean" use="optional" name="FlexLevelIndicator"/>
         <xs:attribute type="xs:boolean" use="optional" name="NoFareBreakIndicator"/>
         <xs:attribute type="ns:ListOfRPH" use="optional" name="OriginDestinationRPHs"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfRPH">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
    public static class TravelPreferences extends AirSearchPrefs
    {
        private FlexDatePref flexDatePref;
        private Boolean flexWeekendIndicator;
        private Boolean flexLevelIndicator;
        private Boolean noFareBreakIndicator;
        private List<StringoriginDestinationRPHs = new ArrayList<String>();

        
Get the 'FlexDatePref' attribute value. To specify which portions of the journey the date is flexible.

Returns:
value
        public FlexDatePref getFlexDatePref() {
            return ;
        }

        
Set the 'FlexDatePref' attribute value. To specify which portions of the journey the date is flexible.

Parameters:
flexDatePref
        public void setFlexDatePref(FlexDatePref flexDatePref) {
            this. = flexDatePref;
        }

        
Get the 'FlexWeekendIndicator' attribute value. If true, days before or after the weekend day should be searched.

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

        
Set the 'FlexWeekendIndicator' attribute value. If true, days before or after the weekend day should be searched.

Parameters:
flexWeekendIndicator
        public void setFlexWeekendIndicator(Boolean flexWeekendIndicator) {
            this. = flexWeekendIndicator;
        }

        
Get the 'FlexLevelIndicator' attribute value. If true, eligible for widest flex searches.

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

        
Set the 'FlexLevelIndicator' attribute value. If true, eligible for widest flex searches.

Parameters:
flexLevelIndicator
        public void setFlexLevelIndicator(Boolean flexLevelIndicator) {
            this. = flexLevelIndicator;
        }

        
Get the 'NoFareBreakIndicator' attribute value. If true, no fare breaks in the itinerary apart from the turn point should be considered.

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

        
Set the 'NoFareBreakIndicator' attribute value. If true, no fare breaks in the itinerary apart from the turn point should be considered.

Parameters:
noFareBreakIndicator
        public void setNoFareBreakIndicator(Boolean noFareBreakIndicator) {
            this. = noFareBreakIndicator;
        }

        
Get the list of 'OriginDestinationRPHs' attribute items. Refers to specific origin destination information within this request message.

Returns:
list
        public List<StringgetOriginDestinationRPHs() {
            return ;
        }

        
Set the list of 'OriginDestinationRPHs' attribute items. Refers to specific origin destination information within this request message.

Parameters:
list
        public void setOriginDestinationRPHs(List<Stringlist) {
             = list;
        }

        
Serializer for 'OriginDestinationRPHs' attribute list.

Parameters:
values
Returns:
text
        public static String serializeOriginDestinationRPHs(List<Stringvalues) {
            if (values == null) {
                return null;
            } else {
                java.lang.StringBuffer buff = new java.lang.StringBuffer();
                for (java.util.Iterator<Stringiter = values.iterator(); iter
                        .hasNext();) {
                    if (buff.length() > 0) {
                        buff.append(' ');
                    }
                    String value = iter.next();
                    buff.append(value);
                }
                return buff.toString();
            }
        }

        
Deserializer for 'OriginDestinationRPHs' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
        public static List<StringdeserializeOriginDestinationRPHs(String text)
                throws org.jibx.runtime.JiBXException {
            org.jibx.runtime.IListItemDeserializer ldser = new org.jibx.runtime.IListItemDeserializer() {
                public java.lang.Object deserialize(String text) {
                    return text;
                }
            };
            return (List<String>) org.jibx.runtime.Utility.deserializeList(
                    textldser);
        }

        
Get the number of 'OriginDestinationRPHs' attribute items.

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

        
Add a 'OriginDestinationRPHs' attribute item.

Parameters:
item
        public void addOriginDestinationRPH(String item) {
            .add(item);
        }

        
Get 'OriginDestinationRPHs' attribute item by position.

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

        
Remove all 'OriginDestinationRPHs' attribute items.
        public void clearOriginDestinationRPHs() {
            .clear();
        }
        
Schema fragment(s) for this class:
 <xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:restriction base="xs:string">
     <xs:enumeration value="Outbound"/>
     <xs:enumeration value="Return"/>
     <xs:enumeration value="Both"/>
   </xs:restriction>
 </xs:simpleType>
 
        public static enum FlexDatePref {
            
Date is flexible on the outbound portion.
            OUTBOUND("Outbound"), 
Date is flexible on the return portion.
            RETURN("Return"), 
Date is flexible on the entire journey.
            BOTH("Both");
            private final String value;
            private FlexDatePref(String value) {
                this. = value;
            }
            public String xmlValue() {
                return ;
            }
            public static FlexDatePref convert(String value) {
                for (FlexDatePref inst : values()) {
                    if (inst.xmlValue().equals(value)) {
                        return inst;
                    }
                }
                return null;
            }
        }
    }
New to GrepCode? Check out our FAQ X