Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

Specifies category option information. 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="CategoryOptionType">
   <xs:sequence>
     <xs:element name="PriceInfos" minOccurs="0">
       <!-- Reference to inner class PriceInfos -->
     </xs:element>
     <xs:element name="Dining" minOccurs="0" maxOccurs="8">
       <!-- Reference to inner class Dining -->
     </xs:element>
   </xs:sequence>
   <xs:attributeGroup ref="ns:FareGroup"/>
   <xs:attribute type="xs:string" use="optional" name="Status"/>
   <xs:attribute type="xs:boolean" use="optional" name="HeldIndicator"/>
   <xs:attribute type="ns:CategoryLocationType" use="optional" name="CategoryLocation"/>
   <xs:attribute type="xs:int" use="optional" name="MaxOccupancy"/>
   <xs:attribute type="ns:ListOfOTA_CodeType" use="optional" name="ListOfCategoryQualifierCodes"/>
   <xs:attributeGroup ref="ns:CruiseCategoryGroup"/>
   <xs:attribute type="xs:int" use="optional" name="AvailableGroupAllocationQty"/>
 </xs:complexType>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfOTA_CodeType">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
 
 public class CategoryOption
 {
     private PriceInfos priceInfos;
     private List<DiningdiningList = new ArrayList<Dining>();
     private FareGroup fareGroup;
     private String status;
     private Boolean heldIndicator;
     private Integer maxOccupancy;
     private List<StringlistOfCategoryQualifierCodes = new ArrayList<String>();
     private Integer availableGroupAllocationQty;

    
Get the 'PriceInfos' element value.

Returns:
value
 
     public PriceInfos getPriceInfos() {
         return ;
     }

    
Set the 'PriceInfos' element value.

Parameters:
priceInfos
 
     public void setPriceInfos(PriceInfos priceInfos) {
         this. = priceInfos;
     }

    
Get the list of 'Dining' element items.

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

    
Set the list of 'Dining' element items.

Parameters:
list
 
     public void setDiningList(List<Dininglist) {
          = list;
     }

    
Get the number of 'Dining' element items.

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

    
Add a 'Dining' element item.

Parameters:
item
 
     public void addDining(Dining item) {
         .add(item);
     }

    
Get 'Dining' element item by position.

Parameters:
index
Returns:
item
    public Dining getDining(int index) {
        return .get(index);
    }

    
Remove all 'Dining' element items.
    public void clearDiningList() {
        .clear();
    }

    
Get the 'FareGroup' attributeGroup value. Specifies the fare code and or group code associated with the category.

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

    
Set the 'FareGroup' attributeGroup value. Specifies the fare code and or group code associated with the category.

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

    
Get the 'Status' attribute value. Category availability status. Refer to OpenTravel Code table Status (STS).

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

    
Set the 'Status' attribute value. Category availability status. Refer to OpenTravel Code table Status (STS).

Parameters:
status
    public void setStatus(String status) {
        this. = status;
    }

    
Get the 'HeldIndicator' attribute value. When true, all cabins in this category are currently being held.

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

    
Set the 'HeldIndicator' attribute value. When true, all cabins in this category are currently being held.

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

    
Get the 'CategoryLocation' attribute value. Category location in the ship: (I) Inside or (O) Outside.

Returns:
value
        return ;
    }

    
Set the 'CategoryLocation' attribute value. Category location in the ship: (I) Inside or (O) Outside.

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

    
Get the 'MaxOccupancy' attribute value. Maximum number of guest per cabin.

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

    
Set the 'MaxOccupancy' attribute value. Maximum number of guest per cabin.

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

    
Get the list of 'ListOfCategoryQualifierCodes' attribute items. Contains additional category information. Refer to OpenTravel Code List Cabin Filters (CBF).

Returns:
list
        return ;
    }

    
Set the list of 'ListOfCategoryQualifierCodes' attribute items. Contains additional category information. Refer to OpenTravel Code List Cabin Filters (CBF).

Parameters:
list
    public void setListOfCategoryQualifierCodes(List<Stringlist) {
         = list;
    }

    
Serializer for 'ListOfCategoryQualifierCodes' attribute list.

Parameters:
values
Returns:
text
            List<Stringvalues) {
        if (values == null) {
            return null;
        } else {
            java.lang.StringBuffer buff = new java.lang.StringBuffer();
            for (java.util.Iterator<Stringiter = values.iterator(); iter
                    .hasNext();) {
                if (buff.length() > 0) {
                    buff.append(' ');
                }
                String value = iter.next();
                buff.append(value);
            }
            return buff.toString();
        }
    }

    
