Interface ICheckResultAcceptor

All Known Implementing Classes:
CheckResultAcceptor

public interface ICheckResultAcceptor
Accepts the check results (if any) during the process of the check.
. The instance of the acceptor is being supplied by the ACC engine into the ICheck.check(Object, ICheckResultAcceptor, ICheckParameters, org.eclipse.core.runtime.IProgressMonitor). So this interface shouldn't be implemented by check developers
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addIssue(Object context, Issue issue)
    Adds an issue for a specific object.
    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

      void addIssue(Object context, Issue issue)
      Adds an issue for a specific object. The coordinates in the issue should match the context object otherwise the system will raise an error during the validation or will be unable to navigate to the problem later.
      Parameters:
      context - The object the issue will be associated with. The marker of the issue will contain coordinates of this object in navigable form (link) as well. May not be null
      issue - Issue to add. May not be null
    • delegateChecks

      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