Package org.apache.camel.model.language
Class LanguageExpression.Builder
- java.lang.Object
-
- org.apache.camel.model.language.LanguageExpression.Builder
-
- All Implemented Interfaces:
LanguageBuilder<LanguageExpression>
- Enclosing class:
- LanguageExpression
public static class LanguageExpression.Builder extends Object
Builder
is a specific builder forLanguageExpression
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LanguageExpression
end()
Ends the build of an expression.T
expression(String expression)
The expression value in your chosen language syntaxT
id(String id)
Sets the id of this nodeLanguageExpression.Builder
language(String language)
The name of the language to useT
predicate(org.apache.camel.Predicate predicate)
T
trim(boolean trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaksT
trim(String trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks
-
-
-
Method Detail
-
language
public LanguageExpression.Builder language(String language)
The name of the language to use
-
end
public LanguageExpression end()
Description copied from interface:LanguageBuilder
Ends the build of an expression.- Returns:
- the expression fully built.
-
id
public T id(String id)
Sets the id of this node
-
trim
public T trim(String trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks
-
trim
public T trim(boolean trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks
-
expression
public T expression(String expression)
The expression value in your chosen language syntax
-
predicate
public T predicate(org.apache.camel.Predicate predicate)
-
-