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