@ Nonnull @ ReturnsMutableCopy public static ICommonsList < SVRLFailedAssert > getAllFailedAssertionsMoreOrEqualSevereThan ( @ Nullable final SchematronOutputType aSchematronOutput , @ Nonnull final IErrorLevel aErrorLevel ) { final ICommonsList < SVRLFailedAssert > ret = new CommonsArrayList <> ( ) ; if ( aSchematronOutput != null ) for ( final Object aObj : aSchematronOutput . getActivePatternAndFiredRuleAndFailedAssert ( ) ) if ( aObj instanceof FailedAssert ) { final SVRLFailedAssert aFA = new SVRLFailedAssert ( ( FailedAssert ) aObj ) ; if ( aFA . getFlag ( ) . isGE ( aErrorLevel ) ) ret . add ( aFA ) ; } return ret ; }
Get a list of all failed assertions in a given schematron output with an error level equally or more severe than the passed error level .