Module dev.metaschema.core
Class AggregateValidationResult
java.lang.Object
dev.metaschema.core.model.validation.AggregateValidationResult
- All Implemented Interfaces:
IValidationResult
Provides the means to aggregate multiple validation result sets into a single
result set.
-
Field Summary
Fields inherited from interface dev.metaschema.core.model.validation.IValidationResult
PASSING_RESULT -
Method Summary
Modifier and TypeMethodDescriptionstatic IValidationResultaggregate(IValidationResult... results) Aggregate multiple provided results into a single result set.List<? extends IValidationFinding>Get the list of validation findings, which may be empty.Get the highest finding severity level for the validation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.metaschema.core.model.validation.IValidationResult
isPassing
-
Method Details
-
aggregate
Aggregate multiple provided results into a single result set.- Parameters:
results- the results to aggregate- Returns:
- the combined results
-
getHighestSeverity
Description copied from interface:IValidationResultGet the highest finding severity level for the validation. The levelIConstraint.Level.INFORMATIONALwill be returned if no validation findings were identified.- Specified by:
getHighestSeverityin interfaceIValidationResult- Returns:
- the highest finding severity level
-
getFindings
Description copied from interface:IValidationResultGet the list of validation findings, which may be empty.- Specified by:
getFindingsin interfaceIValidationResult- Returns:
- the list
-