Class BasicCheck.CheckConfigurer
- java.lang.Object
- 
- com.e1c.g5.v8.dt.check.components.BasicCheck.CheckConfigurer
 
- 
- Enclosing class:
- BasicCheck
 
 public static final class BasicCheck.CheckConfigurer extends Object The root object of the simplified check configuration based on the EMF model structure definition. A developer should configure the tracking of specific model features/modules changes using the set of fixed rules.
 The check developer could define the following set of check performance rules/data:
 - Set of model top objects change tracking rules using the EClass of the corresponding top object via
    the call of the topObject(EClass)method. See theBasicCheck.TopObjectConfigurationBuilderfor the details
- The tracking of all modules changes via the call of the module()method. See theBasicCheck.ModuleConfigurationBuilderfor the details
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicCheck.CheckConfigurercomplexity(CheckComplexity complexity)Defines the complexity of the check.BasicCheck.CheckConfigurercriticalDataIntegrityCheck()Enables the critical data integrity check modeBasicCheck.DelegateCheckConfigurationBuilderdelegate(Class<?>... delegatedClasses)Marks this check as a delegated check for all object types stated in the delegatedClasses argument.
 This check is being excluded from the typical check flow and performs only delegated checks instead.BasicCheck.CheckConfigurerdescription(String description)Sets the simple description for the check.BasicCheck.CheckConfigurerdisable()Disables the check by defaultBasicCheck.CheckConfigurerenableProtectedObjectCheck()Enables the protected object check mode (disabled by default)BasicCheck.CheckConfigurerextension(IBasicCheckExtension extension)Adds an extension to the checkBasicCheck.CheckConfigurerissueType(IssueType issueType)Defines the type of issues provided by this checkBasicCheck.ModuleConfigurationBuildermodule()Declares the participation of the check into the language module check process.BasicCheck.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.BasicCheck.TopObjectConfigurationBuildertopObject(org.eclipse.emf.ecore.EClass topObjectEClass)Defines the check running rule on change of model top object data.
 
- 
- 
- 
Method Detail- 
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
 
 - 
delegatepublic BasicCheck.DelegateCheckConfigurationBuilder delegate(Class<?>... delegatedClasses) Marks this check as a delegated check for all object types stated in the delegatedClasses argument.
 This check is being excluded from the typical check flow and performs only delegated checks instead. It's being called in case if some other check provides delegated data model via theICheckResultAcceptor.delegateChecks(Iterable), and the data in this model matches at least one of the types priovided via the delegatedClasses argument.- Parameters:
- delegatedClasses- The set of processed object types for this delegated check. May not be empty or- null
- Returns:
- The BasicCheck.DelegateCheckConfigurationBuilderfor the 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
 
 - 
extensionpublic BasicCheck.CheckConfigurer extension(IBasicCheckExtension extension) Adds an extension to the check- Parameters:
- extension- The extension to add. 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
 
 - 
modulepublic BasicCheck.ModuleConfigurationBuilder module() Declares the participation of the check into the language module check process. Use the returned builder to configure details of the check pariticipation.
 Example: State that the check pariticipates in the language module check:
 ...
   builder.module().
 ... In case if no further configuration is defined for the module, theModuleitself will be a target for a check run- Returns:
- The BasicCheck.ModuleConfigurationBuilderfor the further configuration. Nevernull
 
 - 
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
 
 - 
topObjectpublic BasicCheck.TopObjectConfigurationBuilder topObject(org.eclipse.emf.ecore.EClass topObjectEClass) Defines the check running rule on change of model top object data. The object is defined by the correspondingEClass.
 The rest of check launching configuration for this object should be done via the object being returned by this method
 Example: Start the configuration of check running rules for the Catalog object:
 ...
   builder.topObject(CATALOG).
 ...- Parameters:
- topObjectEClass- The- EClassof the target top object. May not be- null
- Returns:
- BasicCheck.TopObjectConfigurationBuilderbound to the context of the selected- EClassand ready for further configuration. May not be- null
 
 - 
disablepublic BasicCheck.CheckConfigurer disable() Disables the check by default- Returns:
- The BasicCheck.CheckConfigurerfor configuration chaining. May not benull
 
 - 
enableProtectedObjectCheckpublic BasicCheck.CheckConfigurer enableProtectedObjectCheck() Enables the protected object check mode (disabled by default)- Returns:
- The BasicCheck.CheckConfigurerfor configuration chaining. May not benull
 
 - 
criticalDataIntegrityCheckpublic BasicCheck.CheckConfigurer criticalDataIntegrityCheck() Enables the critical data integrity check mode- Returns:
- The BasicCheck.CheckConfigurerfor configuration chaining. May not benull
 
 
- 
 
-