Class BasicCheck.ResultAcceptor

java.lang.Object
com.e1c.g5.v8.dt.check.components.BasicCheck.ResultAcceptor
Enclosing class:
BasicCheck<CT>

public static final class BasicCheck.ResultAcceptor extends Object
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 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 object
    void
    addIssue(String message, Object target)
    Adds issue associated with the given target object and feature
    void
    addIssue(String message, Object target, org.eclipse.emf.ecore.EStructuralFeature feature)
    Adds issue associated with the given target object and feature
    void
    addIssue(String message, Object target, org.eclipse.emf.ecore.EStructuralFeature manyFeature, int index)
    Adds issue associated with the given target object and feature
    void
    addIssue(String message, org.eclipse.emf.ecore.EStructuralFeature feature)
    Adds issue associated with the given feature
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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 be null
    • addIssue

      public void addIssue(String message)
      Adds a message-only issue for the context object
      Parameters:
      issue - The issue message. May not be null
    • 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, not null
      feature - The target object feacture, not null
    • 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, not null
      manyFeature - The target object feature, not null
      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, not null
      target - The target object, not null
      feature - The target object feacture, not null
    • addIssue

      public void addIssue(String message, Object target)
      Adds issue associated with the given target object and feature
      Parameters:
      message - The issue's message, not null
      target - The target object, not null
    • 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, not null
      target - The target object, not null
      feature - The target object feacture, not null
    • 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 be null