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 AirDetails Request message is used to request additional flight details for each leg of a flight (e.g. journey time, meal service). The request includes necessary information to identify a specific flight: Airline; Flight Number; Departure Airport; Arrival Airport; and Departure Date. 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_AirDetailsRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="AirDetail" maxOccurs="150">
         <!-- Reference to inner class AirDetail -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class DetailsRQ
 {
     private POS POS;
     private List<AirDetailairDetailList = new ArrayList<AirDetail>();
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 'AirDetail' element items.

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

    
Set the list of 'AirDetail' element items.

Parameters:
list
 
     public void setAirDetailList(List<AirDetaillist) {
          = list;
     }

    
Get the number of 'AirDetail' element items.

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

    
Add a 'AirDetail' element item.

Parameters:
item
 
     public void addAirDetail(AirDetail item) {
         .add(item);
     }

    
Get 'AirDetail' element item by position.

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

    
Remove all 'AirDetail' element items.
 
    public void clearAirDetailList() {
        .clear();
    }

    
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 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="AirDetail" maxOccurs="150">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:CompanyNameType" name="Airline"/>
       <xs:element type="xs:string" name="FlightNumber"/>
       <xs:element type="ns:LocationType" name="DepartureAirport" minOccurs="0"/>
       <xs:element type="ns:LocationType" name="ArrivalAirport" minOccurs="0"/>
       <xs:element type="xs:date" name="DepartureDate"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class AirDetail
    {
        private CompanyName airline;
        private String flightNumber;
        private Location departureAirport;
        private Location arrivalAirport;
        private LocalDate departureDate;

        
Get the 'Airline' element value. Airline specified for details request.

Returns:
value
        public CompanyName getAirline() {
            return ;
        }

        
Set the 'Airline' element value. Airline specified for details request.

Parameters:
airline
        public void setAirline(CompanyName airline) {
            this. = airline;
        }

        
Get the 'FlightNumber' element value. Specific flight number to request details for. Requires that Airline is also supplied.

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

        
Set the 'FlightNumber' element value. Specific flight number to request details for. Requires that Airline is also supplied.

Parameters:
flightNumber
        public void setFlightNumber(String flightNumber) {
            this. = flightNumber;
        }

        
Get the 'DepartureAirport' element value. Flight Origin - IATA 3 letter code.

Returns:
value
        public Location getDepartureAirport() {
            return ;
        }

        
Set the 'DepartureAirport' element value. Flight Origin - IATA 3 letter code.

Parameters:
departureAirport
        public void setDepartureAirport(Location departureAirport) {
            this. = departureAirport;
        }

        
Get the 'ArrivalAirport' element value. Flight Destination- IATA 3 letter code.

Returns:
value
        public Location getArrivalAirport() {
            return ;
        }

        
Set the 'ArrivalAirport' element value. Flight Destination- IATA 3 letter code.

Parameters:
arrivalAirport
        public void setArrivalAirport(Location arrivalAirport) {
            this. = arrivalAirport;
        }

        
Get the 'DepartureDate' element value. The scheduled date of departure for the requested flight.

Returns:
value
        public LocalDate getDepartureDate() {
            return ;
        }

        
Set the 'DepartureDate' element value. The scheduled date of departure for the requested flight.

Parameters:
departureDate
        public void setDepartureDate(LocalDate departureDate) {
            this. = departureDate;
        }
    }
New to GrepCode? Check out our FAQ X