org.apache.camel.language.jxpath
Class JXPathExpression

java.lang.Object
  extended by org.apache.camel.support.ExpressionSupport
      extended by org.apache.camel.language.jxpath.JXPathExpression
All Implemented Interfaces:
org.apache.camel.Expression, org.apache.camel.Predicate

public class JXPathExpression
extends org.apache.camel.support.ExpressionSupport

JXPath Expression support


Constructor Summary
JXPathExpression(String expression, Class<?> type)
          Creates a new JXPathExpression instance (lenient is disabled)
JXPathExpression(String expression, Class<?> type, boolean lenient)
          Creates a new JXPathExpression instance
 
Method Summary
protected  String assertionFailureMessage(org.apache.camel.Exchange exchange)
           
<T> T
evaluate(org.apache.camel.Exchange exchange, Class<T> tClass)
           
 boolean isLenient()
           
 void setLenient(boolean lenient)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.support.ExpressionSupport
assertMatches, evaluate, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JXPathExpression

public JXPathExpression(String expression,
                        Class<?> type)
Creates a new JXPathExpression instance (lenient is disabled)

Parameters:
expression - the JXPath expression to be evaluated
type - the expected result type

JXPathExpression

public JXPathExpression(String expression,
                        Class<?> type,
                        boolean lenient)
Creates a new JXPathExpression instance

Parameters:
expression - the JXPath expression to be evaluated
type - the expected result type
lenient - to configure lenient
Method Detail

isLenient

public boolean isLenient()

setLenient

public void setLenient(boolean lenient)

evaluate

public <T> T evaluate(org.apache.camel.Exchange exchange,
                      Class<T> tClass)

assertionFailureMessage

protected String assertionFailureMessage(org.apache.camel.Exchange exchange)
Specified by:
assertionFailureMessage in class org.apache.camel.support.ExpressionSupport

toString

public String toString()
Overrides:
toString in class Object


Apache CAMEL