Search in sources :

Example 1 with ClassFunctions

use of org.apache.commons.jxpath.ClassFunctions in project galley by Commonjava.

the class JXPathUtils method newContext.

public static JXPathContext newContext(final Node node) {
    final JXPathContext ctx = JXPathContext.newContext(node);
    ctx.setLenient(true);
    ctx.setFunctions(new ClassFunctions(ResolveFunctions.class, "ext"));
    return ctx;
}
Also used : JXPathContext(org.apache.commons.jxpath.JXPathContext) ClassFunctions(org.apache.commons.jxpath.ClassFunctions)

Aggregations

ClassFunctions (org.apache.commons.jxpath.ClassFunctions)1 JXPathContext (org.apache.commons.jxpath.JXPathContext)1