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 Availability Request message requests Cabin Availability for a given sailing with a 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_CruiseCabinAvailRQ">
   <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">
         <xs:complexType>
           <xs:sequence>
             <xs:element name="GuestCount" maxOccurs="9">
               <xs:complexType>
                 <xs:attributeGroup ref="ns:TravelerCountGroup"/>
               </xs:complexType>
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:SailingCategoryInfoType" name="SailingInfo"/>
       <xs:element name="SearchQualifiers" minOccurs="0">
         <!-- Reference to inner class SearchQualifiers -->
       </xs:element>
       <xs:element name="SelectedFare">
         <xs:complexType>
           <xs:attributeGroup ref="ns:FareGroup"/>
         </xs:complexType>
       </xs:element>
       <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 CabinAvailRQ
 {
     private POS POS;
     private List<GuestguestList = new ArrayList<Guest>();
     private SailingCategoryInfo sailingInfo;
     private FareGroup selectedFare;
     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 regarding the guest staying in the cabin.

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

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

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 list of 'GuestCount' element items. Specifies guest quantity and guest types.

Returns:
list
        return ;
    }

    
Set the list of 'GuestCount' element items. Specifies guest quantity and guest types.

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 'SailingInfo' element value. Contains information related to the selected sailing. Typically the selected sailing is one of the sailings returned in the previous sailing availability response. Used to request a package option 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 'SailingInfo' element value. Contains information related to the selected sailing. Typically the selected sailing is one of the sailings returned in the previous sailing availability response. Used to request a package option 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:
sailingInfo
    public void setSailingInfo(SailingCategoryInfo sailingInfo) {
        this. = sailingInfo;
    }

    
Get the 'SearchQualifiers' element value.

Returns:
value
        return ;
    }

    
Set the 'SearchQualifiers' element value.

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

    
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 '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;
    }
    
Used to further qualify the cabin availability search. 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