public final class SchematronResult
extends java.lang.Object
implements java.io.Serializable
| 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.lang.String |
getFailedMessage()
Return the failed assertion message only.
|
java.lang.String |
getSVRLAsString() |
java.lang.String |
getSystemID() |
boolean |
hasAsserts() |
boolean |
hasReports() |
boolean |
isValid() |
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.public SchematronOutput toSchematronOutput() throws SchematronException
SchematronException - If any error occurs during parsing.public java.lang.String getSVRLAsString()
public java.lang.String getFailedMessage()
This method is used for Pageseeder Schematron Validation error output.