Package com._1c.g5.v8.dt.bsl.validation
Class FormAndCommandExportMethodValidator
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.validation.FormAndCommandExportMethodValidator
-
- All Implemented Interfaces:
IExternalBslValidator
public class FormAndCommandExportMethodValidator extends Object implements IExternalBslValidator
This implementation ofIExternalBslValidator
expands validation for Bsl Form and Command module.
Checked that there is no exports methods in this type of module
-
-
Field Summary
Fields Modifier and Type Field Description static String
ERROR_CODE
-
Constructor Summary
Constructors Constructor Description FormAndCommandExportMethodValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
needValidation(org.eclipse.emf.ecore.EObject object)
Check that theobject
need validation by this implementation ofIExternalBslValidator
void
validate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor)
Validates modelobject
of Built-in languagevoid
validate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor, org.eclipse.xtext.util.CancelIndicator monitor)
Validates modelobject
of Built-in language
-
-
-
Field Detail
-
ERROR_CODE
public static final String ERROR_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
public void validate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor, org.eclipse.xtext.util.CancelIndicator monitor)
Description copied from interface:IExternalBslValidator
Validates modelobject
of Built-in language- Specified by:
validate
in interfaceIExternalBslValidator
- Parameters:
object
- validating object, can't benull
messageAcceptor
- special collector with useful method for adding new validation messages, seeCustomValidationMessageAcceptor
, can't benull
monitor
- actualCancelIndicator
for canceled validation process, cannot benull
-
validate
public void validate(org.eclipse.emf.ecore.EObject object, CustomValidationMessageAcceptor messageAcceptor)
Description copied from interface:IExternalBslValidator
Validates modelobject
of Built-in language- Specified by:
validate
in interfaceIExternalBslValidator
- Parameters:
object
- validating object, can't benull
messageAcceptor
- special collector with useful method for adding new validation messages, seeCustomValidationMessageAcceptor
, can't benull
-
needValidation
public boolean needValidation(org.eclipse.emf.ecore.EObject object)
Description copied from interface:IExternalBslValidator
Check that theobject
need validation by this implementation ofIExternalBslValidator
- Specified by:
needValidation
in interfaceIExternalBslValidator
- Parameters:
object
- checking object, can't benull
- Returns:
true
ifobject
need validation by this implementation ofIExternalBslValidator
,false
otherwise
-
-