Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
  import java.util.List;

Provides category information for the specified sailing. 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="SailingCategoryInfoType">
   <xs:complexContent>
     <xs:extension base="ns:SailingInfoType">
       <xs:sequence>
         <xs:element name="SelectedCategory" minOccurs="0" maxOccurs="2">
           <!-- Reference to inner class SelectedCategory -->
         </xs:element>
       </xs:sequence>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 
 
 public class SailingCategoryInfo extends SailingInfo
 {
     private List<SelectedCategoryselectedCategoryList = new ArrayList<SelectedCategory>();

    
Get the list of 'SelectedCategory' element items.

Returns:
list
 
         return ;
     }

    
Set the list of 'SelectedCategory' element items.

Parameters:
list
 
     public void setSelectedCategoryList(List<SelectedCategorylist) {
          = list;
     }

    
Get the number of 'SelectedCategory' element items.

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

    
Add a 'SelectedCategory' element item.

Parameters:
item
 
     public void addSelectedCategory(SelectedCategory item) {
         .add(item);
     }

    
Get 'SelectedCategory' element item by position.

Parameters:
index
Returns:
item
 
     public SelectedCategory getSelectedCategory(int index) {
         return .get(index);
     }

    
Remove all 'SelectedCategory' element items.
 
     public void clearSelectedCategoryList() {
         .clear();
     }
    
Specifies a selected cabin category. 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="SelectedCategory" minOccurs="0" maxOccurs="2">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="CabinAttributes" minOccurs="0">
         <!-- Reference to inner class CabinAttributes -->
       </xs:element>
       <xs:element name="SelectedCabin" minOccurs="0" maxOccurs="3">
         <!-- Reference to inner class SelectedCabin -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:CruiseCategoryDetailGroup"/>
     <xs:attribute type="xs:boolean" use="optional" name="WaitlistIndicator"/>
     <xs:attributeGroup ref="ns:FareGroup"/>
   </xs:complexType>
 </xs:element>
 
 
    public static class SelectedCategory
    {
        private CabinAttributes cabinAttributes;
        private List<SelectedCabinselectedCabinList = new ArrayList<SelectedCabin>();
        private Boolean waitlistIndicator;
        private FareGroup fareGroup;

        
Get the 'CabinAttributes' element value.

Returns:
value
        public CabinAttributes getCabinAttributes() {
            return ;
        }

        
Set the 'CabinAttributes' element value.

Parameters:
cabinAttributes
        public void setCabinAttributes(CabinAttributes cabinAttributes) {
            this. = cabinAttributes;
        }

        
Get the list of 'SelectedCabin' element items.

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

        
Set the list of 'SelectedCabin' element items.

Parameters:
list
        public void setSelectedCabinList(List<SelectedCabinlist) {
             = list;
        }

        
Get the number of 'SelectedCabin' element items.

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

        
Add a 'SelectedCabin' element item.

Parameters:
item
        public void addSelectedCabin(SelectedCabin item) {
            .add(item);
        }

        
Get 'SelectedCabin' element item by position.

Parameters:
index
Returns:
item
        public SelectedCabin getSelectedCabin(int index) {
            return .get(index);
        }

        
Remove all 'SelectedCabin' element items.
        public void clearSelectedCabinList() {
            .clear();
        }

        
Get the 'CruiseCategoryDetailGroup' attributeGroup value. Specificies cruise category information.

Returns:
value
            return ;
        }

        
Set the 'CruiseCategoryDetailGroup' attributeGroup value. Specificies cruise category information.

Parameters:
cruiseCategoryDetailGroup
        public void setCruiseCategoryDetailGroup(
                CruiseCategoryDetailGroup cruiseCategoryDetailGroup) {
            this. = cruiseCategoryDetailGroup;
        }

        
Get the 'WaitlistIndicator' attribute value. When true, this indicates the selected category is waitlisted.

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

        
Set the 'WaitlistIndicator' attribute value. When true, this indicates the selected category is waitlisted.

Parameters:
waitlistIndicator
        public void setWaitlistIndicator(Boolean waitlistIndicator) {
            this. = waitlistIndicator;
        }

        
Get the 'FareGroup' attributeGroup value. The fare requested for this category.

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

        
Set the 'FareGroup' attributeGroup value. The fare requested for this category.

