Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   
   package org.jibx.schema.org.opentravel._2012B.air;
   
   import java.util.ArrayList;
   import java.util.List;
The Availability Response message contains Flight Availability for a city pair on a specific date. A set of OriginDestinationOptions is returned, each of which contains one or more (connecting) flights that serve the city pair. For each flight the following information is returned: Origin and destination airports, Departure and arrival date/times, Booking Class availability, Equipment, Meal Information and Codeshare information. This message contains similar information to a standard airline CRS or GDS availability response 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_AirAvailRS">
   <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="OriginDestinationInformation" minOccurs="0" maxOccurs="unbounded">
           <!-- Reference to inner class OriginDestinationInformation -->
         </xs:element>
         <xs:element type="ns:FreeTextType" name="Comment" minOccurs="0"/>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
  
  public class AvailRS
  {
      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 FreeText comment;
      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) {
          setChoiceSelect();
          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 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) {
         .add(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 'Comment' element value. Information that may apply to the entire response, such as marketing or header information.

Returns:
value
 
     public FreeText getComment() {
         return ;
     }

    
Set the 'Comment' element value. Information that may apply to the entire response, such as marketing or header information.

Parameters:
comment
 
     public void setComment(FreeText comment) {
         this. = comment;
     }

    
Check if Errors is current selection for choice.

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

    
Get the 'Errors' element value. A collection of errors that occurred during the processing of a message.

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

    
Set the 'Errors' element value. A collection of errors that occurred during the processing of a message.

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

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value
 
         return ;
     }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes
 
     public void setOTAPayloadStdAttributes(
             OTAPayloadStdAttributes OTAPayloadStdAttributes) {
         this. = OTAPayloadStdAttributes;
     }
    
Information on the locations between which availability was 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="OriginDestinationInformation" minOccurs="0" maxOccurs="unbounded">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:OriginDestinationInformationType">
         <xs:sequence>
           <xs:element name="OriginDestinationOptions">
             <xs:complexType>
               <xs:sequence>
                 <xs:element name="OriginDestinationOption" maxOccurs="999">
                   <!-- Reference to inner class OriginDestinationOption -->
                 </xs:element>
               </xs:sequence>
             </xs:complexType>
           </xs:element>
         </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 Boolean sameAirportInd;
         private String RPH;

        
Get the list of 'OriginDestinationOption' element items. A container for origin destination option information.

Returns:
list
 
             return ;
         }

        
Set the list of 'OriginDestinationOption' element items. A container for origin destination option information.

Parameters:
list
 
         public void setOriginDestinationOptionList(
                 List<OriginDestinationOptionlist) {
              = list;
         }

        
Get the number of 'OriginDestinationOption' element items.

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

        
Add a 'OriginDestinationOption' element item.

Parameters:
item
 
         public void addOriginDestinationOption(OriginDestinationOption item) {
             .add(item);
         }

        
Get 'OriginDestinationOption' element item by position.

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

        
Remove all 'OriginDestinationOption' element items.
 
         public void clearOriginDestinationOptionList() {
             .clear();
         }

        
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;
         }
        
