Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.cruise;
  
  import java.util.List;
The Sailing Availability Request message requests Sailing Availability for a geographical region on a specific date for a specific number and passengers. Optional request information can include: Cruise lines and Ship codes. The request can be narrowed to request availability for a specific cruise line or specific ship. 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_CruiseSailAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element type="ns:GuestType" name="Guest" minOccurs="0" maxOccurs="9"/>
       <xs:element name="GuestCounts" minOccurs="0">
         <!-- Reference to inner class GuestCounts -->
       </xs:element>
       <xs:element name="SailingDateRange">
         <xs:complexType>
           <xs:complexContent>
             <xs:extension base="ns:DateTimeSpanType">
               <xs:attributeGroup ref="ns:DurationGroup"/>
             </xs:extension>
           </xs:complexContent>
         </xs:complexType>
       </xs:element>
       <xs:element name="CruiseLinePrefs" minOccurs="0">
         <!-- Reference to inner class CruiseLinePrefs -->
       </xs:element>
       <xs:element name="RegionPref" minOccurs="0" maxOccurs="5">
         <xs:complexType>
           <xs:attributeGroup ref="ns:RegionGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:MultiModalOfferType" name="MultimodalOffer" minOccurs="0"/>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:ResponseGroup"/>
   </xs:complexType>
 </xs:element>
 
 
 public class SailAvailRQ
 {
     private POS POS;
     private List<GuestguestList = new ArrayList<Guest>();
     private GuestCounts guestCounts;
     private CruiseLinePrefs cruiseLinePrefs;
     private List<RegionGroupregionPrefList = new ArrayList<RegionGroup>();
     private MultiModalOffer multimodalOffer;
     private TPAExtensions TPAExtensions;
     private ResponseGroup responseGroup;

    
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 'Guest' element items. Specifies guest names and/or their transportation.

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

    
Set the list of 'Guest' element items. Specifies guest names and/or their transportation.

Parameters:
list
 
    public void setGuestList(List<Guestlist) {
         = list;
    }

    
Get the number of 'Guest' element items.

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

    
Add a 'Guest' element item.

Parameters:
item
    public void addGuest(Guest item) {
        .add(item);
    }

    
Get 'Guest' element item by position.

Parameters:
index
Returns:
item
    public Guest getGuest(int index) {
        return .get(index);
    }

    
Remove all 'Guest' element items.
    public void clearGuestList() {
        .clear();
    }

    
Get the 'GuestCounts' element value.

Returns:
value
    public GuestCounts getGuestCounts() {
        return ;
    }

    
Set the 'GuestCounts' element value.

Parameters:
guestCounts
    public void setGuestCounts(GuestCounts guestCounts) {
        this. = guestCounts;
    }

    
Get the extension value.

Returns:
value
        return ;
    }

    
Set the extension value.

Parameters:
sailingDateRangeDateTimeSpan
    public void setSailingDateRangeDateTimeSpan(
            DateTimeSpan sailingDateRangeDateTimeSpan) {
        this. = sailingDateRangeDateTimeSpan;
    }

    
Get the 'DurationGroup' attributeGroup value.

Returns:
value
        return ;
    }

    
Set the 'DurationGroup' attributeGroup value.

Parameters:
sailingDateRangeDurationGroup
            DurationGroup sailingDateRangeDurationGroup) {
        this. = sailingDateRangeDurationGroup;
    }

    
Get the 'CruiseLinePrefs' element value.

Returns:
value
        return ;
    }

    
Set the 'CruiseLinePrefs' element value.

Parameters:
cruiseLinePrefs
    public void setCruiseLinePrefs(CruiseLinePrefs cruiseLinePrefs) {
        this. = cruiseLinePrefs;
    }

    
Get the list of 'RegionPref' element items. Specifies geographical region to include in the response.

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

    
Set the list of 'RegionPref' element items. Specifies geographical region to include in the response.

Parameters:
list
    public void setRegionPrefList(List<RegionGrouplist) {
         = list;
    }

    
Get the number of 'RegionPref' element items.

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

    
Add a 'RegionPref' element item.

Parameters:
item
    public void addRegionPref(RegionGroup item) {
        .add(item);
    }

    
Get 'RegionPref' element item by position.

Parameters:
index
Returns:
item
    public RegionGroup getRegionPref(int index) {
        return .get(index);
    }

    
Remove all 'RegionPref' element items.
    public void clearRegionPrefList() {
        .clear();
    }

    
Get the 'MultimodalOffer' element value. Multimodal offer influencers.

Returns:
value
        return ;
    }

    
Set the 'MultimodalOffer' element value. Multimodal offer influencers.

Parameters:
multimodalOffer
    public void setMultimodalOffer(MultiModalOffer multimodalOffer) {
        this. = multimodalOffer;
    }

    
Get the 'TPA_Extensions' element value.

Returns:
value
    public TPAExtensions getTPAExtensions() {
        return ;
    }

    
Set the 'TPA_Extensions' element value.

