Package org.apache.camel.model.language
Class SingleInputExpressionDefinition.AbstractBuilder<T extends SingleInputExpressionDefinition.AbstractBuilder<T,E>,E extends SingleInputExpressionDefinition>
- java.lang.Object
-
- org.apache.camel.model.language.SingleInputExpressionDefinition.AbstractBuilder<T,E>
-
- All Implemented Interfaces:
LanguageBuilder<E>
- Direct Known Subclasses:
TokenizerExpression.Builder
,XMLTokenizerExpression.Builder
,XPathExpression.Builder
,XQueryExpression.Builder
- Enclosing class:
- SingleInputExpressionDefinition
public abstract static class SingleInputExpressionDefinition.AbstractBuilder<T extends SingleInputExpressionDefinition.AbstractBuilder<T,E>,E extends SingleInputExpressionDefinition> 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
headerName(String headerName)
Name of header to use as input, instead of the message bodyT
id(String id)
Sets the id of this nodeT
predicate(org.apache.camel.Predicate predicate)
T
propertyName(String propertyName)
Name of property to use as input, instead of the message body.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
-
headerName
public T headerName(String headerName)
Name of header to use as input, instead of the message body It has as higher precedent than the propertyName if both are set.
-
propertyName
public T propertyName(String propertyName)
Name of property to use as input, instead of the message body. It has a lower precedent than the headerName if both are set.
-
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)
-
-