Interface SchematronReport

All Known Implementing Classes:
SvrlReport

public interface SchematronReport
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieve all assertion messages, warnings and errors, from the SVRL report.
    Retrieve all report messages, warnings and errors, from the SVRL report.
    Get a list of all of the assertion and report error messages from the SVRL report.
    Retrieve the entire SVRL report as an XML-formatted string.
    Get a list of all of the assertion and report warning messages from the SVRL report.
    boolean
    If the Schematron report is uninitialized
    boolean
    isValid(boolean suppressWarnings)
    Returns true if Schematron report is valid, false otherwise.
  • Method Details

    • isValid

      boolean isValid(boolean suppressWarnings)
      Returns true if Schematron report is valid, false otherwise. The input document is considered to be valid if it has no failed assertions for errors and no failed reports for errors. If the suppressWarnings argument is true, then Schematron warnings are also included in the document's validity assessment.
      Parameters:
      suppressWarnings - do not include Schematron warnings in determining validity
      Returns:
      true if no assert or report error messages found in SVRL report, false otherwise
    • getAllAssertMessages

      NodeList getAllAssertMessages()
      Retrieve all assertion messages, warnings and errors, from the SVRL report.
      Returns:
      list of XML Nodes for all assert nodes
    • getAllReportMessages

      NodeList getAllReportMessages()
      Retrieve all report messages, warnings and errors, from the SVRL report.
      Returns:
      list of XML Nodes for all report nodes
    • getErrors

      List<String> getErrors()
      Get a list of all of the assertion and report error messages from the SVRL report.
      Returns:
      list of error strings
    • getWarnings

      List<String> getWarnings()
      Get a list of all of the assertion and report warning messages from the SVRL report.
      Returns:
      list of warning strings
    • getReportAsText

      String getReportAsText() throws TransformerException
      Retrieve the entire SVRL report as an XML-formatted string.
      Returns:
      XML-formatted string representation of SVRL report
      Throws:
      TransformerException
    • isEmpty

      boolean isEmpty()
      If the Schematron report is uninitialized
      Returns:
      True is the report is uninitialized.