Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
Contains information pertaining to the selected sailing. 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="SailingInfoType">
   <xs:sequence>
     <xs:element name="SelectedSailing" minOccurs="0">
       <!-- Reference to inner class SelectedSailing -->
     </xs:element>
     <xs:element name="InclusivePackageOption" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:CruisePackageGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Currency" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:CurrencyCodeGroup"/>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 
 
 public class SailingInfo
 {
     private SelectedSailing selectedSailing;
     private CurrencyCodeGroup currency;

    
Get the 'SelectedSailing' element value.

Returns:
value
 
     public SelectedSailing getSelectedSailing() {
         return ;
     }

    
Set the 'SelectedSailing' element value.

Parameters:
selectedSailing
 
     public void setSelectedSailing(SelectedSailing selectedSailing) {
         this. = selectedSailing;
     }

    
Get the 'CruisePackageGroup' attributeGroup value. Used to request package options that the cruise might offer with the sailing. It is quite common to request, at this stage, packages that are included in the cruise sailing offering (inclusive packages).

Returns:
value
 
         return ;
     }

    
Set the 'CruisePackageGroup' attributeGroup value. Used to request package options that the cruise might offer with the sailing. It is quite common to request, at this stage, packages that are included in the cruise sailing offering (inclusive packages).

Parameters:
inclusivePackageOption
 
     public void setInclusivePackageOption(
             CruisePackageGroup inclusivePackageOption) {
         this. = inclusivePackageOption;
     }

    
Get the 'CurrencyCodeGroup' attributeGroup value. Provides currency in which business will be done.

Returns:
value
 
     public CurrencyCodeGroup getCurrency() {
         return ;
     }

    
Set the 'CurrencyCodeGroup' attributeGroup value. Provides currency in which business will be done.

Parameters:
currency
 
     public void setCurrency(CurrencyCodeGroup currency) {
         this. = currency;
     }
    
Contains information related to the selected sailing. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SelectedSailing" minOccurs="0">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:SailingBaseType">
         <xs:attribute type="xs:string" use="optional" name="VoyageID"/>
         <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
         <xs:attribute type="xs:string" use="optional" name="Status"/>
         <xs:attribute type="xs:int" use="optional" name="PortsOfCallQuantity"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class SelectedSailing extends SailingBase
    {
        private String voyageID;
        private DateTimeSpanGroup dateTimeSpanGroup;
        private String status;
        private Integer portsOfCallQuantity;

        
Get the 'VoyageID' attribute value. Specifies the cruise line unique identifier for a particular sailing.

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

        
Set the 'VoyageID' attribute value. Specifies the cruise line unique identifier for a particular sailing.

Parameters:
voyageID
        public void setVoyageID(String voyageID) {
            this. = voyageID;
        }

        
Get the 'DateTimeSpanGroup' attributeGroup value.

Returns:
value
        public DateTimeSpanGroup getDateTimeSpanGroup() {
            return ;
        }

        
Set the 'DateTimeSpanGroup' attributeGroup value.

Parameters:
dateTimeSpanGroup
        public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup) {
            this. = dateTimeSpanGroup;
        }

        
Get the 'Status' attribute value. Specifies the status of the voyage. Refer to OpenTravel Code table Status (STS).

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

        
Set the 'Status' attribute value. Specifies the status of the voyage. Refer to OpenTravel Code table Status (STS).

Parameters:
status
        public void setStatus(String status) {
            this. = status;
        }

        
Get the 'PortsOfCallQuantity' attribute value. Number of ports of call that the specific sailing has.

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

        
Set the 'PortsOfCallQuantity' attribute value. Number of ports of call that the specific sailing has.

Parameters:
portsOfCallQuantity
        public void setPortsOfCallQuantity(Integer portsOfCallQuantity) {
            this. = portsOfCallQuantity;
        }
    }
New to GrepCode? Check out our FAQ X