Class XPathContextFactory


  • class XPathContextFactory
    extends java.lang.Object

    An internally used helper class for creating new XPath context objects.

    This class is used by XPathExpressionEngine. It simplifies testing.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> org.apache.commons.jxpath.JXPathContext createContext​(T root, NodeHandler<T> handler)
      Creates a new JXPathContext based on the passed in arguments.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XPathContextFactory

        XPathContextFactory()
    • Method Detail

      • createContext

        public <T> org.apache.commons.jxpath.JXPathContext createContext​(T root,
                                                                         NodeHandler<T> handler)
        Creates a new JXPathContext based on the passed in arguments.
        Type Parameters:
        T - the type of the nodes to be handled
        Parameters:
        root - the root node
        handler - the node handler
        Returns:
        the newly created context