jade
Class PropertyType
java.lang.Object
|
+--jade.PropertyType
- public class PropertyType
- extends java.lang.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 value read by file,
the value read from command line, the string to shoe as tooltip in the gui at start up and a
boolean to indicate if the property is mandatory or not.
- Author:
- Tiziana Trucco - CSELT S.p.A.
|
Constructor Summary |
PropertyType()
Public constructor for a generic property. |
PropertyType(java.lang.String name,
java.lang.String type,
java.lang.String def,
java.lang.String desc,
boolean mand)
Public constructor for a property. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
INTEGER_TYPE
public static java.lang.String INTEGER_TYPE
BOOLEAN_TYPE
public static java.lang.String BOOLEAN_TYPE
STRING_TYPE
public static java.lang.String STRING_TYPE
PropertyType
public PropertyType()
- Public constructor for a generic property.
PropertyType
public PropertyType(java.lang.String name,
java.lang.String type,
java.lang.String def,
java.lang.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.
getType
public java.lang.String getType()
- This method returns a string representing the type of the property.
getName
public java.lang.String getName()
- Returns the name of the property.
getDefaultValue
public java.lang.String getDefaultValue()
- Returns the default value of hte property.
getFileValue
public java.lang.String getFileValue()
- Returns the value read for the property from a file.
getCommandLineValue
public java.lang.String getCommandLineValue()
getToolTip
public java.lang.String getToolTip()
isMandatory
public boolean isMandatory()
- Returns a boolean to indicate if the property is mandatory or not.
setName
public void setName(java.lang.String value)
setFileValue
public void setFileValue(java.lang.String value)
setDefaultValue
public void setDefaultValue(java.lang.String value)
setCommandLineValue
public void setCommandLineValue(java.lang.String value)