public class SvrlReport extends Object implements SchematronReport
Constructor and Description |
---|
SvrlReport() |
SvrlReport(DOMResult result) |
Modifier and Type | Method and Description |
---|---|
NodeList |
getAllAssertMessages()
Retrieve all assertion messages, warnings and errors, from the SVRL report.
|
List<Node> |
getAllAssertMessages(String type)
Retrieve only the specified type of assertion messages (warnings or errors) from the SVRL
report.
|
NodeList |
getAllReportMessages()
Retrieve all report messages, warnings and errors, from the SVRL report.
|
List<Node> |
getAllReportMessages(String type)
Retrieve only the specified type of report messages (warnings or errors) from the SVRL report.
|
List<String> |
getErrors()
Get a list of all of the assertion and report error messages from the SVRL report.
|
String |
getReportAsText()
Retrieve the entire SVRL report as an XML-formatted string.
|
List<String> |
getWarnings()
Get a list of all of the assertion and report warning messages from the SVRL report.
|
boolean |
isEmpty()
If the Schematron report is uninitialized
|
boolean |
isValid(boolean suppressWarnings)
Returns true if Schematron report is valid, false otherwise.
|
public SvrlReport(DOMResult result)
result
- DOM-formatted results from Schematron validationpublic SvrlReport()
public boolean isValid(boolean suppressWarnings)
isValid
in interface SchematronReport
suppressWarnings
- do not include Schematron warnings in determining validitypublic NodeList getAllAssertMessages()
getAllAssertMessages
in interface SchematronReport
public List<Node> getAllAssertMessages(String type)
public NodeList getAllReportMessages()
getAllReportMessages
in interface SchematronReport
public List<Node> getAllReportMessages(String type)
public List<String> getErrors()
getErrors
in interface SchematronReport
public List<String> getWarnings()
getWarnings
in interface SchematronReport
public String getReportAsText() throws TransformerException
getReportAsText
in interface SchematronReport
TransformerException
public boolean isEmpty()
SchematronReport
isEmpty
in interface SchematronReport
This work is licensed under a Creative Commons Attribution 4.0 International License.