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 Get Offer response message returns relevant offers that meet the search criteria. Returned information includes: » Pricing structure details—including exchange rates, currency overrides and accepted payment currency that apply to all offers unless override information is provided elsewhere in the message » Priced offers—Priced offer information, including offer name and description, maximum and minimum offer quantity(s), service family, pricing details including redemption mile pricing, booking instructions, restrictions, penalties, multimedia, commissions and currency overrides Developer Notes: » This message may also include Warnings from business processing rules or Errors if the request did not succeed. 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_AirGetOfferRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
         <xs:element name="PriceStructure" minOccurs="0">
           <!-- Reference to inner class PriceStructure -->
         </xs:element>
         <xs:element type="ns:AirPricedOfferType" name="PricedOffer" minOccurs="0" maxOccurs="unbounded"/>
         <xs:element type="ns:SeatMapDetailsType" name="SeatMap" minOccurs="0" maxOccurs="unbounded"/>
         <xs:element type="ns:PricedItineraryType" name="AirItineraryInfo" minOccurs="0"/>
         <xs:element name="Traveler" minOccurs="0">
           <!-- Reference to inner class Traveler -->
         </xs:element>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class GetOfferRS
 {
     private int choiceSelect = -1;
     private static final int SUCCESS_CHOICE = 0;
     private static final int ERRORS_CHOICE = 1;
     private Success success;
     private Warnings warnings;
     private PriceStructure priceStructure;
     private List<SeatMapDetailsseatMapList = new ArrayList<SeatMapDetails>();
     private PricedItinerary airItineraryInfo;
     private Traveler traveler;
     private Errors errors;
 
     private void setChoiceSelect(int choice) {
         if ( == -1) {
              = choice;
         } else if ( != choice) {
             throw new IllegalStateException(
                     "Need to call clearChoiceSelect() before changing existing choice");
         }
     }

    
Clear the choice selection.
 
     public void clearChoiceSelect() {
          = -1;
     }

    
Check if Success is current selection for choice.

Returns:
true if selection, false if not
 
     public boolean ifSuccess() {
         return  == ;
     }

    
Get the 'Success' element value. Standard way to indicate successful processing of an OpenTravel message. Returning an empty element of this type indicates success.

Returns:
value
 
     public Success getSuccess() {
        return ;
    }

    
Set the 'Success' element value. Standard way to indicate successful processing of an OpenTravel message. Returning an empty element of this type indicates success.

Parameters:
success
    public void setSuccess(Success success) {
        this. = success;
    }

    
Get the 'Warnings' element value. Standard way to indicate successful processing of an OpenTravel message, but one in which warnings are generated.

Returns:
value
    public Warnings getWarnings() {
        return ;
    }

    
Set the 'Warnings' element value. Standard way to indicate successful processing of an OpenTravel message, but one in which warnings are generated.

Parameters:
warnings
    public void setWarnings(Warnings warnings) {
        this. = warnings;
    }

    
Get the 'PriceStructure' element value.

Returns:
value
    public PriceStructure getPriceStructure() {
        return ;
    }

    
Set the 'PriceStructure' element value.

Parameters:
priceStructure
    public void setPriceStructure(PriceStructure priceStructure) {
        this. = priceStructure;
    }

    
Get the list of 'PricedOffer' element items. Priced offer information, including offer name and description, service family, pricing details, booking instructions, penalties, multimedia and currency overrides.

Returns:
list
        return ;
    }

    
Set the list of 'PricedOffer' element items. Priced offer information, including offer name and description, service family, pricing details, booking instructions, penalties, multimedia and currency overrides.

Parameters:
list
    public void setPricedOfferList(List<AirPricedOfferlist) {
         = list;
    }

    
Get the number of 'PricedOffer' element items.

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

    
Add a 'PricedOffer' element item.

Parameters:
item
    public void addPricedOffer(AirPricedOffer item) {
        .add(item);
    }

    
Get 'PricedOffer' element item by position.

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

    
Remove all 'PricedOffer' element items.
    public void clearPricedOfferList() {
        .clear();
    }

    
Get the list of 'SeatMap' element items. Seat map(s) containing the results of the request.

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

    
Set the list of 'SeatMap' element items. Seat map(s) containing the results of the request.

Parameters:
list
    public void setSeatMapList(List<SeatMapDetailslist) {
         = list;
    }

    
Get the number of 'SeatMap' element items.

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

    
Add a 'SeatMap' element item.

Parameters:
item
    public void addSeatMap(SeatMapDetails item) {
        .add(item);
    }

    
Get 'SeatMap' element item by position.

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

    
Remove all 'SeatMap' element items.
    public void clearSeatMapList() {
        .clear();
    }

    
Get the 'AirItineraryInfo' element value. A collection of all flight segments for the booking.

Returns:
value
        return ;
    }

    
Set the 'AirItineraryInfo' element value. A collection of all flight segments for the booking.

Parameters:
airItineraryInfo
    public void setAirItineraryInfo(PricedItinerary airItineraryInfo) {
        this. = airItineraryInfo;
    }

    
