Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.air;
  
  import java.util.List;
OpenTravel Seat Map request.Note: The Seat map Request message requests seat map details for one or more flight segments for specific dates. The request can include the PNR number, frequent flier numbers, etc. The seat map response contains the actual seat map based on the input conditions in the request message. Every flight segment will have a separate seat map detail. 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_AirSeatMapRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="SeatMapRequests">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="SeatMapRequest" minOccurs="0" maxOccurs="99">
               <!-- Reference to inner class SeatMapRequest -->
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element name="AirTravelers" minOccurs="0">
         <!-- Reference to inner class AirTravelers -->
       </xs:element>
       <xs:element type="ns:UniqueID_Type" name="BookingReferenceID" minOccurs="0" maxOccurs="5"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class SeatMapRQ
 {
     private POS POS;
     private AirTravelers airTravelers;
     private List<UniqueIDbookingReferenceIDList = new ArrayList<UniqueID>();
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 list of 'SeatMapRequest' element items. Seat map request detail criteria.

Returns:
list
 
         return ;
     }

    
Set the list of 'SeatMapRequest' element items. Seat map request detail criteria.

Parameters:
list
 
     public void setSeatMapRequestList(List<SeatMapRequestlist) {
          = list;
     }

    
Get the number of 'SeatMapRequest' element items.

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

    
Add a 'SeatMapRequest' element item.

Parameters:
item
 
     public void addSeatMapRequest(SeatMapRequest item) {
         .add(item);
     }

    
Get 'SeatMapRequest' element item by position.

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

    
Remove all 'SeatMapRequest' element items.
    public void clearSeatMapRequestList() {
        .clear();
    }

    
Get the 'AirTravelers' element value.

Returns:
value
    public AirTravelers getAirTravelers() {
        return ;
    }

    
Set the 'AirTravelers' element value.

Parameters:
airTravelers
    public void setAirTravelers(AirTravelers airTravelers) {
        this. = airTravelers;
    }

    
Get the list of 'BookingReferenceID' element items. This is used for PNR record locator. If there are more than one PNR numbers because of multiple airlines in the itinerary then this element could be repeated.

Returns:
list
        return ;
    }

    
Set the list of 'BookingReferenceID' element items. This is used for PNR record locator. If there are more than one PNR numbers because of multiple airlines in the itinerary then this element could be repeated.

Parameters:
list
    public void setBookingReferenceIDList(List<UniqueIDlist) {
         = list;
    }

    
Get the number of 'BookingReferenceID' element items.

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

    
Add a 'BookingReferenceID' element item.

Parameters:
item
    public void addBookingReferenceID(UniqueID item) {
        .add(item);
    }

    
Get 'BookingReferenceID' element item by position.

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

    
Remove all 'BookingReferenceID' element items.
    public void clearBookingReferenceIDList() {
        .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;
    }
    
