Package org.apache.camel.model.language
Class TokenizerExpression.Builder
- java.lang.Object
-
- org.apache.camel.model.language.SingleInputExpressionDefinition.AbstractBuilder<TokenizerExpression.Builder,TokenizerExpression>
-
- org.apache.camel.model.language.TokenizerExpression.Builder
-
- All Implemented Interfaces:
LanguageBuilder<TokenizerExpression>
- Enclosing class:
- TokenizerExpression
public static class TokenizerExpression.Builder extends SingleInputExpressionDefinition.AbstractBuilder<TokenizerExpression.Builder,TokenizerExpression>
Builder
is a specific builder forTokenizerExpression
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenizerExpression
end()
Ends the build of an expression.TokenizerExpression.Builder
endToken(String endToken)
The end token to use as tokenizer if using start/end token pairs.T
expression(String expression)
The expression value in your chosen language syntaxTokenizerExpression.Builder
group(String group)
To group N parts together, for example to split big files into chunks of 1000 lines.TokenizerExpression.Builder
groupDelimiter(String groupDelimiter)
Sets the delimiter to use when grouping.T
id(String id)
Sets the id of this nodeTokenizerExpression.Builder
includeTokens(boolean includeTokens)
Whether to include the tokens in the parts when using pairsTokenizerExpression.Builder
includeTokens(String includeTokens)
Whether to include the tokens in the parts when using pairsTokenizerExpression.Builder
inheritNamespaceTagName(String inheritNamespaceTagName)
To inherit namespaces from a root/parent tag name when using XML You can use simple language as the tag name to support dynamic names.T
predicate(org.apache.camel.Predicate predicate)
TokenizerExpression.Builder
regex(boolean regex)
If the token is a regular expression pattern.TokenizerExpression.Builder
regex(String regex)
If the token is a regular expression pattern.TokenizerExpression.Builder
skipFirst(boolean skipFirst)
To skip the very first elementTokenizerExpression.Builder
skipFirst(String skipFirst)
To skip the very first elementTokenizerExpression.Builder
token(String token)
The (start) token to use as tokenizer, for example you can use the new line token.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 breaksTokenizerExpression.Builder
xml(boolean xml)
Whether the input is XML messages.TokenizerExpression.Builder
xml(String xml)
Whether the input is XML messages.-
Methods inherited from class org.apache.camel.model.language.SingleInputExpressionDefinition.AbstractBuilder
headerName, propertyName
-
-
-
-
Method Detail
-
token
public TokenizerExpression.Builder token(String token)
The (start) token to use as tokenizer, for example you can use the new line token. You can use simple language as the token to support dynamic tokens.
-
endToken
public TokenizerExpression.Builder endToken(String endToken)
The end token to use as tokenizer if using start/end token pairs. You can use simple language as the token to support dynamic tokens.
-
inheritNamespaceTagName
public TokenizerExpression.Builder inheritNamespaceTagName(String inheritNamespaceTagName)
To inherit namespaces from a root/parent tag name when using XML You can use simple language as the tag name to support dynamic names.
-
regex
public TokenizerExpression.Builder regex(String regex)
If the token is a regular expression pattern. The default value is false
-
regex
public TokenizerExpression.Builder regex(boolean regex)
If the token is a regular expression pattern. The default value is false
-
xml
public TokenizerExpression.Builder xml(String xml)
Whether the input is XML messages. This option must be set to true if working with XML payloads.
-
xml
public TokenizerExpression.Builder xml(boolean xml)
Whether the input is XML messages. This option must be set to true if working with XML payloads.
-
includeTokens
public TokenizerExpression.Builder includeTokens(String includeTokens)
Whether to include the tokens in the parts when using pairs The default value is false
-
includeTokens
public TokenizerExpression.Builder includeTokens(boolean includeTokens)
Whether to include the tokens in the parts when using pairs The default value is false
-
group
public TokenizerExpression.Builder group(String group)
To group N parts together, for example to split big files into chunks of 1000 lines. You can use simple language as the group to support dynamic group sizes.
-
groupDelimiter
public TokenizerExpression.Builder groupDelimiter(String groupDelimiter)
Sets the delimiter to use when grouping. If this has not been set then token will be used as the delimiter.
-
skipFirst
public TokenizerExpression.Builder skipFirst(String skipFirst)
To skip the very first element
-
skipFirst
public TokenizerExpression.Builder skipFirst(boolean skipFirst)
To skip the very first element
-
end
public TokenizerExpression 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)
-
-