Package jade
Class PropertyType
- java.lang.Object
-
- jade.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 Summary
Fields Modifier and Type Field Description static StringBOOLEAN_TYPEstatic StringCOMBO_TYPEstatic StringINTEGER_TYPEstatic StringSTRING_TYPE
-
Constructor Summary
Constructors Constructor Description PropertyType()Public constructor for a generic property.PropertyType(String name, String type, String[] en, String def, String desc, boolean mand)Public constructor for a ComboBox specific property.PropertyType(String name, String type, String def, String desc, boolean mand)Public constructor for a property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getComboValues()Returns the combo values for the property.StringgetDefaultValue()Returns the default value of the property.StringgetName()Returns the name of the property.StringgetToolTip()StringgetType()This method returns a string representing the type of the property.booleanisMandatory()Returns a boolean to indicate if the property is mandatory or not.voidsetDefaultValue(String value)voidsetName(String value)
-
-
-
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 propertytype- A string representing the type of the propertydef- Default value of the propertydesc- Description of the propertymandatory- 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 propertyen- A list of the allowed values for the comboboxdef- Default value of the propertydesc- Description of the propertymandatory- 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)
-
-