public void resetExtensionFunctions() { for (XProcExtensionFunctionDefinition xf : exFuncs) { processor.registerExtensionFunction(xf); } }
public void resetExtensionFunctions() { for (XProcExtensionFunctionDefinition xf : exFuncs) { processor.registerExtensionFunction(xf); } }
public static void registerFunctions (Processor processor) { processor.registerExtensionFunction(createIsDirFunction()); processor.registerExtensionFunction(createExistsFunction()); processor.registerExtensionFunction(createListFunction()); }
/** * Register a simple external/extension function that is to be made available within any stylesheet, query, * or XPath expression compiled under the control of this processor. * <p>This interface provides only for simple extension functions that have no side-effects and no dependencies * on the static or dynamic context.</p> * * @param function the implementation of the extension function. * @since 9.4 */ public void registerExtensionFunction(ExtensionFunction function) { ExtensionFunctionDefinitionWrapper wrapper = new ExtensionFunctionDefinitionWrapper(function); registerExtensionFunction(wrapper); }
/** * Register a simple external/extension function that is to be made available within any stylesheet, query, * or XPath expression compiled under the control of this processor. * <p>This interface provides only for simple extension functions that have no side-effects and no dependencies * on the static or dynamic context.</p> * * @param function the implementation of the extension function. * @since 9.4 */ public void registerExtensionFunction(ExtensionFunction function) { ExtensionFunctionDefinitionWrapper wrapper = new ExtensionFunctionDefinitionWrapper(function); registerExtensionFunction(wrapper); }
public static void registerFunctions (Processor processor) { processor.registerExtensionFunction(new Search()); processor.registerExtensionFunction(new Count()); processor.registerExtensionFunction(new Exists()); processor.registerExtensionFunction(new FieldTerms()); processor.registerExtensionFunction(new Key()); processor.registerExtensionFunction(new Transform()); processor.registerExtensionFunction(new Eval()); processor.registerExtensionFunction(new InsertDocument()); processor.registerExtensionFunction(new DeleteDocument()); processor.registerExtensionFunction(new Commit()); processor.registerExtensionFunction(new Highlight()); }
public static void registerFunctions (Processor processor) { processor.registerExtensionFunction(new Log()); }
processor.registerExtensionFunction(test);
private void registerExtensionFunctions(XProcConfiguration config) { if (mXPathRegistry != null) { for (ExtensionFunctionDefinition func : mXPathRegistry .getFunctions()) { config.getProcessor().registerExtensionFunction(func); } } } }
processor.registerExtensionFunction(xf);
processor.registerExtensionFunction(xf); logger.trace("Instantiated: " + className); if (def instanceof ExtensionFunctionDefinition) processor.registerExtensionFunction((ExtensionFunctionDefinition) def); else if (def instanceof ExtensionFunction) processor.registerExtensionFunction((ExtensionFunction) def); else logger.info("Failed to instantiate extension function " + className + " because that class implements neither ExtensionFunction nor ExtensionFunctionDefinition.");
processor.registerExtensionFunction(xf); logger.trace("Instantiated: " + className); if (def instanceof ExtensionFunctionDefinition) processor.registerExtensionFunction((ExtensionFunctionDefinition) def); else if (def instanceof ExtensionFunction) processor.registerExtensionFunction((ExtensionFunction) def); else logger.info("Failed to instantiate extension function " + className + " because that class implements neither ExtensionFunction nor ExtensionFunctionDefinition.");
processor.registerExtensionFunction((ExtensionFunction) function);