Get the 'Traveler' element value.

Returns:
value
    public Traveler getTraveler() {
        return ;
    }

    
Set the 'Traveler' element value.

Parameters:
traveler
    public void setTraveler(Traveler traveler) {
        this. = traveler;
    }

    
Check if Errors is current selection for choice.

Returns:
true if selection, false if not
    public boolean ifErrors() {
        return  == ;
    }

    
Get the 'Errors' element value. Error(s) that occurred during the processing of a message.

Returns:
value
    public Errors getErrors() {
        return ;
    }

    
Set the 'Errors' element value. Error(s) that occurred during the processing of a message.

Parameters:
errors
    public void setErrors(Errors errors) {
        this. = errors;
    }

    
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;
    }
    
Offer pricing structure information (including exchange rates, currency overrides and accepted payment currency) that apply to all offers unless override information is provided within PricedOffer.This currency and exchange information applies to all offer results unless specifically overidden in the xxxxx element. 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="PriceStructure" minOccurs="0">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="TicketingCountryCode"/>
     <xs:attribute type="xs:string" use="optional" name="TicketingCityCode"/>
     <xs:attribute type="xs:string" use="optional" name="DisplayCurrency"/>
     <xs:attribute type="xs:string" use="optional" name="PricingCurrency"/>
     <xs:attribute type="xs:int" use="optional" name="DecimalPlaces"/>
     <xs:attributeGroup ref="ns:ExchangeRateGroup"/>
     <xs:attribute type="xs:float" use="optional" name="BaseNUC_Amount"/>
   </xs:complexType>
 </xs:element>
 
    public static class PriceStructure
    {
        private String ticketingCountryCode;
        private String ticketingCityCode;
        private String displayCurrency;
        private String pricingCurrency;
        private Integer decimalPlaces;
        private ExchangeRateGroup exchangeRateGroup;
        private Float baseNUCAmount;

        
Get the 'TicketingCountryCode' attribute value. The country code where the ticket will be/ has been issued in ISO 3166 encoding.http://www.opentraveldevelopersnetwork.com/Supported_ISO_Standards.php

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

        
Set the 'TicketingCountryCode' attribute value. The country code where the ticket will be/ has been issued in ISO 3166 encoding.http://www.opentraveldevelopersnetwork.com/Supported_ISO_Standards.php

Parameters:
ticketingCountryCode
        public void setTicketingCountryCode(String ticketingCountryCode) {
            this. = ticketingCountryCode;
        }

        
Get the 'TicketingCityCode' attribute value. The city or airport code where the ticket will be/ has been issued in IATA encoding.http://www.opentraveldevelopersnetwork.com/Supported_IATA_Standards.php

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

        
Set the 'TicketingCityCode' attribute value. The city or airport code where the ticket will be/ has been issued in IATA encoding.http://www.opentraveldevelopersnetwork.com/Supported_IATA_Standards.php

Parameters:
ticketingCityCode
        public void setTicketingCityCode(String ticketingCityCode) {
            this. = ticketingCityCode;
        }

        
Get the 'DisplayCurrency' attribute value. The display currency in ISO 4217 encoding.CAD = Canadian Dollar | USD = United States Dollar | EUR = Eurohttp://www.opentraveldevelopersnetwork.com/Supported_ISO_Standards.php

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

        
Set the 'DisplayCurrency' attribute value. The display currency in ISO 4217 encoding.CAD = Canadian Dollar | USD = United States Dollar | EUR = Eurohttp://www.opentraveldevelopersnetwork.com/Supported_ISO_Standards.php

Parameters:
displayCurrency
        public void setDisplayCurrency(String displayCurrency) {
            this. = displayCurrency;
        }

        
Get the 'PricingCurrency' attribute value. The pricing/filing currency in ISO 4217 encoding.CAD = Canadian Dollar | USD = United States Dollar | EUR = Eurohttp://www.opentraveldevelopersnetwork.com/Supported_ISO_Standards.php

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

        
Set the 'PricingCurrency' attribute value. The pricing/filing currency in ISO 4217 encoding.CAD = Canadian Dollar | USD = United States Dollar | EUR = Eurohttp://www.opentraveldevelopersnetwork.com/Supported_ISO_Standards.php

Parameters:
pricingCurrency
        public void setPricingCurrency(String pricingCurrency) {
            this. = pricingCurrency;
        }

        
Get the 'DecimalPlaces' attribute value. The number of decimal places for the display and pricing currency(s).USD 8500 with "2" Decimal Places represents $85.http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_used_standards_other/currency_codes/currency_codes_list-1.htmThis is equivalent to the ISO 4217 standard "minor unit" and is typically used when the amount provided includes the minor unit of currency without a decimal point.

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

        
Set the 'DecimalPlaces' attribute value. The number of decimal places for the display and pricing currency(s).USD 8500 with "2" Decimal Places represents $85.http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_used_standards_other/currency_codes/currency_codes_list-1.htmThis is equivalent to the ISO 4217 standard "minor unit" and is typically used when the amount provided includes the minor unit of currency without a decimal point.

Parameters:
decimalPlaces
        public void setDecimalPlaces(Integer decimalPlaces) {
            this. = decimalPlaces;
        }

        
Get the 'ExchangeRateGroup' attributeGroup value.

Returns:
value
        public ExchangeRateGroup getExchangeRateGroup() {
            return ;
        }

        
Set the 'ExchangeRateGroup' attributeGroup value.

Parameters:
exchangeRateGroup
        public void setExchangeRateGroup(ExchangeRateGroup exchangeRateGroup) {
            this. = exchangeRateGroup;
        }

        
Get the 'BaseNUC_Amount' attribute value. The base neutral unit of construction amount.

Returns:
value
        public Float getBaseNUCAmount() {
            return ;
        }

        
Set the 'BaseNUC_Amount' attribute value. The base neutral unit of construction amount.

Parameters:
baseNUCAmount
        public void setBaseNUCAmount(Float baseNUCAmount) {
            this. = baseNUCAmount;
        }
    }
    
