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()
Deprecated.
|
java.lang.String |
getFailedMessage()
Return the failed assertion message only.
|
java.util.List<java.lang.String> |
getSuccessfulReports()
Deprecated.
|
java.lang.String |
getSVRLAsString() |
java.lang.String |
getSystemID() |
boolean |
hasAsserts() |
boolean |
hasReports() |
boolean |
isValid() |
void |
printAllMessage(java.io.PrintStream out)
Deprecated.
|
void |
printFailedMessage(java.io.PrintStream out)
Deprecated.
|
void |
setSVRL(java.lang.String svrl)
Deprecated.
|
void |
setSVRL(java.lang.String svrl,
int assertsCount,
int reportsCount)
Setter for SVRL content/file.
|
SchematronOutput |
toSchematronOutput()
Parse the SVRL output and generate the corresponding SchematronOutput instance.
|
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 boolean hasAsserts()
true if there's no failed assertion;
false if there is failed assertionpublic boolean hasReports()
true if there's no failed assertion;
false if there is failed assertionpublic void setSVRL(java.lang.String svrl,
int assertsCount,
int reportsCount)
svrl - The corresponding generated by SVRL.@Deprecated public void setSVRL(java.lang.String svrl)
svrl - The corresponding generated by SVRL.public SchematronOutput toSchematronOutput() throws SchematronException
SchematronException - If any error occurs during parsing.public java.lang.String getSVRLAsString()
@Deprecated 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.
@Deprecated public void printAllMessage(java.io.PrintStream out)
@Deprecated public java.util.List<java.lang.String> getFailedAssertions()
@Deprecated public java.util.List<java.lang.String> getSuccessfulReports()