Package com.solibri.smc.api.checking
Interface Checking
public interface Checking
Checking provides access to information related to checking activities, such as whether checking has been done, and
what the results are.
- Since:
- 9.10.6
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Describes the state of the checking. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Error message forCheckingInterruptedException
.static final String
Error message forProjectNotOpenException
. -
Method Summary
Modifier and TypeMethodDescriptionReturns results of the checking.getResults
(Rule rule) Returns results of the checking for a givenRule
.getState()
Returns the state of the checking.runChecking
(boolean checkSelected) Runs checking and returns the checking results.
-
Field Details
-
INTERRUPTION_IN_CHECKING
Error message forCheckingInterruptedException
.- Since:
- 9.12.7
- See Also:
-
NO_PROJECT_IS_OPENED_TO_RUN_CHECKING
Error message forProjectNotOpenException
.- Since:
- 9.12.7
- See Also:
-
-
Method Details
-
getState
Checking.State getState()Returns the state of the checking.- Returns:
- the state
- Since:
- 9.10.6
-
getResults
Collection<Result> getResults()Returns results of the checking. When checking is ongoing, the results returned might be empty. If you want to get results for a currently running rule, usegetResults(Rule)
instead.- Returns:
- results of the checking
- Since:
- 9.10.6
-
getResults
Returns results of the checking for a givenRule
.- Parameters:
rule
- the rule for which to get results- Returns:
- results of the checking for a given rule
- Since:
- 9.12.0
-
runChecking
Collection<Result> runChecking(boolean checkSelected) throws ProjectNotOpenException, CheckingInterruptedException Runs checking and returns the checking results.- Parameters:
checkSelected
- Runs checking in selected mode if true else runs normal checking- Returns:
- Collection of checking results
- Throws:
ProjectNotOpenException
- Project not opened exceptionCheckingInterruptedException
- Interruption during checking- Since:
- 9.12.7
-