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 SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultValue()Gets the default value if setStringgetName()Gets the name of the parameterStringgetTitle()The title of the parameter, if anyClass<?>getType()Gets the type of the parametervoidsetDefaultValue(String defaultValue)Sets the default value for the parametervoidsetTitle(String title)The title of the parametervoidsetType(Class<?> type)Sets the type of the parameter
 
- 
- 
- 
Constructor Detail- 
CheckParameterDefinitionpublic CheckParameterDefinition(String name) Constructs an instance of the definition- Parameters:
- name- The name of the parameter. May not be- null
 
 - 
CheckParameterDefinitionpublic CheckParameterDefinition(String name, Class<?> type) Constructs an isntance of the definition- Parameters:
- name- The name of the parameter. May not be- null
- type- The type of the parameter. May not be- null
 
 - 
CheckParameterDefinitionpublic 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 be- null
- type- The type of the parameter. May not be- null
- defaultValue- The default value, in plain string format conforming the requirements of the chosed parameter type. May be- null
- title- The title of the parameter to show on the check preferences page. May be- null
 
 
- 
 - 
Method Detail- 
getDefaultValuepublic String getDefaultValue() Gets the default value if set- Returns:
- The default value. Could be null
 
 - 
getNamepublic String getName() Gets the name of the parameter- Returns:
- The name of the parameter. May not be null
 
 - 
getTitlepublic String getTitle() The title of the parameter, if any- Returns:
- The title of the parameter, may not be null
 
 - 
getTypepublic Class<?> getType() Gets the type of the parameter- Returns:
- The type of the parameter. May not be null
 
 - 
setDefaultValuepublic void setDefaultValue(String defaultValue) Sets the default value for the parameter- Parameters:
- defaultValue- The default value to set. May be- null
 
 - 
setTitlepublic void setTitle(String title) The title of the parameter- Parameters:
- title- The title to set. May be- null
 
 - 
setTypepublic void setType(Class<?> type) Sets the type of the parameter- Parameters:
- type- The type to set. May not be- null
 
 
- 
 
-