Interface IValidationResult
-
- All Known Implementing Classes:
AggregateValidationResult
,FindingCollectingConstraintValidationHandler
public interface IValidationResult
Provides data that is the result of a completed content validation.
-
-
Field Summary
Fields Modifier and Type Field Description static IValidationResult
PASSING_RESULT
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description List<? extends IValidationFinding>
getFindings()
Get the list of validation findings, which may be empty.IConstraint.Level
getHighestSeverity()
Get the highest finding severity level for the validation.default boolean
isPassing()
Determines if the result of validation was valid or not.
-
-
-
Field Detail
-
PASSING_RESULT
@NonNull static final IValidationResult PASSING_RESULT
-
-
Method Detail
-
isPassing
default boolean isPassing()
Determines if the result of validation was valid or not.- Returns:
true
if the result was determined to be valid orfalse
otherwise
-
getHighestSeverity
@NonNull IConstraint.Level getHighestSeverity()
Get the highest finding severity level for the validation. The levelIConstraint.Level.INFORMATIONAL
will be returned if no validation findings were identified.- Returns:
- the highest finding severity level
-
getFindings
@NonNull List<? extends IValidationFinding> getFindings()
Get the list of validation findings, which may be empty.- Returns:
- the list
-
-