Package org.apache.camel.model.language
Class DatasonnetExpression.Builder
- java.lang.Object
-
- org.apache.camel.model.language.TypedExpressionDefinition.AbstractBuilder<DatasonnetExpression.Builder,DatasonnetExpression>
-
- org.apache.camel.model.language.DatasonnetExpression.Builder
-
- All Implemented Interfaces:
LanguageBuilder<DatasonnetExpression>
- Enclosing class:
- DatasonnetExpression
public static class DatasonnetExpression.Builder extends TypedExpressionDefinition.AbstractBuilder<DatasonnetExpression.Builder,DatasonnetExpression>
Builder
is a specific builder forDatasonnetExpression
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatasonnetExpression.Builder
bodyMediaType(String bodyMediaType)
The String representation of the message's body MediaTypeDatasonnetExpression
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 nodeDatasonnetExpression.Builder
outputMediaType(String outputMediaType)
The String representation of the MediaType to outputT
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-
Methods inherited from class org.apache.camel.model.language.TypedExpressionDefinition.AbstractBuilder
resultType, resultTypeName
-
-
-
-
Method Detail
-
bodyMediaType
public DatasonnetExpression.Builder bodyMediaType(String bodyMediaType)
The String representation of the message's body MediaType
-
outputMediaType
public DatasonnetExpression.Builder outputMediaType(String outputMediaType)
The String representation of the MediaType to output
-
end
public DatasonnetExpression 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)
-
-