Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
Specifies the Air Deviation Request information. Schema fragment(s) for this class:
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="AirInfoType">
   <xs:sequence>
     <xs:element type="ns:LocationType" name="DepartureCity" minOccurs="0"/>
     <xs:element type="ns:LocationType" name="ArrivalCity" minOccurs="0"/>
     <xs:element type="ns:OperatingAirlineType" name="Airline" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="DepartureDateTime"/>
   <xs:attribute type="xs:string" use="optional" name="ArrivalDateTime"/>
   <xs:attribute type="xs:string" use="optional" name="AirlineCabinClass"/>
 </xs:complexType>
 
 
 public class AirInfo
 {
     private Location departureCity;
     private Location arrivalCity;
     private OperatingAirline airline;
     private String departureDateTime;
     private String arrivalDateTime;
     private String airlineCabinClass;

    
Get the 'DepartureCity' element value. Specifies the requested departure city.

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

    
Set the 'DepartureCity' element value. Specifies the requested departure city.

Parameters:
departureCity
 
     public void setDepartureCity(Location departureCity) {
         this. = departureCity;
     }

    
Get the 'ArrivalCity' element value. Specifies the requested arrival city.

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

    
Set the 'ArrivalCity' element value. Specifies the requested arrival city.

Parameters:
arrivalCity
 
     public void setArrivalCity(Location arrivalCity) {
         this. = arrivalCity;
     }

    
Get the 'Airline' element value. Specifies the requested Airline.

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

    
Set the 'Airline' element value. Specifies the requested Airline.

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

    
Get the 'DepartureDateTime' attribute value. Specifies the requested departure date of the flight.

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

    
Set the 'DepartureDateTime' attribute value. Specifies the requested departure date of the flight.

Parameters:
departureDateTime
    public void setDepartureDateTime(String departureDateTime) {
        this. = departureDateTime;
    }

    
Get the 'ArrivalDateTime' attribute value. Specifies the requested arrival date of the flight.

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

    
Set the 'ArrivalDateTime' attribute value. Specifies the requested arrival date of the flight.

Parameters:
arrivalDateTime
    public void setArrivalDateTime(String arrivalDateTime) {
        this. = arrivalDateTime;
    }

    
Get the 'AirlineCabinClass' attribute value. Specifies the Cabin Class such as, BUSINESS, ECONOMY, FIRST etc.

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

    
Set the 'AirlineCabinClass' attribute value. Specifies the Cabin Class such as, BUSINESS, ECONOMY, FIRST etc.

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