public interface Rule
Modifier and Type | Method and Description |
---|---|
void |
check(CheckingSelection components,
ResultFactory resultFactory)
Called to implement the check phase.
|
default UIContainer |
getParametersUIDefinition()
Returns the container that defines the UI for the parameters view of this rule.
|
default void |
postCheck()
This is called once after the checking of components.
|
PreCheckResult |
preCheck(ComponentSelector components)
This method is called once before the actual checking of the components.
|
PreCheckResult preCheck(ComponentSelector components)
ComponentSelector
parameter. Additionally, a PreCheckResult
must be returned, reporting if the checking of this rule should continue to the next phase (with
PreCheckResult.createRelevant()
) or skipped (with PreCheckResult.createIrrelevant()
). In both
cases, a message can be added to document the result.components
- the CheckingSelection
to mark components as checkedvoid check(CheckingSelection components, ResultFactory resultFactory)
CheckingSelection
instance received as parameter, during the check phase.components
- the CheckingSelection
to mark components as checkedresultFactory
- the result factory used to create results for this ruledefault void postCheck()
default UIContainer getParametersUIDefinition()
Copyright © 2019 Solibri, Inc.. All rights reserved.