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 Category Availability Request message requests Category Availability for a given sailing with a specific Mode of Transportation/GatewayCity pair and currency and for selected fares (depending on the cruise line). Optional request information can include: Guest ages; Guest city; and Inclusive package. 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_CruiseCategoryAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element type="ns:GuestType" name="Guest" 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:SailingInfoType" name="SailingInfo"/>
       <xs:element name="SearchQualifiers" minOccurs="0">
         <!-- Reference to inner class SearchQualifiers -->
       </xs:element>
       <xs:element name="SelectedFare" maxOccurs="5">
         <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:complexType>
 </xs:element>
 
 
 public class CategoryAvailRQ
 {
     private POS POS;
     private List<GuestguestList = new ArrayList<Guest>();
     private SailingInfo sailingInfo;
     private List<FareGroupselectedFareList = new ArrayList<FareGroup>();
     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 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 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.

Returns:
value
    public SailingInfo getSailingInfo() {
        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.

Parameters:
sailingInfo
    public void setSailingInfo(SailingInfo 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 list of 'SelectedFare' element items. Specifies the fare code and the group code.

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

    
Set the list of 'SelectedFare' element items. Specifies the fare code and the group code.

Parameters:
list
    public void setSelectedFareList(List<FareGrouplist) {
         = list;
    }

    
Get the number of 'SelectedFare' element items.

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

    
Add a 'SelectedFare' element item.

Parameters:
item
    public void addSelectedFare(FareGroup item) {
        .add(item);
    }

    
Get 'SelectedFare' element item by position.

Parameters:
index
Returns:
item
    public FareGroup getSelectedFare(int index) {
        return .get(index);
    }

    
Remove all 'SelectedFare' element items.
    public void clearSelectedFareList() {
        .clear();
    }

    
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;
    }
    
Used to further qualify the category availability search. 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="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