public interface CheckingSelection
ComponentSelector
to be retrieved and marked as
checked. Every component selected for checking must be marked as checked by the end of the Rule.check(CheckingSelection, ResultFactory)
method execution. Can be used during pre check and check phases.Modifier and Type | Method and Description |
---|---|
void |
fail(Collection<? extends Component> components,
Result result)
Mark the specified components as checked and register a failure described by the specified
Result . |
void |
fail(Component component,
Result result)
Mark a component as checked and register a failure described by the specified
Result . |
Set<Component> |
getRemaining()
Get the components that have been selected for checking but are still not checked.
|
boolean |
isEmpty()
Returns true if this selection is empty.
|
void |
pass(Collection<? extends Component> components)
Mark the specified components as checked, without creating any failure.
|
void |
pass(Component component)
Mark a component as checked, without creating any failure.
|
void |
passRemaining()
Mark all the still unchecked components as checked, without creating any additional failure.
|
void pass(Component component)
component
- the checked componentvoid pass(Collection<? extends Component> components)
components
- the checked componentsvoid fail(Component component, Result result)
Result
.component
- the checked componentresult
- the result that causes the component to failvoid fail(Collection<? extends Component> components, Result result)
Result
.components
- the checked componentsresult
- the result that causes the components to failvoid passRemaining()
boolean isEmpty()
Copyright © 2019 Solibri, Inc.. All rights reserved.