Class BasicCheck.ModuleConfigurationBuilder
- java.lang.Object
- 
- com.e1c.g5.v8.dt.check.components.BasicCheck.ModuleConfigurationBuilder
 
- 
- Enclosing class:
- BasicCheck
 
 public static final class BasicCheck.ModuleConfigurationBuilder extends Object Module configuration builder. Defines the context of the language module check launching rules. See documentation of methods for the usage instructions. This builder is not intended for the direct creation by check developers
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicCheck.ModuleConfigurationBuildercheckedObjectType(org.eclipse.emf.ecore.EClass... types)Defines the set of language object types that will be sent to this check for the validation.BasicCheck.CheckConfigurercomplexity(CheckComplexity complexity)Defines the complexity of the check.BasicCheck.CheckConfigurerdescription(String description)Sets the simple description for the check.BasicCheck.CheckConfigurerissueType(IssueType issueType)Defines the type of issues provided by this checkBasicCheck.CheckParameterBuilderparameter(String name, Class<?> type, String defaultValue, String title)Defines a parameter of the check.BasicCheck.CheckConfigurerseverity(IssueSeverity severity)Defines the default severity of issues provided by this checkBasicCheck.CheckConfigurertitle(String title)Defines the check title.
 
- 
- 
- 
Method Detail- 
checkedObjectTypepublic BasicCheck.ModuleConfigurationBuilder checkedObjectType(org.eclipse.emf.ecore.EClass... types) Defines the set of language object types that will be sent to this check for the validation. Tune this object selector carefully, as too wide selection of types could result in singnificant number of check runs.- Parameters:
- types- The set of- EClass'es for the objects that will be checked by this check. May not be- null
 
 - 
complexitypublic BasicCheck.CheckConfigurer complexity(CheckComplexity complexity) Defines the complexity of the check. The check subsystem takes this setting into the account while planning the check process to achieve maximum operativeness of checks- Parameters:
- complexity- The complexity to set. May not be- null
- Returns:
- The BasicCheck.CheckConfigurerfor configuration chaining. May not benull
 
 - 
descriptionpublic BasicCheck.CheckConfigurer description(String description) Sets the simple description for the check. This description may be overriden by the external description definition for the check (if defined), see theICheckdescription for details and typically is used as a fallback for non-supported languages- Parameters:
- description- The description to set. May not be- null
- Returns:
- The BasicCheck.CheckConfigurerfor configuration chaining. May not benull
 
 - 
issueTypepublic BasicCheck.CheckConfigurer issueType(IssueType issueType) Defines the type of issues provided by this check- Parameters:
- issueType- The type to set. May not be- null
- Returns:
- The BasicCheck.CheckConfigurerfor configuration chaining. May not benull
 
 - 
parameterpublic BasicCheck.CheckParameterBuilder parameter(String name, Class<?> type, String defaultValue, String title) Defines a parameter of the check. The parameter will be available on the check preferences page for the editing and its value will be accessible during the check via theICheckParametersExample: add Integer parameter to the check:
 ...
   builder.topObject(CATALOG).
     MIN_LENGTH_PARAMETER_NAME, Integer.class, "8", Messages.CatalogCodeLengthCheck_MinLengthParameter_Title).
 ...- Parameters:
- name- The name of the parameter. May not be- null. Must be unique among other parameters being defined for this check. In case if the name is not unqiue any arbitrary parameter definition may be selected as final parameter definition
- type- The type of the parameter. May not be- null. The following set of the parameter types are supported:
 - Boolean - supported values are: True, False, TRUE, FALSE
- Integer - matches requirements of the Integer.valueOf(String)
- Long -  - matches requirements of the Long.valueOf(String)
- Double - supports dot separated format (XXXX.YYYY)
- String - any generic string
 
- defaultValue- The default value (as String). May be- nullor empty. See the type parameter for the available values.
- title- The title of the parameter to display to the user in the check preferences page. May be- nullor empty
- Returns:
- The BasicCheck.CheckParameterBuilderfor configuration chaining. May not benull
 
 - 
severitypublic BasicCheck.CheckConfigurer severity(IssueSeverity severity) Defines the default severity of issues provided by this check- Parameters:
- severity- The severity to set. May not be- null
- Returns:
- The BasicCheck.CheckConfigurerfor configuration chaining. May not benull
 
 - 
titlepublic BasicCheck.CheckConfigurer title(String title) Defines the check title. The title is being displayed in the check tree for easier navigation- Parameters:
- title- The title to set. May not be- null
- Returns:
- The BasicCheck.CheckConfigurerfor configuration chaining. May not benull
 
 
- 
 
-