001/*
002 *  Copyright 2011 Anyware Services
003 *
004 *  Licensed under the Apache License, Version 2.0 (the "License");
005 *  you may not use this file except in compliance with the License.
006 *  You may obtain a copy of the License at
007 *
008 *      http://www.apache.org/licenses/LICENSE-2.0
009 *
010 *  Unless required by applicable law or agreed to in writing, software
011 *  distributed under the License is distributed on an "AS IS" BASIS,
012 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 *  See the License for the specific language governing permissions and
014 *  limitations under the License.
015 */
016package org.ametys.skinfactory.parameters;
017
018import org.ametys.runtime.i18n.I18nizableText;
019
020/**
021 * Class representing a variant
022 *
023 */
024public class Variant
025{
026    String _id;
027    I18nizableText _label;
028    I18nizableText _description;
029    String _thumbnail;
030    
031    /**
032     * Constructor
033     * @param id the id
034     * @param label the label
035     * @param description the description
036     * @param thumbnail the thumbnail image
037     */
038    public Variant (String id, I18nizableText label, I18nizableText description, String thumbnail)
039    {
040        _id = id;
041        _label = label;
042        _description = description;
043        _thumbnail = thumbnail;
044    }
045    
046    /**
047     * Get the source path
048     * @return the source path
049     */
050    public String getId ()
051    {
052        return _id;
053    }
054    
055    /**
056     * Get the description
057     * @return the description
058     */
059    public I18nizableText getLabel ()
060    {
061        return _label;
062    }
063    
064    /**
065     * Get the description
066     * @return the description
067     */
068    public I18nizableText getDescription ()
069    {
070        return _description;
071    }
072    
073    /**
074     * Get the icon path
075     * @return the icon path
076     */
077    public String getThumbnail ()
078    {
079        return _thumbnail;
080    }
081}