public final class SchematronResult
extends java.lang.Object
| Constructor and Description |
|---|
SchematronResult(java.lang.String systemID)
Constructor of SchematronResult that accept the source file name (or systemID)
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getFailedAssertions() |
java.lang.String |
getFailedMessage()
Return the failed assertion message only.
|
java.util.List<java.lang.String> |
getSuccessfulReports() |
java.lang.String |
getSVRLAsString() |
java.lang.String |
getSystemID() |
boolean |
isValid() |
void |
printAllMessage(java.io.PrintStream out)
Print both failed assertion and successful report message to the console.
|
void |
printFailedMessage(java.io.PrintStream out)
Print the failed assertion messages only on the specified stream.
|
void |
setSVRL(java.lang.String svrl)
Setter for SVRL content/file, also parse the SVRL content to extract the failed assertion and the
successful report.
|
public SchematronResult(java.lang.String systemID)
systemID - The system ID of the XML for which this result instance is built.public java.lang.String getSystemID()
public boolean isValid()
true if there's no failed assertion;
false if there is failed assertionpublic void setSVRL(java.lang.String svrl)
throws SchematronException
svrl - The corresponding generated by SVRL.SchematronException - Should an error occur whilst parsing.public java.lang.String getSVRLAsString()
public void printFailedMessage(java.io.PrintStream out)
This method is used only when "failOnError" is set to true.
out - SchematronTask object for message loggingpublic java.lang.String getFailedMessage()
This method is used for Pageseeder Schematron Validation error output.
public void printAllMessage(java.io.PrintStream out)
task - SchematronTask object for message loggingpublic java.util.List<java.lang.String> getFailedAssertions()
public java.util.List<java.lang.String> getSuccessfulReports()