Package com.saxonica.ee.validate
Class StatisticsReporter
- java.lang.Object
- 
- com.saxonica.ee.validate.StatisticsReporter
 
- 
- All Implemented Interfaces:
- ValidationStatisticsRecipient
 
 public class StatisticsReporter extends java.lang.Object implements ValidationStatisticsRecipient Generates statistics relating to a validation episode
- 
- 
Constructor SummaryConstructors Constructor Description StatisticsReporter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnotifyValidationStatistics(java.util.Map<SchemaComponent,java.lang.Integer> statistics)Notify the validation statisticsvoidsetReceiver(Processor processor, Destination destination)Create a StatisticsReporter and set a Receiver to receive an XML report of the statistics that have been collected
 
- 
- 
- 
Method Detail- 
setReceiverpublic 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
 
 - 
notifyValidationStatisticspublic void notifyValidationStatistics(java.util.Map<SchemaComponent,java.lang.Integer> statistics) throws SaxonApiException Notify the validation statistics- Specified by:
- notifyValidationStatisticsin 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
 
 
- 
 
-