01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * Portions Copyrighted 2007 Sun Microsystems, Inc.
16: */
17: package org.netbeans.modules.xml.xpath.ext.spi.validation;
18:
19: import org.netbeans.modules.xml.xpath.ext.XPathExpression;
20: import org.netbeans.modules.xml.xam.spi.Validator.ResultType;
21:
22: /**
23: * Specifies the interface of validation context to inform about
24: * standard XPath problems. All standard problems are enumerated in
25: * the XPathProblem enum.
26: *
27: * If a validation context is specified to the XPath model, it
28: * will be informed about all problems while the model resolve
29: * schema types.
30: *
31: * @author nk160297
32: */
33: public interface XPathValidationContext {
34:
35: /**
36: * The first argument can be null.
37: * It usually means that there are exception while parsing the expression.
38: */
39: void addResultItem(XPathExpression expr, ResultType resultType,
40: XPathProblem problem, Object... values);
41:
42: }
|