public XmlFileXpathValidator() { this.namespaces.put(WINDUP_NS_PREFIX, WINDUP_NS_URI); this.xpathEngine = factory.newXPath(); final XPathFunctionResolver originalResolver = this.xpathEngine.getXPathFunctionResolver(); xmlFileFunctionResolver = new XmlFileFunctionResolver(originalResolver); this.xpathEngine.setXPathFunctionResolver(xmlFileFunctionResolver); }
this.xmlFileFunctionResolver.registerFunction(WINDUP_NS_URI, "startFrame", new XmlFileStartFrameXPathFunction(paramMatchCache)); this.xmlFileFunctionResolver .registerFunction(WINDUP_NS_URI, "evaluate", new XmlFileEvaluateXPathFunction(evaluationStrategy)); this.xmlFileFunctionResolver.registerFunction(WINDUP_NS_URI, "matches", new XmlFileMatchesXPathFunction(context, store, paramMatchCache, event)); this.xmlFileFunctionResolver.registerFunction(WINDUP_NS_URI, "persist", new XmlFilePersistXPathFunction(event, context, model, evaluationStrategy, store, paramMatchCache, results));
this.xmlFileFunctionResolver.registerFunction(WINDUP_NS_URI, "startFrame", new XmlFileStartFrameXPathFunction(paramMatchCache)); this.xmlFileFunctionResolver.registerFunction(WINDUP_NS_URI, "evaluate", new XmlFileEvaluateXPathFunction(evaluationStrategy)); this.xmlFileFunctionResolver.registerFunction(WINDUP_NS_URI, "matches", new XmlFileMatchesXPathFunction(context, store, paramMatchCache, event)); this.xmlFileFunctionResolver.registerFunction(WINDUP_NS_URI, "persist", new XmlFilePersistXPathFunction(graphContext, xml, evaluationStrategy, store, paramMatchCache, resultLocations));
XmlFile() { this.namespaces.put(WINDUP_NS_PREFIX, WINDUP_NS_URI); this.xpathEngine = factory.newXPath(); final XPathFunctionResolver originalResolver = this.xpathEngine.getXPathFunctionResolver(); xmlFileFunctionResolver = new XmlFileFunctionResolver(originalResolver); this.xpathEngine.setXPathFunctionResolver(xmlFileFunctionResolver); }