public class StatisticsReporter extends java.lang.Object implements ValidationStatisticsRecipient
Constructor and Description |
---|
StatisticsReporter() |
StatisticsReporter(Receiver receiver)
Create a StatisticsReporter and set a Receiver to receive an XML report of the statistics that have been
collected
|
Modifier and Type | Method and Description |
---|---|
void |
notifyValidationStatistics(java.util.Map<SchemaComponent,java.lang.Integer> statistics)
Notify the validation statistics
|
void |
setReceiver(Receiver receiver)
Create a StatisticsReporter and set a Receiver to receive an XML report of the statistics that have been
collected
|
public StatisticsReporter()
public StatisticsReporter(Receiver receiver)
receiver
- the receiver to which the XML report will be sentpublic void setReceiver(Receiver receiver)
receiver
- the receiver to which the XML report will be sentpublic void notifyValidationStatistics(java.util.Map<SchemaComponent,java.lang.Integer> statistics) throws XPathException
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 episodeXPathException
- if any error occursCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.