Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.jibx.schema.org.opentravel._2012A.cruise;
 
Specifies the guest transportation type. 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="GuestTransportationType">
   <xs:sequence>
     <xs:element type="ns:LocationType" name="GuestCity" minOccurs="0"/>
     <xs:element type="ns:LocationType" name="GatewayCity" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:string" use="required" name="Mode"/>
   <xs:attribute type="xs:string" use="optional" name="Status"/>
 </xs:complexType>
 
public class GuestTransportation
    private Location guestCity;
    private Location gatewayCity;
    private String mode;
    private String status;

    
Get the 'GuestCity' element value. City or closest airport where the guest resides.

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

    
Set the 'GuestCity' element value. City or closest airport where the guest resides.

Parameters:
guestCity
    public void setGuestCity(Location guestCity) {
        this. = guestCity;
    }

    
Get the 'GatewayCity' element value. Specifies the gateway city for the cruise line (especially when the mode of transportation is air).

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

    
Set the 'GatewayCity' element value. Specifies the gateway city for the cruise line (especially when the mode of transportation is air).

Parameters:
gatewayCity
    public void setGatewayCity(Location gatewayCity) {
        this. = gatewayCity;
    }

    
Get the 'Mode' attribute value. Transportation mode code. Refer to OpenTravel Code List Transportation Code (TRP).

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

    
Set the 'Mode' attribute value. Transportation mode code. Refer to OpenTravel Code List Transportation Code (TRP).

Parameters:
mode
    public void setMode(String mode) {
        this. = mode;
    }

    
Get the 'Status' attribute value. Status for the mode of transportation. Refer to OpenTravel Code table Status (STS).

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

    
Set the 'Status' attribute value. Status for the mode of transportation. Refer to OpenTravel Code table Status (STS).

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