public class StatisticsReporter extends java.lang.Object implements ValidationStatisticsRecipient
Constructor and Description |
---|
StatisticsReporter() |
Modifier and Type | Method and Description |
---|---|
void |
notifyValidationStatistics(java.util.Map<SchemaComponent,java.lang.Integer> statistics)
Notify the validation statistics
|
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
|
public void setReceiver(Processor processor, Destination destination)
processor
- the processor owning the destination to which the XML report will be sentdestination
- the destination to which the XML report will be sentpublic void notifyValidationStatistics(java.util.Map<SchemaComponent,java.lang.Integer> statistics) throws SaxonApiException
notifyValidationStatistics
in interface ValidationStatisticsRecipient
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 episodeSaxonApiException
- if any error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.