Debian Codegraph @

net/sf/saxon/lib/ValidationStatisticsRecipient.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.lib;
9
10 import net.sf.saxon.trans.XPathException;
11 import net.sf.saxon.type.SchemaComponent;
12
13 import java.util.Map;
14
15 /**
16 * Defines a class that is notified of validation statistics at the end of a validation episode
17 */
18 public interface ValidationStatisticsRecipient {
19
20 /**
21 * Notify the validation statistics
22 *
23 * @param statistics the statistics, in the form of a map from schema components (currently,
24 * element declarations and schema types) to a count of how often the component
25 * was used during the validation episode
26 * @throws XPathException if any error occurs
27 */
28
29 public void notifyValidationStatistics(Map<SchemaComponent, Integer> statistics) throws XPathException;
30 }
31