Class XPathHelper
java.lang.Object
org.kuali.rice.kew.rule.xmlrouting.XPathHelper
Provides utilities for obtaining XPath instances which are "good-to-go" with access to the Workflow
namespace and custom XPath functions.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowFunctionResolverextractFunctionResolver(XPath xPath) A utility to extract the WorkflowFunctionResolver from the given XPath instances.static booleanhasWorkflowFunctionResolver(XPath xPath) Returns true if the given XPath instance has a WorkflowFunctionResolver, false otherwise.static XPathnewXPath()Creates a new XPath instance and initializes it with the WorkflowNamespaceContext and the WorkflowFunctionResolver.static XPathCreates a new XPath instances and initializes it with the WorkflowNamespaceContext and the WorkflowFunctionResolver.
-
Constructor Details
-
XPathHelper
public XPathHelper()
-
-
Method Details
-
newXPath
Creates a new XPath instance and initializes it with the WorkflowNamespaceContext and the WorkflowFunctionResolver. -
newXPath
Creates a new XPath instances and initializes it with the WorkflowNamespaceContext and the WorkflowFunctionResolver. Also sets the root node on the WorkflowFunctionResolver to the given Node. This is required for some of the functions in the function resolver to perform properly. -
extractFunctionResolver
A utility to extract the WorkflowFunctionResolver from the given XPath instances. If the XPath instance does not contain a WorkflowFunctionResolver, then this method will throw a WorkflowRuntimeException.- Throws:
WorkflowRuntimeException- if the given XPath instance does not contain a WorklflowFunctionResolver
-
hasWorkflowFunctionResolver
Returns true if the given XPath instance has a WorkflowFunctionResolver, false otherwise.
-