The number of flight segments for which the Seat Map is requested for. If an itinerary consists of multiple flight segments then corresponding number of SeatMapRequest elements will be sent in the request. If there is a gauge change (equipment change) within a flight segment an error response is expected. In such a case two different Seat MapRequest elements need to be sent requesting seatmap for two flight segments for different gauges. 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="SeatMapRequest" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:FlightSegmentType" name="FlightSegmentInfo"/>
       <xs:element name="SeatDetails" minOccurs="0">
         <!-- Reference to inner class SeatDetails -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="ns:ListOfRPH" use="optional" name="TravelerRefNumberRPHs"/>
   </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 SeatMapRequest
    {
        private FlightSegment flightSegmentInfo;
        private SeatDetails seatDetails;
        private List<StringtravelerRefNumberRPHs = new ArrayList<String>();

        
Get the 'FlightSegmentInfo' element value. Flight segment information of the flight segment for which seat map information is requested.

Returns:
value
        public FlightSegment getFlightSegmentInfo() {
            return ;
        }

        
Set the 'FlightSegmentInfo' element value. Flight segment information of the flight segment for which seat map information is requested.

Parameters:
flightSegmentInfo
        public void setFlightSegmentInfo(FlightSegment flightSegmentInfo) {
            this. = flightSegmentInfo;
        }

        
Get the 'SeatDetails' element value.

Returns:
value
        public SeatDetails getSeatDetails() {
            return ;
        }

        
Set the 'SeatDetails' element value.

Parameters:
seatDetails
        public void setSeatDetails(SeatDetails seatDetails) {
            this. = seatDetails;
        }

        
Get the list of 'TravelerRefNumberRPHs' attribute items. Reference to one or more travelers for whom seat map is requested for this flight segment. RPH Value from TravelerRefNumber of AirTravelerType element will be mapped here.

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

        
Set the list of 'TravelerRefNumberRPHs' attribute items. Reference to one or more travelers for whom seat map is requested for this flight segment. RPH Value from TravelerRefNumber of AirTravelerType element will be mapped here.

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

        
Serializer for 'TravelerRefNumberRPHs' attribute list.

Parameters:
values
Returns:
text
        public static String serializeTravelerRefNumberRPHs(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 'TravelerRefNumberRPHs' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
        public static List<StringdeserializeTravelerRefNumberRPHs(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 'TravelerRefNumberRPHs' attribute items.

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

        
Add a 'TravelerRefNumberRPHs' attribute item.

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

        
Get 'TravelerRefNumberRPHs' attribute item by position.

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

        
Remove all 'TravelerRefNumberRPHs' attribute items.
        public void clearTravelerRefNumberRPHs() {
            .clear();
        }
        
Object to hold the seat details that is to be requested. 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="SeatDetails" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="CabinClass" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class CabinClass -->
       </xs:element>
       <xs:element name="ResBookDesignations" minOccurs="0">
         <!-- Reference to inner class ResBookDesignations -->
       </xs:element>
       <xs:element type="ns:FareBasisCodeType" name="FareBasisCode" minOccurs="0"/>
     </xs:sequence>
     <xs:attribute type="xs:boolean" use="optional" name="SeatUpgradeInd"/>
   </xs:complexType>
 </xs:element>
 
        public static class SeatDetails
        {
            private List<CabinClasscabinClassList = new ArrayList<CabinClass>();
            private ResBookDesignations resBookDesignations;
            private FareBasisCode fareBasisCode;
            private Boolean seatUpgradeInd;

            
Get the list of 'CabinClass' element items.

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

            
Set the list of 'CabinClass' element items.

Parameters:
list
            public void setCabinClassList(List<CabinClasslist) {
                 = list;
            }

            
Get the number of 'CabinClass' element items.

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

            
Add a 'CabinClass' element item.

Parameters:
item
            public void addCabinClass(CabinClass item) {
                .add(item);
            }

            
Get 'CabinClass' element item by position.

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

            
Remove all 'CabinClass' element items.
            public void clearCabinClassList() {
                .clear();
            }

            
Get the 'ResBookDesignations' element value.

Returns:
value
            public ResBookDesignations getResBookDesignations() {
                return ;
            }

            
Set the 'ResBookDesignations' element value.

Parameters:
resBookDesignations
            public void setResBookDesignations(
                    ResBookDesignations resBookDesignations) {
                this. = resBookDesignations;
            }

            
Get the 'FareBasisCode' element value. Fare basis code associated with the seat that may be associated with a flight segment.

Returns:
value
            public FareBasisCode getFareBasisCode() {
                return ;
            }

            
Set the 'FareBasisCode' element value. Fare basis code associated with the seat that may be associated with a flight segment.

Parameters:
fareBasisCode
            public void setFareBasisCode(FareBasisCode fareBasisCode) {
                this. = fareBasisCode;
            }

            
Get the 'SeatUpgradeInd' attribute value. SeatUpgrade will be set to true if the passenger is looking for an upgrade and the seat map response expected is after the upgrade, if applicable. <LegacyDefaultValue xmlns="http://www.opentravel.org/OTA/2003/05/common">false</LegacyDefaultValue>

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

            
Set the 'SeatUpgradeInd' attribute value. SeatUpgrade will be set to true if the passenger is looking for an upgrade and the seat map response expected is after the upgrade, if applicable. <LegacyDefaultValue xmlns="http://www.opentravel.org/OTA/2003/05/common">false</LegacyDefaultValue>

Parameters:
seatUpgradeInd
            public void setSeatUpgradeInd(Boolean seatUpgradeInd) {
                this. = seatUpgradeInd;
            }
            
If the seat map display is to be requested for a specific cabin class, the cabin class can be specified in this 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="CabinClass" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="CabinType"/>
   </xs:complexType>
 </xs:element>
 
            public static class CabinClass
            {
                private String cabin;

                
Get the 'CabinType' attribute value. Cabin type for which the seat map is requested, which could be either First, Business or Economy.

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

                
Set the 'CabinType' attribute value. Cabin type for which the seat map is requested, which could be either First, Business or Economy.

Parameters:
cabin
                public void setCabin(String cabin) {
                    this. = cabin;
                }
            }
            
A collection of ResBookDesignations. 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="ResBookDesignations" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="ResBookDesignation" maxOccurs="10">
         <!-- Reference to inner class ResBookDesignation -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
            public static class ResBookDesignations
            {
                private List<ResBookDesignationresBookDesignationList = new ArrayList<ResBookDesignation>();

                
Get the list of 'ResBookDesignation' element items.

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

                
Set the list of 'ResBookDesignation' element items.

Parameters:
list
                public void setResBookDesignationList(
                        List<ResBookDesignationlist) {
                     = list;
                }

                
Get the number of 'ResBookDesignation' element items.

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

                
Add a 'ResBookDesignation' element item.

Parameters:
item
                public void addResBookDesignation(ResBookDesignation item) {
                    .add(item);
                }

                
Get 'ResBookDesignation' element item by position.

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

                
Remove all 'ResBookDesignation' element items.
                public void clearResBookDesignationList() {
                    .clear();
                }
                
If the seat map display is requested for the cabin class in which a particular booking designator code (booking class) lies then that booking class can be specified in this 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="ResBookDesignation" maxOccurs="10">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="ResBookDesigCode"/>
   </xs:complexType>
 </xs:element>
 
                public static class ResBookDesignation
                {
                    private String resBookDesigCode;

                    
Get the 'ResBookDesigCode' attribute value. If the booking class is know for which the seat map is to be requested then the specific Booking class code can be entered here. The response will have the seat map for the cabin class in which the said booking classcode belongs.

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

                    
Set the 'ResBookDesigCode' attribute value. If the booking class is know for which the seat map is to be requested then the specific Booking class code can be entered here. The response will have the seat map for the cabin class in which the said booking classcode belongs.

Parameters:
resBookDesigCode
                    public void setResBookDesigCode(String resBookDesigCode) {
                        this. = resBookDesigCode;
                    }
                }
            }
        }
    }
    
Collection of AirTravelers. 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="AirTravelers" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="AirTraveler" maxOccurs="99">
         <!-- Reference to inner class AirTraveler -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class AirTravelers
    {
        private List<AirTravelerairTravelerList = new ArrayList<AirTraveler>();

        
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();
        }
        
This specifies the quantity and types of passengers. 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:boolean" use="optional" name="InfantHasSeatInd"/>
         <xs:attribute type="xs:boolean" use="optional" name="SSR_Ind"/>
         <xs:attribute type="xs:boolean" use="optional" name="UnaccompaniedMinorInd"/>
         <xs:attribute type="xs:boolean" use="optional" name="OxygenRequiredInd"/>
         <xs:attribute type="xs:boolean" use="optional" name="PetInCabinInd"/>
         <xs:attribute type="xs:boolean" use="optional" name="ServiceAnimalInd"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
        public static class AirTraveler
                extends
                    org.jibx.schema.org.opentravel._2012B.base.air.AirTraveler
        {
            private Boolean infantHasSeatInd;
            private Boolean SSRInd;
            private Boolean unaccompaniedMinorInd;
            private Boolean oxygenRequiredInd;
            private Boolean petInCabinInd;
            private Boolean serviceAnimalInd;

            
Get the 'InfantHasSeatInd' attribute value. Infant with their own seat.

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

            
Set the 'InfantHasSeatInd' attribute value. Infant with their own seat.

Parameters:
infantHasSeatInd
            public void setInfantHasSeatInd(Boolean infantHasSeatInd) {
                this. = infantHasSeatInd;
            }

            
Get the 'SSR_Ind' attribute value. Special service request indicator.

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

            
Set the 'SSR_Ind' attribute value. Special service request indicator.

Parameters:
SSRInd
            public void setSSRInd(Boolean SSRInd) {
                this. = SSRInd;
            }

            
Get the 'UnaccompaniedMinorInd' attribute value. Unaccompanied minor indicator.

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

            
Set the 'UnaccompaniedMinorInd' attribute value. Unaccompanied minor indicator.

Parameters:
unaccompaniedMinorInd
            public void setUnaccompaniedMinorInd(Boolean unaccompaniedMinorInd) {
                this. = unaccompaniedMinorInd;
            }

            
Get the 'OxygenRequiredInd' attribute value. Oxygen required indicator.

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

            
Set the 'OxygenRequiredInd' attribute value. Oxygen required indicator.

Parameters:
oxygenRequiredInd
            public void setOxygenRequiredInd(Boolean oxygenRequiredInd) {
                this. = oxygenRequiredInd;
            }

            
Get the 'PetInCabinInd' attribute value. Pet in cabin indicator.

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

            
Set the 'PetInCabinInd' attribute value. Pet in cabin indicator.

Parameters:
petInCabinInd
            public void setPetInCabinInd(Boolean petInCabinInd) {
                this. = petInCabinInd;
            }

            
Get the 'ServiceAnimalInd' attribute value. Service animal indicator.

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

            
Set the 'ServiceAnimalInd' attribute value. Service animal indicator.

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