A choice between traveler quantities and age classification OR detailed traveler 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="Traveler" minOccurs="0">
   <xs:complexType>
     <xs:choice>
       <xs:element type="ns:PassengerTypeQuantityType" name="PassengerTypeQuantity" maxOccurs="10"/>
       <xs:element name="AirTraveler" maxOccurs="99">
         <!-- Reference to inner class AirTraveler -->
       </xs:element>
     </xs:choice>
   </xs:complexType>
 </xs:element>
 
    public static class Traveler
    {
        private int travelerSelect = -1;
        private static final int PASSENGER_TYPE_QUANTITY_LIST_CHOICE = 0;
        private static final int AIR_TRAVELER_LIST_CHOICE = 1;
        private List<AirTravelerairTravelerList = new ArrayList<AirTraveler>();
        private void setTravelerSelect(int choice) {
            if ( == -1) {
                 = choice;
            } else if ( != choice) {
                throw new IllegalStateException(
                        "Need to call clearTravelerSelect() before changing existing choice");
            }
        }

        
Clear the choice selection.
        public void clearTravelerSelect() {
             = -1;
        }

        
Check if PassengerTypeQuantityList is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifPassengerTypeQuantityList() {
            return  == ;
        }

        
Get the list of 'PassengerTypeQuantity' element items. Number of travelers and their age classification if traveler details are not known or required for a specific type of offer request.

Returns:
list
            return ;
        }

        
Set the list of 'PassengerTypeQuantity' element items. Number of travelers and their age classification if traveler details are not known or required for a specific type of offer request.

Parameters:
list
        public void setPassengerTypeQuantityList(
                List<PassengerTypeQuantitylist) {
             = list;
        }

        
Get the number of 'PassengerTypeQuantity' element items.

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

        
Add a 'PassengerTypeQuantity' element item.

Parameters:
item
        public void addPassengerTypeQuantity(PassengerTypeQuantity item) {
            .add(item);
        }

        
Get 'PassengerTypeQuantity' element item by position.

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

        
Remove all 'PassengerTypeQuantity' element items.
        public void clearPassengerTypeQuantityList() {
            .clear();
        }

        
Check if AirTravelerList is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifAirTravelerList() {
            return  == ;
        }

        
Get the list of 'AirTraveler' element items.

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

        
Set the list of 'AirTraveler' element items.

Parameters:
list
        public void setAirTravelerList(List<AirTravelerlist) {
             = list;
        }

        
Get the number of 'AirTraveler' element items.

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

        
Add a 'AirTraveler' element item.

Parameters:
item
        public void addAirTraveler(AirTraveler item) {
            .add(item);
        }

        
Get 'AirTraveler' element item by position.

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

        
Remove all 'AirTraveler' element items.
        public void clearAirTravelerList() {
            .clear();
        }
        
Detailed information about the traveler, including gender, age, name, contact, loyalty and profile reference. 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="AirTraveler" maxOccurs="99">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:AirTravelerType">
         <xs:attribute type="xs:string" use="optional" name="RPH"/>
         <xs:attribute type="xs:boolean" use="optional" name="IsLeadInd"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
        public static class AirTraveler
                extends
                    org.jibx.schema.org.opentravel._2012B.base.air.AirTraveler
        {
            private String RPH;
            private Boolean isLeadInd;

            
Get the 'RPH' attribute value. A unique ID for this traveler that may be referenced elsewhere in this schema to associate the traveler with other information.(Developer Notes) RPH references within this message: RequestCriterion/CheckedItemInfo/@TravelerRPH

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

            
Set the 'RPH' attribute value. A unique ID for this traveler that may be referenced elsewhere in this schema to associate the traveler with other information.(Developer Notes) RPH references within this message: RequestCriterion/CheckedItemInfo/@TravelerRPH

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

            
Get the 'IsLeadInd' attribute value. If true, indicates that this traveler is the lead traveler or main contact for the trip.

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

            
Set the 'IsLeadInd' attribute value. If true, indicates that this traveler is the lead traveler or main contact for the trip.

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