com.acsinet_solutions.util.expr
Class BeanXPathEvaluator

java.lang.Object
  extended by com.acsinet_solutions.util.expr.BeanXPathEvaluator
All Implemented Interfaces:
Evaluator

public final class BeanXPathEvaluator
extends java.lang.Object
implements Evaluator

XPath evaluator, currently based on commons JXPath. Default caching being used.

Author:
Santiago Arriaga

Constructor Summary
BeanXPathEvaluator(java.lang.String expression)
          Public constructor.
 
Method Summary
 java.lang.Object evaluate(java.lang.Object bean)
          Evaluate the expression and return the bean This version throws checked exceptions.
 java.lang.Object evaluateValid(java.lang.Object bean)
          Evaluate the expression and return the bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanXPathEvaluator

public BeanXPathEvaluator(java.lang.String expression)
Public constructor.

Parameters:
expression - A not-null valid expression String
Method Detail

evaluate

public final java.lang.Object evaluate(java.lang.Object bean)
                                throws EvaluationException
Evaluate the expression and return the bean This version throws checked exceptions.

Specified by:
evaluate in interface Evaluator
Throws:
EvaluationException

evaluateValid

public final java.lang.Object evaluateValid(java.lang.Object bean)
Evaluate the expression and return the bean. This version throws unchecked exceptions.

Specified by:
evaluateValid in interface Evaluator