Class BasicCheck.ResultAcceptor
java.lang.Object
com.e1c.g5.v8.dt.check.components.BasicCheck.ResultAcceptor
- Enclosing class:
- BasicCheck<CT>
Accepts results of the check in form of
Issue
's. The result is automatically bound to the context object
of the check and cannot be changed. In case if you need the free navigation and reporting of issues - consider implementing
the ICheck
directly instead of BasicCheck
This class is instantiated by the ACC subsystem and is not intended for the direct instantiation.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the issue as the result of the check for the context object.void
Adds a message-only issue for the context objectvoid
Adds issue associated with the given target object and featurevoid
Adds issue associated with the given target object and featurevoid
addIssue
(String message, Object target, org.eclipse.emf.ecore.EStructuralFeature manyFeature, int index) Adds issue associated with the given target object and featurevoid
Adds issue associated with the given featurevoid
Adds issue for element with given index in feature collection and with the given message.void
delegateChecks
(Iterable<?> delegatedModelIterable) Delegates the further checks to the set of subsidiary checks by providing some derived model with means of its traversal in the form of the iterable.
-
Method Details
-
addIssue
Adds the issue as the result of the check for the context object.- Parameters:
issue
- The issue to add. May not benull
-
addIssue
Adds a message-only issue for the context object- Parameters:
issue
- The issue message. May not benull
-
addIssue
Adds issue associated with the given feature- Parameters:
message
- The issue's message, notnull
feature
- The target object feacture, notnull
-
addIssue
public void addIssue(String message, org.eclipse.emf.ecore.EStructuralFeature manyFeature, int index) Adds issue for element with given index in feature collection and with the given message.- Parameters:
message
- The issue's message, notnull
manyFeature
- The target object feature, notnull
index
- The index in feature collection. May not be negative
-
addIssue
public void addIssue(String message, Object target, org.eclipse.emf.ecore.EStructuralFeature feature) Adds issue associated with the given target object and feature- Parameters:
message
- The issue's message, notnull
target
- The target object, notnull
feature
- The target object feacture, notnull
-
addIssue
Adds issue associated with the given target object and feature- Parameters:
message
- The issue's message, notnull
target
- The target object, notnull
-
addIssue
public void addIssue(String message, Object target, org.eclipse.emf.ecore.EStructuralFeature manyFeature, int index) Adds issue associated with the given target object and feature- Parameters:
message
- The issue's message, notnull
target
- The target object, notnull
feature
- The target object feacture, notnull
-
delegateChecks
Delegates the further checks to the set of subsidiary checks by providing some derived model with means of its traversal in the form of the iterable. This behavior may be used to perform effective checks of non-standard models being created on the fly or taken from non-standard persistent stores. Delegated models are being traversed by the EDT check engine after the main check and applicable subsidiary checks are being applied- Parameters:
delegatedModelIterable
- The iterable that defines the iteration through the subsidiary model. May not benull
-