Package com.e1c.g5.v8.dt.check
Class CheckParameterDefinition
- java.lang.Object
-
- com.e1c.g5.v8.dt.check.CheckParameterDefinition
-
public final class CheckParameterDefinition extends Object
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 configurationICheck.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 cycleICheck.check(Object, com.e1c.g5.v8.dt.check.ICheckResultAcceptor, com.e1c.g5.v8.dt.check.ICheckParameters, org.eclipse.core.runtime.IProgressMonitor)
in form ofICheckParameters
-accessed values
-
-
Constructor Summary
Constructors Constructor Description CheckParameterDefinition(String name)
Constructs 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultValue()
Gets the default value if setString
getName()
Gets the name of the parameterString
getTitle()
The title of the parameter, if anyClass<?>
getType()
Gets the type of the parametervoid
setDefaultValue(String defaultValue)
Sets the default value for the parametervoid
setTitle(String title)
The title of the parametervoid
setType(Class<?> type)
Sets the type of the parameter
-
-
-
Constructor Detail
-
CheckParameterDefinition
public CheckParameterDefinition(String name)
Constructs an instance of the definition- Parameters:
name
- The name of the parameter. May not benull
-
CheckParameterDefinition
public CheckParameterDefinition(String name, Class<?> type)
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
public CheckParameterDefinition(String name, Class<?> type, String defaultValue, String title)
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 Detail
-
getDefaultValue
public String getDefaultValue()
Gets the default value if set- Returns:
- The default value. Could be
null
-
getName
public String getName()
Gets the name of the parameter- Returns:
- The name of the parameter. May not be
null
-
getTitle
public String getTitle()
The title of the parameter, if any- Returns:
- The title of the parameter, may not be
null
-
getType
public Class<?> getType()
Gets the type of the parameter- Returns:
- The type of the parameter. May not be
null
-
setDefaultValue
public void setDefaultValue(String defaultValue)
Sets the default value for the parameter- Parameters:
defaultValue
- The default value to set. May benull
-
setTitle
public void setTitle(String title)
The title of the parameter- Parameters:
title
- The title to set. May benull
-
setType
public void setType(Class<?> type)
Sets the type of the parameter- Parameters:
type
- The type to set. May not benull
-
-