Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
  import java.util.List;
The Cabin Hold Request message requests up to four cabins to be held on up to three sailings specific Mode of Transportation/GatewayCity pair and currency and for a selected fare/category pair. Optional request information can include: Guest city and Inclusive package. 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="OTA_CruiseCabinHoldRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="GuestCounts" minOccurs="0">
         <!-- Reference to inner class GuestCounts -->
       </xs:element>
       <xs:element name="SelectedSailing" maxOccurs="3">
         <!-- Reference to inner class SelectedSailing -->
       </xs:element>
       <xs:element type="ns:GuestType" name="Guest" minOccurs="0" maxOccurs="9"/>
       <xs:element name="Currency" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:CurrencyCodeGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="SearchQualifiers" minOccurs="0">
         <!-- Reference to inner class SearchQualifiers -->
       </xs:element>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class CabinHoldRQ
 {
     private POS POS;
     private GuestCounts guestCounts;
     private List<GuestguestList = new ArrayList<Guest>();
     private CurrencyCodeGroup currency;
     private TPAExtensions TPAExtensions;
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 '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 list of 'SelectedSailing' element items.

Returns:
list
 
         return ;
     }

    
Set the list of 'SelectedSailing' element items.

Parameters:
list
    public void setSelectedSailingList(List<SelectedSailinglist) {
         = list;
    }

    
Get the number of 'SelectedSailing' element items.

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

    
Add a 'SelectedSailing' element item.

Parameters:
item
    public void addSelectedSailing(SelectedSailing item) {
        .add(item);
    }

    
Get 'SelectedSailing' element item by position.

Parameters:
index
Returns:
item
    public SelectedSailing getSelectedSailing(int index) {
        return .get(index);
    }

    
Remove all 'SelectedSailing' element items.
    public void clearSelectedSailingList() {
        .clear();
    }

    
Get the list of 'Guest' element items. Selected guest mode of transportation available for current sailing and current fares.

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

    
Set the list of 'Guest' element items. Selected guest mode of transportation available for current sailing and current fares.

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 'CurrencyCodeGroup' attributeGroup value. Currency in which the fare will be returned.

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

    
Set the 'CurrencyCodeGroup' attributeGroup value. Currency in which the fare will be returned.

Parameters:
currency
    public void setCurrency(CurrencyCodeGroup currency) {
        this. = currency;
    }

    
Get the 'SearchQualifiers' element value.

Returns:
value
        return ;
    }

    
Set the 'SearchQualifiers' element value.

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

    
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;
    }
    
Specifies guest quantity and guest types. 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="GuestCounts" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="GuestCount" maxOccurs="unbounded">
         <xs:complexType>
           <xs:attributeGroup ref="ns:TravelerCountGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class GuestCounts
    {
        private List<TravelerCountGroupguestCountList = new ArrayList<TravelerCountGroup>();

        
Get the list of 'GuestCount' element items. Categorization of all guests in the request. The total number of guests will equal the sum of the Quantity attribute of all GuestCount objects in this collection and assumes that the Guest Age or the Guest Code will be used to determine how each Guest should be fared.

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

        
Set the list of 'GuestCount' element items. Categorization of all guests in the request. The total number of guests will equal the sum of the Quantity attribute of all GuestCount objects in this collection and assumes that the Guest Age or the Guest Code will be used to determine how each Guest should be fared.

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();
        }
    }
    
Contains information related to the selected sailing. Typically the selected sailing is one of the sailings returned in the previous sailing availability response. 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" maxOccurs="3">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="SelectedFare" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:FareGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="SelectedCategory">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="SelectedCabin" maxOccurs="4">
               <xs:complexType>
                 <xs:attributeGroup ref="ns:CruiseCabinGroup"/>
               </xs:complexType>
             </xs:element>
           </xs:sequence>
           <xs:attributeGroup ref="ns:CruiseCategoryDetailGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="InclusivePackageOption" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:CruisePackageGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:SelectedSailingGroup"/>
   </xs:complexType>
 </xs:element>
 
    public static class SelectedSailing
    {
        private FareGroup selectedFare;
        private SelectedSailingGroup selectedSailingGroup;

        
Get the 'FareGroup' attributeGroup value. Specifies the fare code and the group code if any. Fare codes are specific to cruise lines.

Returns:
value
        public FareGroup getSelectedFare() {
            return ;
        }

        
Set the 'FareGroup' attributeGroup value. Specifies the fare code and the group code if any. Fare codes are specific to cruise lines.

Parameters:
selectedFare
        public void setSelectedFare(FareGroup selectedFare) {
            this. = selectedFare;
        }

        
Get the list of 'SelectedCabin' element items. Specifies the selected Cabins.

Returns:
list
            return ;
        }

        
Set the list of 'SelectedCabin' element items. Specifies the selected Cabins.

Parameters:
list
        public void setSelectedCategorySelectedCabinList(
                List<CruiseCabinGrouplist) {
             = list;
        }

        
Get the number of 'SelectedCabin' element items.

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

        
Add a 'SelectedCabin' element item.

Parameters:
item
        public void addSelectedCategorySelectedCabin(CruiseCabinGroup item) {
            .add(item);
        }

        
Get 'SelectedCabin' element item by position.

Parameters:
index
Returns:
item
        public CruiseCabinGroup getSelectedCategorySelectedCabin(int index) {
            return .get(index);
        }

        
Remove all 'SelectedCabin' element items.
        public void clearSelectedCategorySelectedCabinList() {
            .clear();
        }

        
Get the 'CruiseCategoryDetailGroup' attributeGroup value.

Returns:
value
            return ;
        }

        
Set the 'CruiseCategoryDetailGroup' attributeGroup value.

Parameters:
selectedCategoryCruiseCategoryDetailGroup
                CruiseCategoryDetailGroup selectedCategoryCruiseCategoryDetailGroup) {
            this. = selectedCategoryCruiseCategoryDetailGroup;
        }

        
Get the 'CruisePackageGroup' attributeGroup value. Allows to query for package options that the cruise might offer with the sailing. Usually the request will query for packages that are included in the cruise sailing offering (inclusive packages).

Returns:
value
        public CruisePackageGroup getInclusivePackageOption() {
            return ;
        }

        
Set the 'CruisePackageGroup' attributeGroup value. Allows to query for package options that the cruise might offer with the sailing. Usually the request will query for packages that are included in the cruise sailing offering (inclusive packages).

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

        
Get the 'SelectedSailingGroup' attributeGroup value.

Returns:
value
        public SelectedSailingGroup getSelectedSailingGroup() {
            return ;
        }

        
Set the 'SelectedSailingGroup' attributeGroup value.

Parameters:
selectedSailingGroup
        public void setSelectedSailingGroup(
                SelectedSailingGroup selectedSailingGroup) {
            this. = selectedSailingGroup;
        }
    }
    
In this message Past Passenger Number and Residency can be used to hold the Cabin. NOTE: Other Fields may not be used in this message. 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="SearchQualifiers" minOccurs="0">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:SearchQualifierType">
         <xs:attributeGroup ref="ns:DeckGroup"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class SearchQualifiers extends SearchQualifier
    {
        private DeckGroup deckGroup;

        
Get the 'DeckGroup' attributeGroup value. Provides the ability to search on deck number or name.

Returns:
value
        public DeckGroup getDeckGroup() {
            return ;
        }

        
Set the 'DeckGroup' attributeGroup value. Provides the ability to search on deck number or name.

Parameters:
deckGroup
        public void setDeckGroup(DeckGroup deckGroup) {
            this. = deckGroup;
        }
    }
New to GrepCode? Check out our FAQ X