Package org.apache.camel.model
Class ExpressionNodeHelper
java.lang.Object
org.apache.camel.model.ExpressionNodeHelper
Helper for
ExpressionNode-
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionDefinitiontoExpressionDefinition(org.apache.camel.Expression expression) Determines whichExpressionDefinitiondescribes the given expression in the best possible way.static ExpressionDefinitiontoExpressionDefinition(org.apache.camel.Predicate predicate) Determines whichExpressionDefinitiondescribes the given predicate in the best possible way.
-
Method Details
-
toExpressionDefinition
Determines whichExpressionDefinitiondescribes the given expression in the best possible way. This implementation will use types such asSimpleExpression,XPathExpressionetc. if the given expression is detected as such a type.- Parameters:
expression- the expression- Returns:
- a definition which describes the expression
-
toExpressionDefinition
Determines whichExpressionDefinitiondescribes the given predicate in the best possible way. This implementation will use types such asSimpleExpression,XPathExpressionetc. if the given predicate is detected as such a type.- Parameters:
predicate- the predicate- Returns:
- a definition which describes the predicate
-