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 for TokenizerExpression
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionend()
Ends the build of an expression.The end token to use as tokenizer if using start/end token pairs.expression
(String expression) The expression value in your chosen language syntaxTo group N parts together, for example to split big files into chunks of 1000 lines.groupDelimiter
(String groupDelimiter) Sets the delimiter to use when grouping.Sets the id of this nodeincludeTokens
(boolean includeTokens) Whether to include the tokens in the parts when using pairsincludeTokens
(String includeTokens) Whether to include the tokens in the parts when using pairsinheritNamespaceTagName
(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.predicate
(org.apache.camel.Predicate predicate) regex
(boolean regex) If the token is a regular expression pattern.If the token is a regular expression pattern.skipFirst
(boolean skipFirst) To skip the very first elementTo skip the very first elementThe (start) token to use as tokenizer, for example you can use the new line token.trim
(boolean trim) Whether to trim the value to remove leading and trailing whitespaces and line breaksWhether to trim the value to remove leading and trailing whitespaces and line breaksxml
(boolean xml) Whether the input is XML messages.Whether the input is XML messages.Methods inherited from class org.apache.camel.model.language.SingleInputExpressionDefinition.AbstractBuilder
headerName, propertyName
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
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
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
If the token is a regular expression pattern. The default value is false -
regex
If the token is a regular expression pattern. The default value is false -
xml
Whether the input is XML messages. This option must be set to true if working with XML payloads. -
xml
Whether the input is XML messages. This option must be set to true if working with XML payloads. -
includeTokens
Whether to include the tokens in the parts when using pairs The default value is false -
includeTokens
Whether to include the tokens in the parts when using pairs The default value is false -
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
Sets the delimiter to use when grouping. If this has not been set then token will be used as the delimiter. -
skipFirst
To skip the very first element -
skipFirst
To skip the very first element -
end
Description copied from interface:LanguageBuilder
Ends the build of an expression.- Returns:
- the expression fully built.
-
id
Sets the id of this node -
trim
Whether to trim the value to remove leading and trailing whitespaces and line breaks -
trim
Whether to trim the value to remove leading and trailing whitespaces and line breaks -
expression
The expression value in your chosen language syntax -
predicate
-