- All Known Implementing Classes:
AggregateValidationResult,FindingCollectingConstraintValidationHandler
public interface IValidationResult
Provides data that is the result of a completed content validation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IValidationResultA validation result indicating no validation errors were found. -
Method Summary
Modifier and TypeMethodDescriptionList<? extends IValidationFinding>Get the list of validation findings, which may be empty.Get the highest finding severity level for the validation.default booleanDetermines if the result of validation was valid or not.
-
Field Details
-
PASSING_RESULT
A validation result indicating no validation errors were found.
-
-
Method Details
-
isPassing
default boolean isPassing()Determines if the result of validation was valid or not.- Returns:
trueif the result was determined to be valid orfalseotherwise
-
getHighestSeverity
Get the highest finding severity level for the validation. The levelIConstraint.Level.INFORMATIONALwill be returned if no validation findings were identified.- Returns:
- the highest finding severity level
-
getFindings
Get the list of validation findings, which may be empty.- Returns:
- the list
-