public interface Result
ResultFactory
interface.Modifier and Type | Method and Description |
---|---|
Collection<ResultCategory> |
getCategories()
Returns the categories this result belongs to.
|
String |
getDescription()
Returns the description of the result.
|
Collection<? extends Component> |
getInvolvedComponents()
Returns the components associated with the result.
|
Optional<String> |
getLocation()
Returns the descriptive location of the result.
|
String |
getName()
Returns the name of the result.
|
Severity |
getSeverity()
Returns the severity of the result.
|
String |
getUniqueKey()
Returns the unique key of the result.
|
List<Consumer<Visualization>> |
getVisualizationCreators()
Returns the visualization creators for this result.
|
boolean |
hasCustomUniqueKey()
Returns true if this result's unique key has been overridden.
|
boolean |
hasDefaultVisualization()
Returns true if this result's visualization is based on the default visualization.
|
Result |
withCategories(Collection<? extends ResultCategory> categories)
Returns a copy of this result but assigned to the specified categories.
|
Result |
withCategory(ResultCategory category)
Returns a copy of this result but assigned to the specified category.
|
Result |
withCustomUniqueKey(String uniqueKey)
Returns a copy of this result with the unique key identifying it replaced by a custom one.
|
Result |
withInvolvedComponent(Component component)
Returns a copy of this result with the specified involved component added.
|
Result |
withInvolvedComponents(Collection<? extends Component> component)
Returns a copy of this result with the specified involved component added.
|
Result |
withLocation(String location)
Returns a copy of this result with a descriptive location information.
|
Result |
withReplacedVisualization(Consumer<Visualization> visualizationCreator)
Returns a copy of this result with the specified visualization creator replacing the default one and any other
previously set.
|
Result |
withSeverity(Severity severity)
Returns a copy of this result with the specified severity.
|
Result |
withVisualization(Consumer<Visualization> visualizationCreator)
Returns a copy of this result with the specified visualization creator added.
|
Result withLocation(String location)
location
- the descriptive location informationResult withSeverity(Severity severity)
severity
- the specified severityResult withInvolvedComponent(Component component)
component
- the specified involved componentResult withInvolvedComponents(Collection<? extends Component> component)
component
- the specified involved componentResult withVisualization(Consumer<Visualization> visualizationCreator)
visualizationCreator
- the specified visualization creatorResult withReplacedVisualization(Consumer<Visualization> visualizationCreator)
visualizationCreator
- the specified visualization creatorResult withCustomUniqueKey(String uniqueKey)
uniqueKey
- the custom unique keyResult withCategory(ResultCategory category)
category
- the specified categoryResult withCategories(Collection<? extends ResultCategory> categories)
categories
- the specified categoriesboolean hasDefaultVisualization()
withReplacedVisualization(Consumer)
has been called, replacing the default visualization with an
empty one as a base for this result's visualization.boolean hasCustomUniqueKey()
String getName()
String getDescription()
String getUniqueKey()
Optional<String> getLocation()
List<Consumer<Visualization>> getVisualizationCreators()
ResultCategory
Collection<? extends Component> getInvolvedComponents()
Severity getSeverity()
Collection<ResultCategory> getCategories()
Copyright © 2019 Solibri, Inc.. All rights reserved.