Holds the collection of flight options for this origin-destination pair. There maybe limits imposed by individual supplier that are below the maximum occurrences for 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="OriginDestinationOption" maxOccurs="999">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="FlightSegment" maxOccurs="8">
         <!-- Reference to inner class FlightSegment -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
 
         public static class OriginDestinationOption
         {
             private List<FlightSegmentflightSegmentList = new ArrayList<FlightSegment>();

            
Get the list of 'FlightSegment' element items.

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

            
Set the list of 'FlightSegment' element items.

Parameters:
list
 
             public void setFlightSegmentList(List<FlightSegmentlist) {
                  = list;
             }

            
Get the number of 'FlightSegment' element items.

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

            
Add a 'FlightSegment' element item.

Parameters:
item
 
             public void addFlightSegment(FlightSegment item) {
                 .add(item);
             }

            
Get 'FlightSegment' element item by position.

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

            
Remove all 'FlightSegment' element items.
 
             public void clearFlightSegmentList() {
                 .clear();
             }
            
Details of the flight option for an origin destination pair. 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="FlightSegment" maxOccurs="8">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:FlightSegmentType">
         <xs:sequence>
           <xs:element name="TrafficRestrictionInfo" minOccurs="0" maxOccurs="99">
             <!-- Reference to inner class TrafficRestrictionInfo -->
           </xs:element>
           <xs:element type="ns:FreeTextType" name="Comment" minOccurs="0" maxOccurs="10"/>
           <xs:element type="ns:MarketingCabinType" name="MarketingCabin" minOccurs="0" maxOccurs="9"/>
           <xs:element name="BookingClassAvail" minOccurs="0" maxOccurs="99">
             <!-- Reference to inner class BookingClassAvail -->
           </xs:element>
           <xs:element name="StopLocation" minOccurs="0" maxOccurs="9">
             <xs:complexType>
               <xs:attributeGroup ref="ns:LocationGroup"/>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
         <xs:attribute type="xs:string" use="optional" name="JourneyDuration"/>
         <xs:attributeGroup ref="ns:SmokingIndicatorGroup"/>
         <xs:attribute type="xs:float" use="optional" name="OnTimeRate"/>
         <xs:attribute type="ns:TicketType" name="Ticket"/>
         <xs:attribute type="xs:string" use="optional" name="ParticipationLevelCode"/>
         <xs:attribute type="xs:string" use="optional" name="GroundDuration"/>
         <xs:attribute type="xs:string" use="optional" name="AccumulatedDuration"/>
         <xs:attribute type="xs:int" use="optional" name="Distance"/>
         <xs:attribute type="xs:boolean" use="optional" name="CodeshareInd"/>
         <xs:attribute type="xs:boolean" use="optional" name="FlifoInd"/>
         <xs:attribute type="xs:string" use="optional" name="DateChangeNbr"/>
         <xs:attribute type="xs:int" use="optional" name="SequenceNumber"/>
         <xs:attribute type="xs:boolean" use="optional" name="OptionalServicesInd"/>
       </xs:extension>
     </xs:complexContent>
   </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="SmokingIndicatorGroup">
   <xs:attribute type="xs:boolean" use="optional" name="SmokingAllowed"/>
 </xs:attributeGroup>
 
 
             public static class FlightSegment
                     extends
                         org.jibx.schema.org.opentravel._2012B.base.air.FlightSegment
             {
                 private List<TrafficRestrictionInfotrafficRestrictionInfoList = new ArrayList<TrafficRestrictionInfo>();
                 private List<FreeTextcommentList = new ArrayList<FreeText>();
                 private List<MarketingCabinmarketingCabinList = new ArrayList<MarketingCabin>();
                 private List<BookingClassAvailbookingClassAvailList = new ArrayList<BookingClassAvail>();
                 private List<LocationGroupstopLocationList = new ArrayList<LocationGroup>();
                 private String journeyDuration;
                 private Boolean smokingAllowed;
                 private Float onTimeRate;
                 private Ticket ticket;
                 private String participationLevelCode;
                 private String groundDuration;
                 private String accumulatedDuration;
                 private Integer distance;
                 private Boolean codeshareInd;
                 private Boolean flifoInd;
                 private String dateChangeNbr;
                 private Integer sequenceNumber;
                 private Boolean optionalServicesInd;

                
Get the list of 'TrafficRestrictionInfo' element items.

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

                
Set the list of 'TrafficRestrictionInfo' element items.

Parameters:
list
 
                 public void setTrafficRestrictionInfoList(
                         List<TrafficRestrictionInfolist) {
                      = list;
                 }

                
Get the number of 'TrafficRestrictionInfo' element items.

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

                
Add a 'TrafficRestrictionInfo' element item.

Parameters:
item
 
                 public void addTrafficRestrictionInfo(
                         TrafficRestrictionInfo item) {
                     .add(item);
                 }

                
Get 'TrafficRestrictionInfo' element item by position.

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

                
Remove all 'TrafficRestrictionInfo' element items.
 
                 public void clearTrafficRestrictionInfoList() {
                     .clear();
                 }

                
Get the list of 'Comment' element items. Any special comments on the leg. eg. operated by XX.

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

                
Set the list of 'Comment' element items. Any special comments on the leg. eg. operated by XX.

Parameters:
list
 
                 public void setCommentList(List<FreeTextlist) {
                      = list;
                 }

                
Get the number of 'Comment' element items.

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

                
Add a 'Comment' element item.

Parameters:
item
 
                 public void addComment(FreeText item) {
                     .add(item);
                 }

                
Get 'Comment' element item by position.

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

                
Remove all 'Comment' element items.
 
                 public void clearCommentList() {
                     .clear();
                 }

                
Get the list of 'MarketingCabin' element items. The airline specific branding for cabins.

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

                
Set the list of 'MarketingCabin' element items. The airline specific branding for cabins.

Parameters:
list
 
                 public void setMarketingCabinList(List<MarketingCabinlist) {
                      = list;
                 }

                
Get the number of 'MarketingCabin' element items.

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

                
Add a 'MarketingCabin' element item.

Parameters:
item
 
                 public void addMarketingCabin(MarketingCabin item) {
                     .add(item);
                 }

                
Get 'MarketingCabin' element item by position.

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

                
Remove all 'MarketingCabin' element items.
 
                 public void clearMarketingCabinList() {
                     .clear();
                 }

                
Get the list of 'BookingClassAvail' element items.

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

                
Set the list of 'BookingClassAvail' element items.

Parameters:
list
 
                 public void setBookingClassAvailList(
                         List<BookingClassAvaillist) {
                      = list;
                 }

                
Get the number of 'BookingClassAvail' element items.

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

                
Add a 'BookingClassAvail' element item.

Parameters:
item
 
                 public void addBookingClassAvail(BookingClassAvail item) {
                     .add(item);
                 }

                
Get 'BookingClassAvail' element item by position.

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

                
Remove all 'BookingClassAvail' element items.
 
                 public void clearBookingClassAvailList() {
                     .clear();
                 }

                
Get the list of 'StopLocation' element items. A location where the flight is scheduled to stop en route to its destination for this flight segment.

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

                
Set the list of 'StopLocation' element items. A location where the flight is scheduled to stop en route to its destination for this flight segment.

Parameters:
list
 
                 public void setStopLocationList(List<LocationGrouplist) {
                      = list;
                 }

                
Get the number of 'StopLocation' element items.

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

                
Add a 'StopLocation' element item.

Parameters:
item
 
                 public void addStopLocation(LocationGroup item) {
                     .add(item);
                 }

                
Get 'StopLocation' element item by position.

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

                
Remove all 'StopLocation' element items.
 
                 public void clearStopLocationList() {
                     .clear();
                 }

                
Get the 'JourneyDuration' attribute value. The duration of the flight from departure location to destination location.

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

                
Set the 'JourneyDuration' attribute value. The duration of the flight from departure location to destination location.

Parameters:
journeyDuration
 
                 public void setJourneyDuration(String journeyDuration) {
                     this. = journeyDuration;
                 }

                
Get the 'SmokingAllowed' attribute value. Indicates smoking is allowed when true and is not allowed when false. <LegacyDefaultValue>false</LegacyDefaultValue>

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

                
Set the 'SmokingAllowed' attribute value. Indicates smoking is allowed when true and is not allowed when false. <LegacyDefaultValue>false</LegacyDefaultValue>

Parameters:
smokingAllowed
 
                 public void setSmokingAllowed(Boolean smokingAllowed) {
                     this. = smokingAllowed;
                 }

                
Get the 'OnTimeRate' attribute value. Specifies the Dept. of Transport on time rate of the flight.

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

                
Set the 'OnTimeRate' attribute value. Specifies the Dept. of Transport on time rate of the flight.

Parameters:
onTimeRate
 
                 public void setOnTimeRate(Float onTimeRate) {
                     this. = onTimeRate;
                 }

                
Get the 'Ticket' attribute value. Specifies if the flight is e-ticketable or not. <LegacyDefaultValue xmlns="http://www.opentravel.org/OTA/2003/05/common">Paper</LegacyDefaultValue>

Returns:
value
 
                 public Ticket getTicket() {
                     return ;
                 }

                
Set the 'Ticket' attribute value. Specifies if the flight is e-ticketable or not. <LegacyDefaultValue xmlns="http://www.opentravel.org/OTA/2003/05/common">Paper</LegacyDefaultValue>

Parameters:
ticket
 
                 public void setTicket(Ticket ticket) {
                     this. = ticket;
                 }

                
Get the 'ParticipationLevelCode' attribute value. To specify the level of participation by a vendor in another system. Refer to OpenTravel Code List 'Participation Level Code' (PLC).

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

                
Set the 'ParticipationLevelCode' attribute value. To specify the level of participation by a vendor in another system. Refer to OpenTravel Code List 'Participation Level Code' (PLC).

Parameters:
participationLevelCode
 
                 public void setParticipationLevelCode(
                         String participationLevelCode) {
                     this. = participationLevelCode;
                 }

                
Get the 'GroundDuration' attribute value. The duration of a ground stop.

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

                
Set the 'GroundDuration' attribute value. The duration of a ground stop.

Parameters:
groundDuration
 
                 public void setGroundDuration(String groundDuration) {
                     this. = groundDuration;
                 }

                
Get the 'AccumulatedDuration' attribute value. The total duration time of the flight. This is the combination of both JourneyDuration and GroundDuration.

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

                
Set the 'AccumulatedDuration' attribute value. The total duration time of the flight. This is the combination of both JourneyDuration and GroundDuration.

Parameters:
accumulatedDuration
 
                 public void setAccumulatedDuration(String accumulatedDuration) {
                     this. = accumulatedDuration;
                 }

                
Get the 'Distance' attribute value. Miles acquired per flight segment, usually used for earning of frequent flyer miles.

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

                
Set the 'Distance' attribute value. Miles acquired per flight segment, usually used for earning of frequent flyer miles.

Parameters:
distance
 
                 public void setDistance(Integer distance) {
                     this. = distance;
                 }

                
Get the 'CodeshareInd' attribute value. When true, this flight is a codeshare flight.

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

                
Set the 'CodeshareInd' attribute value. When true, this flight is a codeshare flight.

Parameters:
codeshareInd
 
                 public void setCodeshareInd(Boolean codeshareInd) {
                     this. = codeshareInd;
                 }

                
Get the 'FlifoInd' attribute value. When true, FLIFO information exists for this flight.

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

                
Set the 'FlifoInd' attribute value. When true, FLIFO information exists for this flight.

Parameters:
flifoInd
 
                 public void setFlifoInd(Boolean flifoInd) {
                     this. = flifoInd;
                 }

                
Get the 'DateChangeNbr' attribute value. When present, contains the number of days by which the flight's arrival date differs from its departure date (e.g., +1, -1).

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

                
Set the 'DateChangeNbr' attribute value. When present, contains the number of days by which the flight's arrival date differs from its departure date (e.g., +1, -1).

Parameters:
dateChangeNbr
 
                 public void setDateChangeNbr(String dateChangeNbr) {
                     this. = dateChangeNbr;
                 }

                
Get the 'SequenceNumber' attribute value. The sequence number of this flight segment with respect to all flight segments returned in the response.

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

                
Set the 'SequenceNumber' attribute value. The sequence number of this flight segment with respect to all flight segments returned in the response.

Parameters:
sequenceNumber
 
                 public void setSequenceNumber(Integer sequenceNumber) {
                     this. = sequenceNumber;
                 }

                
Get the 'OptionalServicesInd' attribute value. When true, optional services are available for this flight.

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

                
Set the 'OptionalServicesInd' attribute value. When true, optional services are available for this flight.

Parameters:
optionalServicesInd
 
                 public void setOptionalServicesInd(Boolean optionalServicesInd) {
                     this. = optionalServicesInd;
                 }
                
Traffic restriction information for a 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="TrafficRestrictionInfo" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:FreeTextType">
         <xs:attribute type="xs:string" use="optional" name="Code"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
                public static class TrafficRestrictionInfo extends FreeText
                {
                    private String code;

                    
Get the 'Code' attribute value. The traffic restriction that applies to this flight segment. Refer to OpenTravel Code list TRC (Traffic Restriction Code).

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

                    
Set the 'Code' attribute value. The traffic restriction that applies to this flight segment. Refer to OpenTravel Code list TRC (Traffic Restriction Code).

Parameters:
code
                    public void setCode(String code) {
                        this. = code;
                    }
                }
                
Booking codes available to be sold for a particular flight segment. 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="BookingClassAvail" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Meal" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class Meal -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:BookingClassAvailabilityGroup"/>
     <xs:attribute type="xs:string" use="optional" name="RPH"/>
   </xs:complexType>
 </xs:element>
 
                public static class BookingClassAvail
                {
                    private List<MealmealList = new ArrayList<Meal>();
                    private BookingClassAvailabilityGroup bookingClassAvailabilityGroup;
                    private String RPH;

                    
Get the list of 'Meal' element items.

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

                    
Set the list of 'Meal' element items.

Parameters:
list
                    public void setMealList(List<Meallist) {
                         = list;
                    }

                    
Get the number of 'Meal' element items.

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

                    
Add a 'Meal' element item.

Parameters:
item
                    public void addMeal(Meal item) {
                        .add(item);
                    }

                    
Get 'Meal' element item by position.

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

                    
Remove all 'Meal' element items.
                    public void clearMealList() {
                        .clear();
                    }

                    
Get the 'BookingClassAvailabilityGroup' attributeGroup value.

Returns:
value
                    public BookingClassAvailabilityGroup getBookingClassAvailabilityGroup() {
                        return ;
                    }

                    
Set the 'BookingClassAvailabilityGroup' attributeGroup value.

Parameters:
bookingClassAvailabilityGroup
                    public void setBookingClassAvailabilityGroup(
                            BookingClassAvailabilityGroup bookingClassAvailabilityGroup) {
                        this. = bookingClassAvailabilityGroup;
                    }

                    
Get the 'RPH' attribute value. RPH refers back to Marketing Cabin Type.

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

                    
Set the 'RPH' attribute value. RPH refers back to Marketing Cabin Type.

Parameters:
RPH
                    public void setRPH(String RPH) {
                        this. = RPH;
                    }
                    
The meal service for this booking class. 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="Meal" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:attribute type="xs:string" use="required" name="MealService"/>
   </xs:complexType>
 </xs:element>
 
                    public static class Meal
                    {
                        private String mealService;

                        
Get the 'MealService' attribute value. Used to designate a meal or beverage service.

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

                        
Set the 'MealService' attribute value. Used to designate a meal or beverage service.

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