Package com.e1c.g5.v8.dt.check
Class CheckParameterDefinition
java.lang.Object
com.e1c.g5.v8.dt.check.CheckParameterDefinition
The definition of a single parameter of a parametrized check. This definition defines the parameter of the check
and can be added during the cycle of the check configuration
ICheck.configureContextCollector(com.e1c.g5.v8.dt.check.ICheckDefinition)
Defined parameter values and titles could be overriden via the extension point "com.e1c.g5.v8.dt.checks.check" during
integration of the check into the check bundle
Defined parameters are accessible during the check cycle
ICheck.check(Object, com.e1c.g5.v8.dt.check.ICheckResultAcceptor, com.e1c.g5.v8.dt.check.ICheckParameters, org.eclipse.core.runtime.IProgressMonitor)
in form of ICheckParameters
-accessed values-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance of the definitionCheckParameterDefinition
(String name, Class<?> type) Constructs an isntance of the definitionCheckParameterDefinition
(String name, Class<?> type, String defaultValue, String title) Constructs an instance of the definition with the default value and title -
Method Summary
Modifier and TypeMethodDescriptionGets the default value if setgetName()
Gets the name of the parametergetTitle()
The title of the parameter, if anyClass<?>
getType()
Gets the type of the parametervoid
setDefaultValue
(String defaultValue) Sets the default value for the parametervoid
The title of the parametervoid
Sets the type of the parameter
-
Constructor Details
-
CheckParameterDefinition
Constructs an instance of the definition- Parameters:
name
- The name of the parameter. May not benull
-
CheckParameterDefinition
Constructs an isntance of the definition- Parameters:
name
- The name of the parameter. May not benull
type
- The type of the parameter. May not benull
-
CheckParameterDefinition
Constructs an instance of the definition with the default value and title- Parameters:
name
- The name of the parameter. May not benull
type
- The type of the parameter. May not benull
defaultValue
- The default value, in plain string format conforming the requirements of the chosed parameter type. May benull
title
- The title of the parameter to show on the check preferences page. May benull
-
-
Method Details
-
getDefaultValue
Gets the default value if set- Returns:
- The default value. Could be
null
-
getName
Gets the name of the parameter- Returns:
- The name of the parameter. May not be
null
-
getTitle
The title of the parameter, if any- Returns:
- The title of the parameter, may not be
null
-
getType
Gets the type of the parameter- Returns:
- The type of the parameter. May not be
null
-
setDefaultValue
Sets the default value for the parameter- Parameters:
defaultValue
- The default value to set. May benull
-
setTitle
The title of the parameter- Parameters:
title
- The title to set. May benull
-
setType
Sets the type of the parameter- Parameters:
type
- The type to set. May not benull
-