Deserializer for 'ListOfCategoryQualifierCodes' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
            String textthrows org.jibx.runtime.JiBXException {
            public java.lang.Object deserialize(String text) {
                return text;
            }
        };
        return (List<String>) org.jibx.runtime.Utility.deserializeList(text,
                ldser);
    }

    
Get the number of 'ListOfCategoryQualifierCodes' attribute items.

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

    
Add a 'ListOfCategoryQualifierCodes' attribute item.

Parameters:
item
    public void addListOfCategoryQualifierCode(String item) {
        .add(item);
    }

    
Get 'ListOfCategoryQualifierCodes' attribute item by position.

Parameters:
index
Returns:
item
    public String getListOfCategoryQualifierCode(int index) {
        return .get(index);
    }

    
Remove all 'ListOfCategoryQualifierCodes' attribute items.
    public void clearListOfCategoryQualifierCodes() {
    }

    
Get the 'CruiseCategoryGroup' attributeGroup value. Specifies category code information.

Returns:
value
        return ;
    }

    
Set the 'CruiseCategoryGroup' attributeGroup value. Specifies category code information.

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

    
Get the 'AvailableGroupAllocationQty' attribute value. Number of remaining cabins allocated to the group.

Returns:
value
        return ;
    }

    
Set the 'AvailableGroupAllocationQty' attribute value. Number of remaining cabins allocated to the group.

Parameters:
availableGroupAllocationQty
    public void setAvailableGroupAllocationQty(
            Integer availableGroupAllocationQty) {
        this. = availableGroupAllocationQty;
    }
    
Collection of price infos. 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="PriceInfos" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="PriceInfo" maxOccurs="8">
         <!-- Reference to inner class PriceInfo -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class PriceInfos
    {
        private List<PriceInfopriceInfoList = new ArrayList<PriceInfo>();

        
Get the list of 'PriceInfo' element items.

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

        
Set the list of 'PriceInfo' element items.

Parameters:
list
        public void setPriceInfoList(List<PriceInfolist) {
             = list;
        }

        
Get the number of 'PriceInfo' element items.

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

        
Add a 'PriceInfo' element item.

Parameters:
item
        public void addPriceInfo(PriceInfo item) {
            .add(item);
        }

        
Get 'PriceInfo' element item by position.

Parameters:
index
Returns:
item
        public PriceInfo getPriceInfo(int index) {
            return .get(index);
        }

        
Remove all 'PriceInfo' element items.
        public void clearPriceInfoList() {
            .clear();
        }
        
Contains the pricing monetary 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="PriceInfo" maxOccurs="8">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:PriceInfoType">
         <xs:attributeGroup ref="ns:FareGroup"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
        public static class PriceInfo
                extends
                    org.jibx.schema.org.opentravel._2012A.cruise.PriceInfo
        {
            private FareGroup fareGroup;

            
Get the 'FareGroup' attributeGroup value. When handling pricing by the lowest available fare, each category may have a distinct lowest fare code.

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

            
Set the 'FareGroup' attributeGroup value. When handling pricing by the lowest available fare, each category may have a distinct lowest fare code.

Parameters:
fareGroup
            public void setFareGroup(FareGroup fareGroup) {
                this. = fareGroup;
            }
        }
    }
    
The status per dining seating. 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" maxOccurs="8">
   <xs:complexType>
     <xs:attribute type="xs:string" use="required" name="Sitting"/>
     <xs:attribute type="xs:string" use="optional" name="Status"/>
     <xs:attribute type="xs:int" use="optional" name="Occupancy"/>
   </xs:complexType>
 </xs:element>
 
    public static class Dining
    {
        private String sitting;
        private String status;
        private Integer occupancy;

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

        
Get the 'Status' attribute value. The status of the dining. Refer to OpenTravel Code Table Status (STS).

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

        
Set the 'Status' attribute value. The status of the dining. Refer to OpenTravel Code Table Status (STS).

Parameters:
status
        public void setStatus(String status) {
            this. = status;
        }

        
Get the 'Occupancy' attribute value. The available occupancy associated with the dining.

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

        
Set the 'Occupancy' attribute value. The available occupancy associated with the dining.

Parameters:
occupancy
        public void setOccupancy(Integer occupancy) {
            this. = occupancy;
        }
    }
New to GrepCode? Check out our FAQ X