Package com.saxonica.ee.validate
Class StatisticsReporter
java.lang.Object
com.saxonica.ee.validate.StatisticsReporter
- All Implemented Interfaces:
ValidationStatisticsRecipient
Generates statistics relating to a validation episode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
notifyValidationStatistics
(Map<SchemaComponent, Integer> statistics) Notify the validation statisticsvoid
setReceiver
(Processor processor, Destination destination) Create a StatisticsReporter and set a Receiver to receive an XML report of the statistics that have been collected
-
Constructor Details
-
StatisticsReporter
public StatisticsReporter()
-
-
Method Details
-
setReceiver
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 sentdestination
- the destination to which the XML report will be sent
-
notifyValidationStatistics
public void notifyValidationStatistics(Map<SchemaComponent, Integer> statistics) throws SaxonApiExceptionNotify the validation statistics- Specified by:
notifyValidationStatistics
in interfaceValidationStatisticsRecipient
- 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
-