|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.schematron.SchematronResult
public final class SchematronResult
Stores the results of the schematron validation.
Constructor Summary | |
---|---|
SchematronResult(String systemID)
Constructor of SchematronResult that accept the source file name (or systemID) |
Method Summary | |
---|---|
String |
getFailedMessage()
Return the failed assertion message only. |
String |
getSVRLAsString()
|
String |
getSystemID()
|
boolean |
isValid()
|
void |
printAllMessage(PrintStream out)
Print both failed assertion and successful report message to the console. |
void |
printFailedMessage(PrintStream out)
Print the failed assertion messages only on the specified stream. |
void |
setSVRL(String svrl)
Setter for SVRL content/file, also parse the SVRL content to extract the failed assertion and the successful report. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchematronResult(String systemID)
systemID
- The system ID of the XML for which this result instance is built.Method Detail |
---|
public String getSystemID()
public boolean isValid()
true
if there's no failed assertion;
false
if there is failed assertionpublic void setSVRL(String svrl) throws SchematronException
svrl
- The corresponding generated by SVRL.
SchematronException
- Should an error occur whilst parsing.public String getSVRLAsString()
public void printFailedMessage(PrintStream out)
This method is used only when "failOnError" is set to true.
out
- SchematronTask object for message loggingpublic String getFailedMessage()
This method is used for Pageseeder Schematron Validation error output.
public void printAllMessage(PrintStream out)
task
- SchematronTask object for message logging
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |