Class QlBasicDelegateCheck

  • All Implemented Interfaces:
    ITopObjectFilter, ICheck

    public abstract class QlBasicDelegateCheck
    extends BasicCheck
    Basic form QL check. Delelopers should use it to perform easier validations of dynamic list queries
    • Constructor Detail

      • QlBasicDelegateCheck

        public QlBasicDelegateCheck()
    • Method Detail

      • resetOwner

        public static void resetOwner()
      • resetResultAcceptor

        public static void resetResultAcceptor()
      • check

        protected final void check​(Object object,
                                   BasicCheck.ResultAcceptor resultAcceptor,
                                   ICheckParameters parameters,
                                   org.eclipse.core.runtime.IProgressMonitor progressMonitor)
        Description copied from class: BasicCheck
        The method that performs the check. Check results (issues) need to be placed into the result acceptor. Validation may be cancelled by a user. Complex implemantations should take this into the account and check IProgressMonitor.isCanceled() periodically during long-running operations.
        Specified by:
        check in class BasicCheck
        Parameters:
        object - The object to check, not null
        resultAcceptor - Result acceptor, not null
        parameters - The set of check execution parameters taken from check settings, not null
        progressMonitor - Current check progress monitor, not null
      • checkQlObject

        protected abstract void checkQlObject​(org.eclipse.emf.ecore.EObject currentNode,
                                              QlBasicDelegateCheck.QueryOwner queryOwner,
                                              QlBasicDelegateCheck.IQlResultAcceptor resultAceptor,
                                              ICheckParameters parameters,
                                              org.eclipse.core.runtime.IProgressMonitor progressMonitor)
        Checks the documentation comment model object. Check developers should implement their main check logic by overriding this method
        Parameters:
        currentNode - The checked node of the QL model. May not be null
        queryOwner - The corresponding object and feature that holds the query/query link. May not be null
        resultAceptor - The check's result acceptor. May not be null
        parameters - The accessor of the check's parameters. May not be null
        progressMonitor - The progress monitor. It should be checked for the cancelling in case of the long/complex checks. May not be null