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.

Field Summary
static java.lang.String BOOLEAN_TYPE
           
static java.lang.String INTEGER_TYPE
           
static java.lang.String STRING_TYPE
           
 
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.
 
Method Summary
 java.lang.String getCommandLineValue()
           
 java.lang.String getDefaultValue()
          Returns the default value of hte property.
 java.lang.String getFileValue()
          Returns the value read for the property from a file.
 java.lang.String getName()
          Returns the name of the property.
 java.lang.String getToolTip()
           
 java.lang.String getType()
          This method returns a string representing the type of the property.
 boolean isMandatory()
          Returns a boolean to indicate if the property is mandatory or not.
 void setCommandLineValue(java.lang.String value)
           
 void setDefaultValue(java.lang.String value)
           
 void setFileValue(java.lang.String value)
           
 void setName(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 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.
Method Detail

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)