Package com.e1c.g5.v8.dt.internal.check
Class CheckResultAcceptor
java.lang.Object
com.e1c.g5.v8.dt.internal.check.CheckResultAcceptor
- All Implemented Interfaces:
ICheckResultAcceptor
ICheckResultAcceptor
implementation that accepta issues for specified objects and stores them in memory
until the check is complete and issues are processed by the check executor
Not a part of a public API, users cannot extend this class as the set of supported issues is fixed and cannot be extended
by design.
The calling infrastructure ensures thread safety so there is no need in synhronization.-
Constructor Summary
ConstructorsConstructorDescriptionCheckResultAcceptor
(ISuppressSettingsManager suppressManager, CheckUid checkUid) Constructs an acceptor instanceCheckResultAcceptor
(ISuppressSettingsManager suppressManager, LanguageSuppressionContext suppressionContext, CheckUid checkUid) Constructs an acceptor instance -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Iterable<?>
Gets the supplied delegated model iterable, if suppliedGets the collected issues mapped to context objects
-
Constructor Details
-
CheckResultAcceptor
Constructs an acceptor instance- Parameters:
suppressManager
- Suppress manager, cannot benull
checkId
- , Check ID, cannot benull
-
CheckResultAcceptor
public CheckResultAcceptor(ISuppressSettingsManager suppressManager, LanguageSuppressionContext suppressionContext, CheckUid checkUid) Constructs an acceptor instance- Parameters:
suppressManager
- Suppress manager, cannot benull
checkId
- , Check ID, cannot benull
-
-
Method Details
-
addIssue
Description copied from interface:ICheckResultAcceptor
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.- Specified by:
addIssue
in interfaceICheckResultAcceptor
- 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 benull
issue
- Issue to add. May not benull
-
delegateChecks
Description copied from interface:ICheckResultAcceptor
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- Specified by:
delegateChecks
in interfaceICheckResultAcceptor
- Parameters:
delegatedModelIterable
- The iterable that defines the iteration through the subsidiary model. May not benull
-
getDelegatedModelIterable
Gets the supplied delegated model iterable, if supplied- Returns:
- The delegated model in the form of the iterable, may be
null
if the check doesn't need to delegate checks to subsidiary checks
-
getIssues
Gets the collected issues mapped to context objects- Returns:
- The map of issues, may not be
null
, may be empty
-