/**
* 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
*/
public static WorkflowFunctionResolver extractFunctionResolver(XPath xPath) {
XPathFunctionResolver resolver = xPath.getXPathFunctionResolver();
if (!hasWorkflowFunctionResolver(xPath)) {
throw new WorkflowRuntimeException("The XPathFunctionResolver on the given XPath instance is not an instance of WorkflowFunctionResolver, was: " + resolver);
}
return (WorkflowFunctionResolver)resolver;
}
XPathHelper.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:kc-rice
作者:
评论列表
文章目录