Class ValidationInitializerUtil


  • public final class ValidationInitializerUtil
    extends java.lang.Object
    • Method Detail

      • initializeValidationWithRegisteredConstraintsOnScope

        public static IValidationEngine initializeValidationWithRegisteredConstraintsOnScope​(QueryScope scope,
                                                                                             java.lang.String editorId)
        Initializes a new validation engine implementing the IValidationEngine interface on the provided Notifier instance with the constrains specified for the given editor Id.
        Parameters:
        scope - The Notifier object on which the validation engine should be initialized.
        editorId - An editor Id for which we wish to use the registered constraint specifications at the org.eclipse.viatra.addon.livevalidation.runtime.constraintspecification extension point.
        Returns:
        The initialized validation engine.