Class AggregateValidationResult
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.model.validation.AggregateValidationResult
-
- All Implemented Interfaces:
IValidationResult
public final class AggregateValidationResult extends Object implements IValidationResult
-
-
Field Summary
-
Fields inherited from interface gov.nist.secauto.metaschema.core.model.validation.IValidationResult
PASSING_RESULT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IValidationResult
aggregate(IValidationResult result)
static IValidationResult
aggregate(IValidationResult... results)
static IValidationResult
aggregate(Stream<? extends IValidationFinding> findingStream)
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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.validation.IValidationResult
isPassing
-
-
-
-
Method Detail
-
aggregate
public static IValidationResult aggregate(@NonNull IValidationResult result)
-
aggregate
public static IValidationResult aggregate(@NonNull IValidationResult... results)
-
aggregate
public static IValidationResult aggregate(@NonNull Stream<? extends IValidationFinding> findingStream)
-
getHighestSeverity
public IConstraint.Level getHighestSeverity()
Description copied from interface:IValidationResult
Get the highest finding severity level for the validation. The levelIConstraint.Level.INFORMATIONAL
will be returned if no validation findings were identified.- Specified by:
getHighestSeverity
in interfaceIValidationResult
- Returns:
- the highest finding severity level
-
getFindings
public List<? extends IValidationFinding> getFindings()
Description copied from interface:IValidationResult
Get the list of validation findings, which may be empty.- Specified by:
getFindings
in interfaceIValidationResult
- Returns:
- the list
-
-