org.gcube.dataaccess.spd.havingengine.exl
Class HavingFunctions

java.lang.Object
  extended by org.gcube.dataaccess.spd.havingengine.exl.HavingFunctions

public class HavingFunctions
extends Object

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Field Summary
protected  HavingContext<?> context
           
protected static Map<String,XPathExpression> expression_cache
           
protected static org.slf4j.Logger logger
           
 
Constructor Summary
HavingFunctions(org.apache.commons.jexl2.JexlContext context)
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.slf4j.Logger logger

expression_cache

protected static Map<String,XPathExpression> expression_cache

context

protected HavingContext<?> context
Constructor Detail

HavingFunctions

public HavingFunctions(org.apache.commons.jexl2.JexlContext context)
Parameters:
context -
Throws:
ParserConfigurationException
Method Detail

xpath

public boolean xpath(String xpath)
              throws SAXException,
                     IOException,
                     XPathExpressionException
Xpath function.

Parameters:
xpath - the xpath expression to evaluate.
Returns:
true if the expression is evaluated true, false otherwise.
Throws:
SAXException - if an error occurs.
IOException - if an error occurs.
XPathExpressionException - if an error occurs.

getExpression

protected XPathExpression getExpression(String xpathExpression)
                                 throws XPathExpressionException
Retrieved the compiled expression.

Parameters:
xpathExpression -
Returns:
Throws:
XPathExpressionException

buildExpression

protected XPathExpression buildExpression(String xpathExpression)
                                   throws XPathExpressionException
Compiles the passed expression

Parameters:
xpathExpression -
Returns:
Throws:
XPathExpressionException

exl

public boolean exl(String exlExpression)
EXL function.

Parameters:
exlExpression - the exl expression to evaluate.
Returns:

lucio

public boolean lucio(String expression)


Copyright © 2013. All Rights Reserved.