Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
  import java.util.List;
Search qualifiers that can be used in cruise availability/fare/category to avail special search data. Schema fragment(s) for this class:
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SearchQualifierType">
   <xs:sequence>
     <xs:element type="ns:UniqueID_Type" name="ReservationID" minOccurs="0"/>
     <xs:element name="Residency" minOccurs="0">
       <!-- Reference to inner class Residency -->
     </xs:element>
     <xs:element name="PriceRange" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:RateRangeGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Status" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class Status -->
     </xs:element>
     <xs:element name="Dining" minOccurs="0">
       <!-- Reference to inner class Dining -->
     </xs:element>
     <xs:element type="ns:MultiModalOfferType" name="MultimodalOffer" minOccurs="0"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:CruiseCategoryGroup"/>
   <xs:attribute type="xs:string" use="optional" name="CabinNumber"/>
   <xs:attribute type="xs:boolean" use="optional" name="HeldIndicator"/>
   <xs:attributeGroup ref="ns:FareGroup"/>
   <xs:attribute type="xs:int" use="optional" name="MaxOccupancy"/>
   <xs:attribute type="ns:CategoryLocationType" use="optional" name="CategoryLocation"/>
   <xs:attributeGroup ref="ns:LoyaltyInfoGroup"/>
   <xs:attribute type="xs:string" use="optional" name="SortOrderCode"/>
 </xs:complexType>
 
 
 public class SearchQualifier
 {
     private UniqueID reservationID;
     private Residency residency;
     private RateRangeGroup priceRange;
     private List<StatusstatuList = new ArrayList<Status>();
     private Dining dining;
     private MultiModalOffer multimodalOffer;
     private String cabinNumber;
     private Boolean heldIndicator;
     private FareGroup fareGroup;
     private Integer maxOccupancy;
     private String sortOrderCode;

    
Get the 'ReservationID' element value. Specifies the passenger's reservation number.

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

    
Set the 'ReservationID' element value. Specifies the passenger's reservation number.

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

    
Get the 'Residency' element value.

Returns:
value
 
     public Residency getResidency() {
         return ;
     }

    
Set the 'Residency' element value.

Parameters:
residency
 
     public void setResidency(Residency residency) {
         this. = residency;
     }

    
Get the 'RateRangeGroup' attributeGroup value. Provides a minimum and maximum price to qualify a search.

Returns:
value
    public RateRangeGroup getPriceRange() {
        return ;
    }

    
Set the 'RateRangeGroup' attributeGroup value. Provides a minimum and maximum price to qualify a search.

Parameters:
priceRange
    public void setPriceRange(RateRangeGroup priceRange) {
        this. = priceRange;
    }

    
Get the list of 'Status' element items.

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

    
Set the list of 'Status' element items.

Parameters:
list
    public void setStatuList(List<Statuslist) {
         = list;
    }

    
Get the number of 'Status' element items.

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

    
Add a 'Status' element item.

Parameters:
item
    public void addStatu(Status item) {
        .add(item);
    }

    
Get 'Status' element item by position.

Parameters:
index
Returns:
item
    public Status getStatu(int index) {
        return .get(index);
    }

    
Remove all 'Status' element items.
    public void clearStatuList() {
        .clear();
    }

    
Get the 'Dining' element value.

Returns:
value
    public Dining getDining() {
        return ;
    }

    
Set the 'Dining' element value.

Parameters:
dining
    public void setDining(Dining dining) {
        this. = dining;
    }

    
Get the 'MultimodalOffer' element value. Multimodal offer influencers.

Returns:
value
        return ;
    }

    
Set the 'MultimodalOffer' element value. Multimodal offer influencers.

Parameters:
multimodalOffer
    public void setMultimodalOffer(MultiModalOffer multimodalOffer) {
        this. = multimodalOffer;
    }

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

Returns:
value
        return ;
    }

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

Parameters:
cruiseCategoryGroup
    public void setCruiseCategoryGroup(CruiseCategoryGroup cruiseCategoryGroup) {
        this. = cruiseCategoryGroup;
    }

    
Get the 'CabinNumber' attribute value. Specifies the cabin number.

Returns:
value
    public String getCabinNumber() {
        return ;
    }

    
Set the 'CabinNumber' attribute value. Specifies the cabin number.

Parameters:
cabinNumber
    public void setCabinNumber(String cabinNumber) {
        this. = cabinNumber;
    }

    
Get the 'HeldIndicator' attribute value. When true, indicates the CabinNumber has a hold on it. When false, the CabinNumber does not have a hold.

Returns:
value
    public Boolean getHeldIndicator() {
        return ;
    }

    
