Class StatisticsReporter

java.lang.Object
com.saxonica.ee.validate.StatisticsReporter
All Implemented Interfaces:
ValidationStatisticsRecipient

public class StatisticsReporter extends Object implements ValidationStatisticsRecipient
Generates statistics relating to a validation episode
  • Constructor Details

    • StatisticsReporter

      public StatisticsReporter()
  • Method Details

    • setReceiver

      public void setReceiver(Processor processor, Destination destination)
      Create a StatisticsReporter and set a Receiver to receive an XML report of the statistics that have been collected
      Parameters:
      processor - the processor owning the destination to which the XML report will be sent
      destination - the destination to which the XML report will be sent
    • notifyValidationStatistics

      public void notifyValidationStatistics(Map<SchemaComponent,Integer> statistics) throws SaxonApiException
      Notify the validation statistics
      Specified by:
      notifyValidationStatistics in interface ValidationStatisticsRecipient
      Parameters:
      statistics - the statistics, in the form of a map from schema components (currently, element declarations and schema types) to a count of how often the component was used during the validation episode
      Throws:
      SaxonApiException - if any error occurs