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 Fast Sell Request message requests cabin hold, cabin availability, category availability, and optionally an 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_CruiseFastSellRQ">
   <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">
         <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" minOccurs="0">
               <!-- Reference to inner class SelectedCategory -->
             </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>
       <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 type="ns:SearchQualifierType" name="SearchQualifiers" minOccurs="0"/>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class FastSellRQ
 {
     private POS POS;
     private GuestCounts guestCounts;
     private List<GuestguestList = new ArrayList<Guest>();
     private CurrencyCodeGroup currency;
     private SearchQualifier searchQualifiers;
     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 'FareGroup' attributeGroup value. Specifies the fare code and the group code. Fare codes are specific to cruise lines.

Returns:
value
        return ;
    }

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

Parameters:
selectedSailingSelectedFare
    public void setSelectedSailingSelectedFare(
            FareGroup selectedSailingSelectedFare) {
        this. = selectedSailingSelectedFare;
    }

    
Get the 'SelectedCategory' element value. Contains information related to the selected sailing.

Returns:
value
        return ;
    }

    
Set the 'SelectedCategory' element value. Contains information related to the selected sailing.

Parameters:
selectedCategory
    public void setSelectedCategory(SelectedCategory selectedCategory) {
        this. = selectedCategory;
    }

    
Get the 'CruisePackageGroup' attributeGroup value. Specifies the package for this sailing.

Returns:
value
    }

    
Set the 'CruisePackageGroup' attributeGroup value. Specifies the package for this sailing.

Parameters:
selectedSailingInclusivePackageOption
            CruisePackageGroup selectedSailingInclusivePackageOption) {
        this. = selectedSailingInclusivePackageOption;
    }

    
Get the 'SelectedSailingGroup' attributeGroup value.

Returns:
value
    }

    
Set the 'SelectedSailingGroup' attributeGroup value.

Parameters:
selectedSailingSelectedSailingGroup
            SelectedSailingGroup selectedSailingSelectedSailingGroup) {
        this. = selectedSailingSelectedSailingGroup;
    }

    
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. 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.

Returns:
value
        return ;
    }

    
Set the 'SearchQualifiers' element value. 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.

Parameters:
searchQualifiers
    public void setSearchQualifiers(SearchQualifier 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. he 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. he 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();
        }
    }
    
Specifies the category for the Fast Sell. 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="SelectedCategory" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="SelectedCabin" minOccurs="0" maxOccurs="4">
         <xs:complexType>
           <xs:attributeGroup ref="ns:CruiseCabinGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:CruiseCategoryDetailGroup"/>
   </xs:complexType>
 </xs:element>
 
    public static class SelectedCategory
    {
        private List<CruiseCabinGroupselectedCabinList = new ArrayList<CruiseCabinGroup>();
        private CruiseCategoryDetailGroup cruiseCategoryDetailGroup;

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

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

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

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

        
Get the number of 'SelectedCabin' element items.

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

        
Add a 'SelectedCabin' element item.

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

        
Get 'SelectedCabin' element item by position.

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

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

        
Get the 'CruiseCategoryDetailGroup' attributeGroup value. Contains the berth and price category codes.

Returns:
value
            return ;
        }

        
Set the 'CruiseCategoryDetailGroup' attributeGroup value. Contains the berth and price category codes.

Parameters:
cruiseCategoryDetailGroup
        public void setCruiseCategoryDetailGroup(
                CruiseCategoryDetailGroup cruiseCategoryDetailGroup) {
            this. = cruiseCategoryDetailGroup;
        }
    }
New to GrepCode? Check out our FAQ X