public class HavingFunctions extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HavingContext<?> |
context |
protected static Map<String,XPathExpression> |
expression_cache |
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
HavingFunctions(org.apache.commons.jexl2.JexlContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected XPathExpression |
buildExpression(String xpathExpression)
Compiles the passed expression
|
boolean |
exl(String exlExpression)
EXL function.
|
protected XPathExpression |
getExpression(String xpathExpression)
Retrieved the compiled expression.
|
boolean |
lucio(String expression) |
boolean |
xpath(String xpath)
Xpath function.
|
protected static org.slf4j.Logger logger
protected static Map<String,XPathExpression> expression_cache
protected HavingContext<?> context
public HavingFunctions(org.apache.commons.jexl2.JexlContext context)
context - ParserConfigurationExceptionpublic boolean xpath(String xpath) throws SAXException, IOException, XPathExpressionException
xpath - the xpath expression to evaluate.true if the expression is evaluated true, false otherwise.SAXException - if an error occurs.IOException - if an error occurs.XPathExpressionException - if an error occurs.protected XPathExpression getExpression(String xpathExpression) throws XPathExpressionException
xpathExpression - XPathExpressionExceptionprotected XPathExpression buildExpression(String xpathExpression) throws XPathExpressionException
xpathExpression - XPathExpressionExceptionpublic boolean exl(String exlExpression)
exlExpression - the exl expression to evaluate.public boolean lucio(String expression)
Copyright © 2020. All Rights Reserved.