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 TypeMethodDescriptiongetCheckedComponents
(Rule rule) Returns the components that have been checked with a givenRule
.getFailedComponents
(Rule rule) Returns the components that have checked with a givenRule
and have failed the checking.getFailedComponents
(Rule rule, Decision decision, Severity severity) getPassedComponents
(Rule rule) Returns the components that have checked with a givenRule
and have passed the checking.Returns 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
-
getCheckedComponents
Returns the components that have been checked with a givenRule
.- Parameters:
rule
- the rule for where to get the checked components- Returns:
- the components that have been checked with a given rule
- Since:
- 24.12.0
-
getPassedComponents
Returns the components that have checked with a givenRule
and have passed the checking.- Parameters:
rule
- the rule for where to get the passed components- Returns:
- the components that have passed the checking with a given rule
- Since:
- 24.12.0
-
getFailedComponents
Returns the components that have checked with a givenRule
and have failed the checking.- Parameters:
rule
- the rule for where to get the failed components- Returns:
- the components that have failed the checking of a given rule
- Since:
- 24.12.0
-
getFailedComponents
Returns the components that have been checked with a givenRule
and have a specificDecision
andSeverity
.- Parameters:
rule
- the rule for where to get the failed componentsdecision
- the decision to filter the components or null to get components with any decisionseverity
- the severity to filter the components or null to get components with any severity- Returns:
- the components that have been checked with a given rule and have a specific decision
- Since:
- 24.12.0
-
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
-