ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java
@Nonnull
  @ReturnsMutableCopy
  public static ICommonsList <AbstractSVRLMessage> getAllFailedAssertionsAndSuccessfulReports (@Nullable final SchematronOutputType aSchematronOutput)
  {
    final ICommonsList <AbstractSVRLMessage> ret = new CommonsArrayList <> ();
    if (aSchematronOutput != null)
      for (final Object aObj : aSchematronOutput.getActivePatternAndFiredRuleAndFailedAssert ())
        if (aObj instanceof FailedAssert)
          ret.add (new SVRLFailedAssert ((FailedAssert) aObj));
        else
          if (aObj instanceof SuccessfulReport)
            ret.add (new SVRLSuccessfulReport ((SuccessfulReport) aObj));
    return ret;
  }
@Nonnull
  @ReturnsMutableCopy
  public static ICommonsList <AbstractSVRLMessage> getAllFailedAssertionsAndSuccessfulReports (@Nullable final SchematronOutputType aSchematronOutput)
  {
    final ICommonsList <AbstractSVRLMessage> ret = new CommonsArrayList <> ();
    if (aSchematronOutput != null)
      for (final Object aObj : aSchematronOutput.getActivePatternAndFiredRuleAndFailedAssert ())
        if (aObj instanceof FailedAssert)
          ret.add (new SVRLFailedAssert ((FailedAssert) aObj));
        else
          if (aObj instanceof SuccessfulReport)
            ret.add (new SVRLSuccessfulReport ((SuccessfulReport) aObj));
    return ret;
  }
@ Nonnull @ ReturnsMutableCopy public static ICommonsList < AbstractSVRLMessage > getAllFailedAssertionsAndSuccessfulReports ( @ Nullable final SchematronOutputType aSchematronOutput ) { final ICommonsList < AbstractSVRLMessage > ret = new CommonsArrayList <> ( ) ; if ( aSchematronOutput != null ) for ( final Object aObj : aSchematronOutput . getActivePatternAndFiredRuleAndFailedAssert ( ) ) if ( aObj instanceof FailedAssert ) ret . add ( new SVRLFailedAssert ( ( FailedAssert ) aObj ) ) ; else if ( aObj instanceof SuccessfulReport ) ret . add ( new SVRLSuccessfulReport ( ( SuccessfulReport ) aObj ) ) ; return ret ; }
Get a list of all failed assertions and successful reports in a given
schematron output.

@param aSchematronOutput
The schematron output to be used. May be <code>null</code>.
@return A non-<code>null</code> list with all failed assertions and
successful reports. Maybe an empty list if the input is
<code>null</code>.
Get a list of all failed assertions and successful reports in a given schematron output .