org.apache.camel.model
Class ExpressionNodeHelper

java.lang.Object
  extended by org.apache.camel.model.ExpressionNodeHelper

public final class ExpressionNodeHelper
extends Object

Helper for ExpressionNode


Method Summary
static ExpressionDefinition toExpressionDefinition(Expression expression)
          Determines which ExpressionDefinition describes the given expression best possible.
static ExpressionDefinition toExpressionDefinition(Predicate predicate)
          Determines which ExpressionDefinition describes the given predicate best possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toExpressionDefinition

public static ExpressionDefinition toExpressionDefinition(Expression expression)
Determines which ExpressionDefinition describes the given expression best possible.

This implementation will use types such as SimpleExpression, XPathExpression etc. if the given expression is detect as such a type.

Parameters:
expression - the expression
Returns:
a definition which describes the expression

toExpressionDefinition

public static ExpressionDefinition toExpressionDefinition(Predicate predicate)
Determines which ExpressionDefinition describes the given predicate best possible.

This implementation will use types such as SimpleExpression, XPathExpression etc. if the given predicate is detect as such a type.

Parameters:
predicate - the predicate
Returns:
a definition which describes the predicate


Apache CAMEL