Package com.solibri.smc.api.checking
Interface ResultFactory
public interface ResultFactory
Provides a way to create checking results and result categories.
- Since:
- 9.10.2
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ResultFactory
This instance can be used to create categories that are not related to just a single rule instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns a result indicating that the component has a problem.create
(String name, String description, ResultCategory category) Returns a result indicating that the component has a problem.create
(String name, String description, Collection<ResultCategory> categories) Returns a result indicating that the component has a problem.createCategory
(String uniqueName, String displayName) Creates a new checking result category.createCategory
(String uniqueName, String displayName, ResultCategory parent) Creates a new checking result category.boolean
hasCategory
(String uniqueName) Returns true if a category with the given unique name exists.boolean
Returns true if a result with the given unique key exists.
-
Field Details
-
INSTANCE
This instance can be used to create categories that are not related to just a single rule instance. This way the categories are not created in a rule context.- Since:
- 9.10.8
-
-
Method Details
-
hasCategory
Returns true if a category with the given unique name exists.- Parameters:
uniqueName
- the unique name identifying a category- Returns:
- true if a category with the given unique name exists
- Since:
- 24.12.0
-
hasResult
Returns true if a result with the given unique key exists.- Parameters:
uniqueKey
- the unique key identifying a result- Returns:
- true if a result with the given unique key exists.
- Since:
- 24.12.0
-
createCategory
Creates a new checking result category. If uniqueName is already used, returns the existing category.- Parameters:
uniqueName
- the unique name identifying a categorydisplayName
- the display name of the category- Returns:
- the newly created category
- Since:
- 9.10.2
-
createCategory
Creates a new checking result category. If uniqueName is already used, returns the existing category.- Parameters:
uniqueName
- the unique name identifying a categorydisplayName
- the display name of the categoryparent
- the parent category, must be non-null- Returns:
- the newly created category
- Since:
- 9.10.8
-
create
Returns a result indicating that the component has a problem.- Parameters:
name
- the name of the resultdescription
- the description of the result- Returns:
- the result
- Since:
- 9.10.2
-
create
Returns a result indicating that the component has a problem.- Parameters:
name
- the name of the resultdescription
- the description of the resultcategory
- the category this result will belong to- Returns:
- the result
- Since:
- 9.10.2
-
create
Returns a result indicating that the component has a problem.- Parameters:
name
- the name of the resultdescription
- the description of the resultcategories
- the categories this result will belong to- Returns:
- the result
- Since:
- 9.10.2
-