Package com.e1c.g5.v8.dt.ql.check
Class QlBasicDelegateCheck
java.lang.Object
com.e1c.g5.v8.dt.check.components.BasicCheck
com.e1c.g5.v8.dt.ql.check.QlBasicDelegateCheck
- All Implemented Interfaces:
ITopObjectFilter
,ICheck
Basic form QL check. Delelopers should use it to perform easier validations of dynamic list queries
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static final class
The owner of the query.Nested classes/interfaces inherited from class com.e1c.g5.v8.dt.check.components.BasicCheck
BasicCheck.CheckConfigurer, BasicCheck.CheckParameterBuilder, BasicCheck.ContainmentConfigurationBuilder, BasicCheck.DelegateCheckConfigurationBuilder, BasicCheck.ModuleConfigurationBuilder, BasicCheck.ResultAcceptor, BasicCheck.TopObjectConfigurationBuilder, BasicCheck.TopObjectFeatureConfigurationBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
check
(Object object, BasicCheck.ResultAcceptor resultAcceptor, ICheckParameters parameters, org.eclipse.core.runtime.IProgressMonitor progressMonitor) The method that performs the check.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.static void
static void
static void
Internal APIstatic void
setResultAcceptor
(BiFunction<QlBasicDelegateCheck.QueryOwner, BasicCheck.ResultAcceptor, QlBasicDelegateCheck.IQlResultAcceptor> resultAcceptorSupplier) Internal APIMethods inherited from class com.e1c.g5.v8.dt.check.components.BasicCheck
check, check, configureCheck, configureContextCollector, isCheckApplicable, postConfigureContextCollector
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.e1c.g5.v8.dt.check.ICheck
check, getCheckId, prepareContext, prepareContext
-
Constructor Details
-
QlBasicDelegateCheck
public QlBasicDelegateCheck()
-
-
Method Details
-
resetOwner
public static void resetOwner() -
resetResultAcceptor
public static void resetResultAcceptor() -
setOwner
Internal API- Parameters:
owner
-
-
setResultAcceptor
public static void setResultAcceptor(BiFunction<QlBasicDelegateCheck.QueryOwner, BasicCheck.ResultAcceptor, QlBasicDelegateCheck.IQlResultAcceptor> resultAcceptorSupplier) Internal API- Parameters:
owner
-
-
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 checkIProgressMonitor.isCanceled()
periodically during long-running operations.- Overrides:
check
in classBasicCheck
- Parameters:
object
- The object to check, notnull
resultAcceptor
- Result acceptor, notnull
parameters
- The set of check execution parameters taken from check settings, notnull
progressMonitor
- Current check progress monitor, notnull
-
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 benull
queryOwner
- The corresponding object and feature that holds the query/query link. May not benull
resultAceptor
- The check's result acceptor. May not benull
parameters
- The accessor of the check's parameters. May not benull
progressMonitor
- The progress monitor. It should be checked for the cancelling in case of the long/complex checks. May not benull
-