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 package availability request message handles pre, post, and inclusive package availability requests for a given sailing. 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_CruisePkgAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="GuestInfos" minOccurs="0">
         <!-- Reference to inner class GuestInfos -->
       </xs:element>
       <xs:element name="GuestCounts" minOccurs="0">
         <!-- Reference to inner class GuestCounts -->
       </xs:element>
       <xs:element type="ns:SailingCategoryInfoType" name="SailingInfo" minOccurs="0"/>
       <xs:element type="ns:CruisePackageType" name="PackageOption" maxOccurs="8"/>
       <xs:element type="ns:SearchQualifierType" name="SearchQualifiers" minOccurs="0"/>
       <xs:element type="ns:ReservationID_Type" name="ReservationID" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:ResponseGroup"/>
   </xs:complexType>
 </xs:element>
 
 
 public class PkgAvailRQ
 {
     private POS POS;
     private GuestInfos guestInfos;
     private GuestCounts guestCounts;
     private SailingCategoryInfo sailingInfo;
     private SearchQualifier searchQualifiers;
     private ReservationID reservationID;
     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 'GuestInfos' element value.

Returns:
value
 
     public GuestInfos getGuestInfos() {
         return ;
     }

    
Set the 'GuestInfos' element value.

Parameters:
guestInfos
 
     public void setGuestInfos(GuestInfos guestInfos) {
         this. = guestInfos;
     }

    
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 'SailingInfo' element value. Contains information related to the selected sailing.

Returns:
value
        return ;
    }

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

Parameters:
sailingInfo
    public void setSailingInfo(SailingCategoryInfo sailingInfo) {
        this. = sailingInfo;
    }

    
Get the list of 'PackageOption' element items. Specifies the type of package options of interest.

Returns:
list
        return ;
    }

    
Set the list of 'PackageOption' element items. Specifies the type of package options of interest.

Parameters:
list
    public void setPackageOptionList(List<CruisePackagelist) {
         = list;
    }

    
Get the number of 'PackageOption' element items.

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

    
Add a 'PackageOption' element item.

Parameters:
item
    public void addPackageOption(CruisePackage item) {
        .add(item);
    }

    
Get 'PackageOption' element item by position.

Parameters:
index
Returns:
item
    public CruisePackage getPackageOption(int index) {
        return .get(index);
    }

    
Remove all 'PackageOption' element items.
    public void clearPackageOptionList() {
        .clear();
    }

    
Get the 'SearchQualifiers' element value. Used to further qualify the package availability search.

Returns:
value
        return ;
    }

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

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

    
Get the 'ReservationID' element value. A reference to a specific reservation which may limit the available packages.

Returns:
value
    public ReservationID getReservationID() {
        return ;
    }

    
Set the 'ReservationID' element value. A reference to a specific reservation which may limit the available packages.

Parameters:
reservationID
    public void setReservationID(ReservationID reservationID) {
        this. = reservationID;
    }

    
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;
    }
    
Collection of guest information. 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="GuestInfos" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="GuestInfo" maxOccurs="9">
         <!-- Reference to inner class GuestInfo -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class GuestInfos
    {
        private List<GuestInfoguestInfoList = new ArrayList<GuestInfo>();

        
Get the list of 'GuestInfo' element items.

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

        
Set the list of 'GuestInfo' element items.

Parameters:
list
        public void setGuestInfoList(List<GuestInfolist) {
             = list;
        }

        
Get the number of 'GuestInfo' element items.

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

        
Add a 'GuestInfo' element item.

Parameters:
item
        public void addGuestInfo(GuestInfo item) {
            .add(item);
        }

        
Get 'GuestInfo' element item by position.

Parameters:
index
Returns:
item
        public GuestInfo getGuestInfo(int index) {
            return .get(index);
        }

        
Remove all 'GuestInfo' element items.
        public void clearGuestInfoList() {
            .clear();
        }
        
Specifies the guest information. 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="GuestInfo" maxOccurs="9">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="SelectedFareCode" minOccurs="0" maxOccurs="2">
         <xs:complexType>
           <xs:attributeGroup ref="ns:FareGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:GuestTransportationType" name="GuestTransportation" minOccurs="0" maxOccurs="2"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
        public static class GuestInfo
        {
            private List<FareGroupselectedFareCodeList = new ArrayList<FareGroup>();
            private List<GuestTransportationguestTransportationList = new ArrayList<GuestTransportation>();

            
Get the list of 'SelectedFareCode' element items. Specifies the fare code and the group code if any. Fare codes are specific to cruise lines.

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

            
Set the list of 'SelectedFareCode' element items. Specifies the fare code and the group code if any. Fare codes are specific to cruise lines.

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

            
Get the number of 'SelectedFareCode' element items.

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

            
Add a 'SelectedFareCode' element item.

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

            
Get 'SelectedFareCode' element item by position.

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

            
Remove all 'SelectedFareCode' element items.
            public void clearSelectedFareCodeList() {
                .clear();
            }

            
Get the list of 'GuestTransportation' element items. Selected guest mode of transportation.

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

            
Set the list of 'GuestTransportation' element items. Selected guest mode of transportation.

Parameters:
list
            public void setGuestTransportationList(
                    List<GuestTransportationlist) {
                 = list;
            }

            
Get the number of 'GuestTransportation' element items.

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

            
Add a 'GuestTransportation' element item.

Parameters:
item
            public void addGuestTransportation(GuestTransportation item) {
                .add(item);
            }

            
Get 'GuestTransportation' element item by position.

Parameters:
index
Returns:
item
            public GuestTransportation getGuestTransportation(int index) {
                return .get(index);
            }

            
Remove all 'GuestTransportation' element items.
            public void clearGuestTransportationList() {
                .clear();
            }
        }
    }
    
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="9">
         <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 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();
        }
    }
New to GrepCode? Check out our FAQ X