Set the 'HeldIndicator' attribute value. When true, indicates the CabinNumber has a hold on it. When false, the CabinNumber does not have a hold.

Parameters:
heldIndicator
    public void setHeldIndicator(Boolean heldIndicator) {
        this. = heldIndicator;
    }

    
Get the 'FareGroup' attributeGroup value. Specifies the fare and group codes.

Returns:
value
    public FareGroup getFareGroup() {
        return ;
    }

    
Set the 'FareGroup' attributeGroup value. Specifies the fare and group codes.

Parameters:
fareGroup
    public void setFareGroup(FareGroup fareGroup) {
        this. = fareGroup;
    }

    
Get the 'MaxOccupancy' attribute value. Specifies the Max occupancy of the Cabin.

Returns:
value
    public Integer getMaxOccupancy() {
        return ;
    }

    
Set the 'MaxOccupancy' attribute value. Specifies the Max occupancy of the Cabin.

Parameters:
maxOccupancy
    public void setMaxOccupancy(Integer maxOccupancy) {
        this. = maxOccupancy;
    }

    
Get the 'CategoryLocation' attribute value. Specifies the cabin category location (e.g., inside, outside).

Returns:
value
        return ;
    }

    
Set the 'CategoryLocation' attribute value. Specifies the cabin category location (e.g., inside, outside).

Parameters:
categoryLocation
    public void setCategoryLocation(CategoryLocation categoryLocation) {
        this. = categoryLocation;
    }

    
Get the 'LoyaltyInfoGroup' attributeGroup value. Identifies the loyalty membership of a guest or prospect.

Returns:
value
        return ;
    }

    
Set the 'LoyaltyInfoGroup' attributeGroup value. Identifies the loyalty membership of a guest or prospect.

Parameters:
loyaltyInfoGroup
    public void setLoyaltyInfoGroup(LoyaltyInfoGroup loyaltyInfoGroup) {
        this. = loyaltyInfoGroup;
    }

    
Get the 'SortOrderCode' attribute value. Specifies the order in which the response information should be sorted. Refer to OpenTravel Code List Sort Order (SOC).

Returns:
value
    public String getSortOrderCode() {
        return ;
    }

    
Set the 'SortOrderCode' attribute value. Specifies the order in which the response information should be sorted. Refer to OpenTravel Code List Sort Order (SOC).

Parameters:
sortOrderCode
    public void setSortOrderCode(String sortOrderCode) {
        this. = sortOrderCode;
    }
    
Defines where the passenger resides for fare calculation purposes. 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="Residency" minOccurs="0">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="StateProvCode"/>
     <xs:attribute type="xs:string" use="optional" name="CountryCode"/>
   </xs:complexType>
 </xs:element>
 
    public static class Residency
    {
        private String stateProvCode;
        private String countryCode;

        
Get the 'StateProvCode' attribute value. The standard code or abbreviation for the state, province, or region.

Returns:
value
        public String getStateProvCode() {
            return ;
        }

        
Set the 'StateProvCode' attribute value. The standard code or abbreviation for the state, province, or region.

Parameters:
stateProvCode
        public void setStateProvCode(String stateProvCode) {
            this. = stateProvCode;
        }

        
Get the 'CountryCode' attribute value. 2 character country code as defined in ISO3166.

Returns:
value
        public String getCountryCode() {
            return ;
        }

        
Set the 'CountryCode' attribute value. 2 character country code as defined in ISO3166.

Parameters:
countryCode
        public void setCountryCode(String countryCode) {
            this. = countryCode;
        }
    }
    
Provides a search filter by the status of sailing, category, fare, or cabin. 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="Status" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="Status"/>
   </xs:complexType>
 </xs:element>
 
    public static class Status
    {
        private String status;

        
Get the 'Status' attribute value. Status of the sailing, category, fare, or cabin. Refer to OpenTravel Codelist Status (STS).

Returns:
value
        public String getStatus() {
            return ;
        }

        
Set the 'Status' attribute value. Status of the sailing, category, fare, or cabin. Refer to OpenTravel Codelist Status (STS).

Parameters:
status
        public void setStatus(String status) {
            this. = status;
        }
    }
    
Provides a search filter by dining sitting. 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="Dining" minOccurs="0">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="Sitting"/>
   </xs:complexType>
 </xs:element>
 
    public static class Dining
    {
        private String sitting;

        
Get the 'Sitting' attribute value. The dining seating (e.g., main dining, second dining).

Returns:
value
        public String getSitting() {
            return ;
        }

        
Set the 'Sitting' attribute value. The dining seating (e.g., main dining, second dining).

Parameters:
sitting
        public void setSitting(String sitting) {
            this. = sitting;
        }
    }
New to GrepCode? Check out our FAQ X