Package com.solibri.smc.api.checking
Interface ResultCategory
-
public interface ResultCategory
This interface defines a result category. This can be created through theResultFactory
interface.- Since:
- 9.10.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<Result>
getAllResults()
Returns all the results directly under this category or any child categories of any degree of nesting.Set<ResultCategory>
getChildCategories()
Returns the categories for which this category is the parent.String
getDisplayName()
Returns the display name for the category.Optional<ResultCategory>
getParentCategory()
Returns the parent result category of this result category if such exists.Set<Result>
getResults()
Returns all the results directly under this category.Optional<Slide>
getSlide()
Returns theSlide
related to this result category, if one exists.String
getUniqueName()
Returns the unique name that identifies the category.Optional<Slide>
setSlide(Slide slide)
Sets the relatedSlide
for this result category and returns the possible previous related slide.
-
-
-
Method Detail
-
getUniqueName
String getUniqueName()
Returns the unique name that identifies the category.- Returns:
- the unique name
- Since:
- 9.10.2
-
getDisplayName
String getDisplayName()
Returns the display name for the category.- Returns:
- the display name
- Since:
- 9.10.2
-
getParentCategory
Optional<ResultCategory> getParentCategory()
Returns the parent result category of this result category if such exists. If no parent category exists, this is a root category.- Returns:
- the parent category
- Since:
- 9.10.8
-
getChildCategories
Set<ResultCategory> getChildCategories()
Returns the categories for which this category is the parent. The returned Set cannot be modified.- Returns:
- the set of child categories
- Since:
- 9.10.8
-
getSlide
Optional<Slide> getSlide()
Returns theSlide
related to this result category, if one exists.- Returns:
- the related slide
- Since:
- 9.12.0
-
setSlide
Optional<Slide> setSlide(Slide slide)
Sets the relatedSlide
for this result category and returns the possible previous related slide.- Parameters:
slide
- the new slide- Returns:
- the previous related slide
- Since:
- 9.12.0
-
getResults
Set<Result> getResults()
Returns all the results directly under this category. Does not return results from child categories.- Returns:
- the results directly in this category
- Since:
- 9.12.0
-
-