Parameters:
fareGroup
        public void setFareGroup(FareGroup fareGroup) {
            this. = fareGroup;
        }
        
Collection of category-level cabin attributes. 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="CabinAttributes" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="CabinAttribute" maxOccurs="99">
         <!-- Reference to inner class CabinAttribute -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
        public static class CabinAttributes
        {
            private List<CabinAttributecabinAttributeList = new ArrayList<CabinAttribute>();

            
Get the list of 'CabinAttribute' element items.

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

            
Set the list of 'CabinAttribute' element items.

Parameters:
list
            public void setCabinAttributeList(List<CabinAttributelist) {
                 = list;
            }

            
Get the number of 'CabinAttribute' element items.

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

            
Add a 'CabinAttribute' element item.

Parameters:
item
            public void addCabinAttribute(CabinAttribute item) {
                .add(item);
            }

            
Get 'CabinAttribute' element item by position.

Parameters:
index
Returns:
item
            public CabinAttribute getCabinAttribute(int index) {
                return .get(index);
            }

            
Remove all 'CabinAttribute' element items.
            public void clearCabinAttributeList() {
                .clear();
            }
            
List of attributes associated with all cabins in the specified category. 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="CabinAttribute" maxOccurs="99">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="CabinAttributeCode"/>
   </xs:complexType>
 </xs:element>
 
            public static class CabinAttribute
            {
                private String cabinAttributeCode;

                
Get the 'CabinAttributeCode' attribute value. Specifies the type of cabin requested. Refer to OpenTravel Code List Cabin Filters (CBF).

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

                
Set the 'CabinAttributeCode' attribute value. Specifies the type of cabin requested. Refer to OpenTravel Code List Cabin Filters (CBF).

Parameters:
cabinAttributeCode
                public void setCabinAttributeCode(String cabinAttributeCode) {
                    this. = cabinAttributeCode;
                }
            }
        }
        
Specifies the selected cabin 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="SelectedCabin" minOccurs="0" maxOccurs="3">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:CabinOptionType">
         <xs:sequence>
           <xs:element name="CabinAttributes" minOccurs="0">
             <!-- Reference to inner class CabinAttributes -->
           </xs:element>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
        public static class SelectedCabin extends CabinOption
        {
            private CabinAttributes cabinAttributes;

            
Get the 'CabinAttributes' element value.

Returns:
value
            public CabinAttributes getCabinAttributes() {
                return ;
            }

            
Set the 'CabinAttributes' element value.

Parameters:
cabinAttributes
            public void setCabinAttributes(CabinAttributes cabinAttributes) {
                this. = cabinAttributes;
            }
            
Collection of cabin attributes. 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="CabinAttributes" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="CabinAttribute" maxOccurs="99">
         <!-- Reference to inner class CabinAttribute -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
            public static class CabinAttributes
            {
                private List<CabinAttributecabinAttributeList = new ArrayList<CabinAttribute>();

                
Get the list of 'CabinAttribute' element items.

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

                
Set the list of 'CabinAttribute' element items.

Parameters:
list
                public void setCabinAttributeList(List<CabinAttributelist) {
                     = list;
                }

                
Get the number of 'CabinAttribute' element items.

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

                
Add a 'CabinAttribute' element item.

Parameters:
item
                public void addCabinAttribute(CabinAttribute item) {
                    .add(item);
                }

                
Get 'CabinAttribute' element item by position.

Parameters:
index
Returns:
item
                public CabinAttribute getCabinAttribute(int index) {
                    return .get(index);
                }

                
Remove all 'CabinAttribute' element items.
                public void clearCabinAttributeList() {
                    .clear();
                }
                
List of attributes associated with this 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="CabinAttribute" maxOccurs="99">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="CabinAttributeCode"/>
   </xs:complexType>
 </xs:element>
 
                public static class CabinAttribute
                {
                    private String cabinAttributeCode;

                    
Get the 'CabinAttributeCode' attribute value. Specifies the type of cabin requested. Refer to OpenTravel Code List Cabin Filters (CBF).

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

                    
Set the 'CabinAttributeCode' attribute value. Specifies the type of cabin requested. Refer to OpenTravel Code List Cabin Filters (CBF).

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