Package com._1c.g5.v8.dt.bsl.validation
Interface IExternalBslValidator
-
- All Known Implementing Classes:
FormAndCommandExportMethodValidator
@Deprecated public interface IExternalBslValidator
Deprecated.Use check infrastructure for new validation scenariosClass for expanding validation in Built-in language module contents.
The user should implement methodvalidate(EObject, CustomValidationMessageAcceptor), which can have special annotations. Method supports this annotations:CheckType.NORMALandCheckType.EXPENSIVE - validation will be running only from context menu of editor
CheckType.FAST - validation will be running in build phase
Created implementation should be registered through the extention point with id "com._1c.g5.v8.dt.bsl.externalBslValidator"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 returntrueorfalse} }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description booleanneedValidation(org.eclipse.emf.ecore.EObject object)Deprecated.Check that theobjectneed validation by this implementation ofIExternalBslValidatordefault voidvalidate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor)Deprecated.Will be deleted in version 1.15.default voidvalidate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor, org.eclipse.xtext.util.CancelIndicator monitor)Deprecated.Validates modelobjectof Built-in language
-
-
-
Method Detail
-
validate
default void validate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor, org.eclipse.xtext.util.CancelIndicator monitor)Deprecated.Validates modelobjectof Built-in language- Parameters:
object- validating object, can't benullmessageAcceptor- special collector with useful method for adding new validation messages, seeCustomValidationMessageAcceptor, can't benullmonitor- actualCancelIndicatorfor canceled validation process, cannot benull
-
validate
@Deprecated default void validate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor)
Deprecated.Will be deleted in version 1.15. Use methodvalidate(EObject object, CustomValidationMessageAcceptor messageAcceptor, CancelIndicator monitor)with canceled indicatorValidates modelobjectof Built-in language- Parameters:
object- validating object, can't benullmessageAcceptor- special collector with useful method for adding new validation messages, seeCustomValidationMessageAcceptor, can't benull
-
needValidation
boolean needValidation(org.eclipse.emf.ecore.EObject object)
Deprecated.Check that theobjectneed validation by this implementation ofIExternalBslValidator- Parameters:
object- checking object, can't benull- Returns:
trueifobjectneed validation by this implementation ofIExternalBslValidator,falseotherwise
-
-