org.weborganic.schematron
Class SchematronReport

java.lang.Object
  extended by org.weborganic.schematron.SchematronReport

public final class SchematronReport
extends Object

A report aggregating a collection of Schematron validation results.


Constructor Summary
SchematronReport()
          Constructor of Schematron Report
 
Method Summary
 void add(SchematronResult result)
          Add a new SchematronResult object to the collection
 SchematronResult get(String systemID)
          Returns the Schematron result instance corresponding to the given system ID.
 void printLog(PrintStream out)
          Print the SVRL result onto the console log.
 void saveAs(File file)
          Saves this report as XML in the format:
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchematronReport

public SchematronReport()
Constructor of Schematron Report

Method Detail

add

public void add(SchematronResult result)
Add a new SchematronResult object to the collection

Parameters:
result - object to be added.

get

public SchematronResult get(String systemID)
Returns the Schematron result instance corresponding to the given system ID.

Parameters:
systemID - The system ID of the requested schematron result.
Returns:
a SchematronResult object based on source filename/system ID given.

saveAs

public void saveAs(File file)
            throws IOException
Saves this report as XML in the format:
<fileset date="[yyyy-mm-dd]">
   <file name="xxxxx"> SRVL embedded here </file>
   <file name="xxxxx"> SRVL embedded here </file>
 </fileset>
 

Parameters:
file - The file where the Schematron results should be saved.
Throws:
IOException - Should any I/O error occur.

printLog

public void printLog(PrintStream out)
Print the SVRL result onto the console log.

Parameters:
task - The task which provides the Log to use.