Package org.apache.camel.model.language
Class TypedExpressionDefinition.AbstractBuilder<T extends TypedExpressionDefinition.AbstractBuilder<T,E>,E extends TypedExpressionDefinition>
- java.lang.Object
-
- org.apache.camel.model.language.TypedExpressionDefinition.AbstractBuilder<T,E>
-
- All Implemented Interfaces:
LanguageBuilder<E>
- Direct Known Subclasses:
ConstantExpression.Builder
,CSimpleExpression.Builder
,DatasonnetExpression.Builder
,GroovyExpression.Builder
,JavaScriptExpression.Builder
,JoorExpression.Builder
,MethodCallExpression.Builder
,MvelExpression.Builder
,OgnlExpression.Builder
,PythonExpression.Builder
,RefExpression.Builder
,SimpleExpression.Builder
,SingleInputTypedExpressionDefinition.AbstractBuilder
,SpELExpression.Builder
- Enclosing class:
- TypedExpressionDefinition
public abstract static class TypedExpressionDefinition.AbstractBuilder<T extends TypedExpressionDefinition.AbstractBuilder<T,E>,E extends TypedExpressionDefinition> extends Object
AbstractBuilder
is the base builder for typed expression.
-
-
Constructor Summary
Constructors Constructor Description AbstractBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
expression(String expression)
The expression value in your chosen language syntaxT
id(String id)
Sets the id of this nodeT
predicate(org.apache.camel.Predicate predicate)
T
resultType(Class<?> resultType)
Sets the class name of the result type (type from output)T
resultTypeName(String resultTypeName)
Sets the class of the result type (type from output)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-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.builder.LanguageBuilder
end
-
-
-
-
Method Detail
-
resultTypeName
public T resultTypeName(String resultTypeName)
Sets the class of the result type (type from output)
-
resultType
public T resultType(Class<?> resultType)
Sets the class name of the result type (type from output)
-
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)
-
-