Interface IExternalBslValidator

All Known Implementing Classes:
FormAndCommandExportMethodValidator, StringLiteralAnnotationValidator

@Deprecated public interface IExternalBslValidator
Deprecated.
Use check infrastructure for new validation scenarios
Class for expanding validation in Built-in language module contents.
The user should implement method validate(EObject, CustomValidationMessageAcceptor), which can have special annotations. Method supports this annotations:
  • CheckType.NORMAL and CheckType.EXPENSIVE
  • - validation will be running only from context menu of editor
  • CheckType.FAST
  • - validation will be running in build phase
Example of implementation:
 public class SomeExternalBslValidator
   extends IExternalBslValidator;
 {
   @Check(CheckType.EXPENSIVE)
   public void validate(EObject object, CustomValidationMessageAcceptor messageAcceptor, CancelIndicator monitor)
   {
      //validation
   }

   public boolean needValidation(EObject object)
   {
      //checks condition for need to validate this object and return true or false
   }
 }
 
Created implementation should be registered through the extention point with id "com._1c.g5.v8.dt.bsl.externalBslValidator"
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    needValidation(org.eclipse.emf.ecore.EObject object)
    Deprecated.
    Check that the object need validation by this implementation of IExternalBslValidator
    default void
    validate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor)
    Deprecated.
    Will be deleted in version 1.15.
    default void
    validate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor, org.eclipse.xtext.util.CancelIndicator monitor)
    Deprecated.
    Validates model object of Built-in language
  • Method Details

    • validate

      default void validate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor, org.eclipse.xtext.util.CancelIndicator monitor)
      Deprecated.
      Validates model object of Built-in language
      Parameters:
      object - validating object, can't be null
      messageAcceptor - special collector with useful method for adding new validation messages, see CustomValidationMessageAcceptor, can't be null
      monitor - actual CancelIndicator for canceled validation process, cannot be null
    • validate

      @Deprecated default void validate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor)
      Deprecated.
      Will be deleted in version 1.15. Use method validate(EObject object, CustomValidationMessageAcceptor messageAcceptor, CancelIndicator monitor) with canceled indicator
      Validates model object of Built-in language
      Parameters:
      object - validating object, can't be null
      messageAcceptor - special collector with useful method for adding new validation messages, see CustomValidationMessageAcceptor, can't be null
    • needValidation

      boolean needValidation(org.eclipse.emf.ecore.EObject object)
      Deprecated.
      Check that the object need validation by this implementation of IExternalBslValidator
      Parameters:
      object - checking object, can't be null
      Returns:
      true if object need validation by this implementation of IExternalBslValidator, false otherwise