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 shorex availability request message requests shore excursions for a given sailing and currency. 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_CruiseShorexAvailRQ">
   <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 type="ns:SailingCategoryInfoType" name="SailingInfo" minOccurs="0"/>
       <xs:element type="ns:CruisePackageType" name="ShorexOption" maxOccurs="8"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:ResponseGroup"/>
   </xs:complexType>
 </xs:element>
 
 
 public class ShorexAvailRQ
 {
     private POS POS;
     private GuestCounts guestCounts;
     private SailingCategoryInfo sailingInfo;
     private List<CruisePackageshorexOptionList = new ArrayList<CruisePackage>();
     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 '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 for the selected sailing.

Returns:
value
 
     public SailingCategoryInfo getSailingInfo() {
         return ;
     }

    
Set the 'SailingInfo' element value. Contains information for the selected sailing.

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

    
Get the list of 'ShorexOption' element items. Specifies the type of package options to query for, that the cruise might offer with the sailing.

Returns:
list
 
        return ;
    }

    
Set the list of 'ShorexOption' element items. Specifies the type of package options to query for, that the cruise might offer with the sailing.

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

    
Get the number of 'ShorexOption' element items.

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

    
Add a 'ShorexOption' element item.

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

    
Get 'ShorexOption' element item by position.

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

    
Remove all 'ShorexOption' element items.
    public void clearShorexOptionList() {
        .clear();
    }

    
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;
    }
    
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