/** * Check an annotation list for internal consistency (e.g. rules that %public and %private cannot coexist) * @param where the context where the list appears: one of "DF" (declare function), "DV" (declare variable), * "IF" (inline function declaration), "FT" (function test) * @throws XPathException if the annotation list is not internally consistent */ public void check(Configuration config, String where) throws XPathException { Map<String, List<Annotation>> map = groupByNamespace(); for (Map.Entry<String, List<Annotation>> entry : map.entrySet()) { FunctionAnnotationHandler handler = config.getFunctionAnnotationHandler(entry.getKey()); if (handler != null) { handler.check(new AnnotationList(entry.getValue()), where); } } }
/** * Check an annotation list for internal consistency (e.g. rules that %public and %private cannot coexist) * @param where the context where the list appears: one of "DF" (declare function), "DV" (declare variable), * "IF" (inline function declaration), "FT" (function test) * @throws XPathException if the annotation list is not internally consistent */ public void check(Configuration config, String where) throws XPathException { Map<String, List<Annotation>> map = groupByNamespace(); for (Map.Entry<String, List<Annotation>> entry : map.entrySet()) { FunctionAnnotationHandler handler = config.getFunctionAnnotationHandler(entry.getKey()); if (handler != null) { handler.check(new AnnotationList(entry.getValue()), where); } } }