Package jade

Class PropertyType


  • public class PropertyType
    extends Object
    This class defines the necessary information for the configuration properties of JADE. For every property some information are necessary to show the correctly: the name, the type (integer, boolean or string), the default Value, , the string to show as tooltip in the gui at start up and a boolean to indicate if the property is mandatory or not.
    Version:
    $Date$ $Revision$
    Author:
    Tiziana Trucco - CSELT S.p.A., Dominic Greenwood - Whitestein Technologies AG
    • Field Detail

      • INTEGER_TYPE

        public static String INTEGER_TYPE
      • BOOLEAN_TYPE

        public static String BOOLEAN_TYPE
      • STRING_TYPE

        public static String STRING_TYPE
      • COMBO_TYPE

        public static String COMBO_TYPE
    • Constructor Detail

      • PropertyType

        public PropertyType()
        Public constructor for a generic property.
      • PropertyType

        public PropertyType​(String name,
                            String type,
                            String def,
                            String desc,
                            boolean mand)
        Public constructor for a property.
        Parameters:
        name - Name of the property
        type - A string representing the type of the property
        def - Default value of the property
        desc - Description of the property
        mandatory - true if the property is mandatory, false otherwise.
      • PropertyType

        public PropertyType​(String name,
                            String type,
                            String[] en,
                            String def,
                            String desc,
                            boolean mand)
        Public constructor for a ComboBox specific property.
        Parameters:
        type - A string representing the type of the property
        en - A list of the allowed values for the combobox
        def - Default value of the property
        desc - Description of the property
        mandatory - true if the property is mandatory, false otherwise.
    • Method Detail

      • getType

        public String getType()
        This method returns a string representing the type of the property.
      • getName

        public String getName()
        Returns the name of the property.
      • getDefaultValue

        public String getDefaultValue()
        Returns the default value of the property.
      • getComboValues

        public String[] getComboValues()
        Returns the combo values for the property.
      • getToolTip

        public String getToolTip()
      • isMandatory

        public boolean isMandatory()
        Returns a boolean to indicate if the property is mandatory or not.
      • setName

        public void setName​(String value)
      • setDefaultValue

        public void setDefaultValue​(String value)