Class BasicCheck.ResultAcceptor
- java.lang.Object
-
- com.e1c.g5.v8.dt.check.components.BasicCheck.ResultAcceptor
-
- Enclosing class:
- BasicCheck
public static final class BasicCheck.ResultAcceptor extends Object
Accepts results of the check in form ofIssue
'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 theICheck
directly instead ofBasicCheck
This class is instantiated by the ACC subsystem and is not intended for the direct instantiation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIssue(Issue issue)
Adds the issue as the result of the check for the context object.void
addIssue(String message)
Adds a message-only issue for the context objectvoid
addIssue(String message, Object target)
Adds issue associated with the given target object and featurevoid
addIssue(String message, Object target, org.eclipse.emf.ecore.EStructuralFeature feature)
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
addIssue(String message, org.eclipse.emf.ecore.EStructuralFeature feature)
Adds issue associated with the given featurevoid
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.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 Detail
-
addIssue
public void addIssue(Issue issue)
Adds the issue as the result of the check for the context object.- Parameters:
issue
- The issue to add. May not benull
-
addIssue
public void addIssue(String message)
Adds a message-only issue for the context object- Parameters:
issue
- The issue message. May not benull
-
addIssue
public void addIssue(String message, org.eclipse.emf.ecore.EStructuralFeature feature)
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
public void addIssue(String message, Object target)
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
public 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. 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
-
-