Parameters:
TPAExtensions
    public void setTPAExtensions(TPAExtensions TPAExtensions) {
        this. = TPAExtensions;
    }

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel Messages.

Returns:
value
        return ;
    }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel Messages.

Parameters:
OTAPayloadStdAttributes
    public void setOTAPayloadStdAttributes(
            OTAPayloadStdAttributes OTAPayloadStdAttributes) {
        this. = OTAPayloadStdAttributes;
    }

    
Get the 'ResponseGroup' attributeGroup value. Provides the echo token to be used to retrieve additional records.

Returns:
value
    public ResponseGroup getResponseGroup() {
        return ;
    }

    
Set the 'ResponseGroup' attributeGroup value. Provides the echo token to be used to retrieve additional records.

Parameters:
responseGroup
    public void setResponseGroup(ResponseGroup responseGroup) {
        this. = responseGroup;
    }
    
Specifies guest quantity and guest types. 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="GuestCounts" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="GuestCount" maxOccurs="9">
         <xs:complexType>
           <xs:attributeGroup ref="ns:TravelerCountGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:boolean" use="optional" name="GroupIndicator"/>
   </xs:complexType>
 </xs:element>
 
    public static class GuestCounts
    {
        private List<TravelerCountGroupguestCountList = new ArrayList<TravelerCountGroup>();
        private Boolean groupIndicator;

        
Get the list of 'GuestCount' element items. Categorization of all guests in the request. The sum of the Quantity attribute will provide you with the total number of guests.

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

        
Set the list of 'GuestCount' element items. Categorization of all guests in the request. The sum of the Quantity attribute will provide you with the total number of guests.

Parameters:
list
        public void setGuestCountList(List<TravelerCountGrouplist) {
             = list;
        }

        
Get the number of 'GuestCount' element items.

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

        
Add a 'GuestCount' element item.

Parameters:
item
        public void addGuestCount(TravelerCountGroup item) {
            .add(item);
        }

        
Get 'GuestCount' element item by position.

Parameters:
index
Returns:
item
        public TravelerCountGroup getGuestCount(int index) {
            return .get(index);
        }

        
Remove all 'GuestCount' element items.
        public void clearGuestCountList() {
            .clear();
        }

        
Get the 'GroupIndicator' attribute value. When true, these counts are for a group.

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

        
Set the 'GroupIndicator' attribute value. When true, these counts are for a group.

Parameters:
groupIndicator
        public void setGroupIndicator(Boolean groupIndicator) {
            this. = groupIndicator;
        }
    }
    
Collection of cruise line preferences. 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="CruiseLinePrefs" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="CruiseLinePref" maxOccurs="99">
         <!-- Reference to inner class CruiseLinePref -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class CruiseLinePrefs
    {
        private List<CruiseLinePrefcruiseLinePrefList = new ArrayList<CruiseLinePref>();

        
Get the list of 'CruiseLinePref' element items.

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

        
Set the list of 'CruiseLinePref' element items.

Parameters:
list
        public void setCruiseLinePrefList(List<CruiseLinePreflist) {
             = list;
        }

        
Get the number of 'CruiseLinePref' element items.

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

        
Add a 'CruiseLinePref' element item.

Parameters:
item
        public void addCruiseLinePref(CruiseLinePref item) {
            .add(item);
        }

        
Get 'CruiseLinePref' element item by position.

Parameters:
index
Returns:
item
        public CruiseLinePref getCruiseLinePref(int index) {
            return .get(index);
        }

        
Remove all 'CruiseLinePref' element items.
        public void clearCruiseLinePrefList() {
            .clear();
        }
        
Specifies sailing preferences such as cruise line and ship code. 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="CruiseLinePref" maxOccurs="99">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="InclusivePackageOption" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:CruisePackageGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:SailingSearchQualifierType" name="SearchQualifiers" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:ShipReferenceGroup"/>
   </xs:complexType>
 </xs:element>
 
        public static class CruiseLinePref
        {
            private CruisePackageGroup inclusivePackageOption;
            private SailingSearchQualifier searchQualifiers;
            private ShipReferenceGroup shipReferenceGroup;

            
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
            public CruisePackageGroup getInclusivePackageOption() {
                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 'SearchQualifiers' element value. Used to further qualify the sailing availability search.

Returns:
value
            public SailingSearchQualifier getSearchQualifiers() {
                return ;
            }

            
Set the 'SearchQualifiers' element value. Used to further qualify the sailing availability search.

Parameters:
searchQualifiers
            public void setSearchQualifiers(
                    SailingSearchQualifier searchQualifiers) {
                this. = searchQualifiers;
            }

            
Get the 'ShipReferenceGroup' attributeGroup value.

Returns:
value
            public ShipReferenceGroup getShipReferenceGroup() {
                return ;
            }

            
Set the 'ShipReferenceGroup' attributeGroup value.

Parameters:
shipReferenceGroup
            public void setShipReferenceGroup(
                    ShipReferenceGroup shipReferenceGroup) {
                this. = shipReferenceGroup;
            }
        }
    }
New to GrepCode? Check out our FAQ X