public class StatisticsReporter extends Object implements ValidationStatisticsRecipient
Constructor and Description |
---|
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(Map<SchemaComponent,Integer> statistics)
Notify the validation statistics
|
public StatisticsReporter(Receiver receiver)
receiver
- the receiver to which the XML report will be sentpublic void notifyValidationStatistics(Map<SchemaComponent,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
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.