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 SummaryFields Modifier and Type Field Description static ResultFactoryINSTANCEThis instance can be used to create categories that are not related to just a single rule instance.
- 
Method SummaryModifier and Type Method Description Resultcreate(String name, String description)Returns a result indicating that the component has a problem.Resultcreate(String name, String description, ResultCategory category)Returns a result indicating that the component has a problem.Resultcreate(String name, String description, Collection<ResultCategory> categories)Returns a result indicating that the component has a problem.ResultCategorycreateCategory(String uniqueName, String displayName)Creates a new checking result category.ResultCategorycreateCategory(String uniqueName, String displayName, ResultCategory parent)Creates a new checking result category.
- 
Field Details- 
INSTANCEThis 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- 
createCategoryCreates a new checking result category. If uniqueName is already used, returns the existing category.- Parameters:
- uniqueName- the unique name identifying a category
- displayName- the display name of the category
- Returns:
- the newly created category
- Since:
- 9.10.2
 
- 
createCategoryCreates a new checking result category. If uniqueName is already used, returns the existing category.- Parameters:
- uniqueName- the unique name identifying a category
- displayName- the display name of the category
- parent- the parent category, must be non-null
- Returns:
- the newly created category
- Since:
- 9.10.8
 
- 
createReturns a result indicating that the component has a problem.- Parameters:
- name- the name of the result
- description- the description of the result
- Returns:
- the result
- Since:
- 9.10.2
 
- 
createReturns a result indicating that the component has a problem.- Parameters:
- name- the name of the result
- description- the description of the result
- category- the category this result will belong to
- Returns:
- the result
- Since:
- 9.10.2
 
- 
createReturns a result indicating that the component has a problem.- Parameters:
- name- the name of the result
- description- the description of the result
- categories- the categories this result will belong to
- Returns:
- the result
- Since:
- 9.10.2
 
 
-