Package org.apache.camel.model.language
Class TokenizerExpression.Builder
java.lang.Object
org.apache.camel.model.language.ExpressionDefinition.AbstractBuilder<TokenizerExpression.Builder,TokenizerExpression>
org.apache.camel.model.language.TypedExpressionDefinition.AbstractBuilder<TokenizerExpression.Builder,TokenizerExpression>
org.apache.camel.model.language.SingleInputTypedExpressionDefinition.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 SingleInputTypedExpressionDefinition.AbstractBuilder<TokenizerExpression.Builder,TokenizerExpression>
Builder is a specific builder for TokenizerExpression.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionend()Ends the build of an expression.The end token to use as tokenizer if using start/end token pairs.group(int group) To group N parts together, for example, to split big files into chunks of 1000 lines.To 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.includeTokens(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.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.xml(boolean xml) Whether the input is XML messages.Whether the input is XML messages.Methods inherited from class org.apache.camel.model.language.SingleInputTypedExpressionDefinition.AbstractBuilder
headerName, propertyName, source, variableNameMethods inherited from class org.apache.camel.model.language.TypedExpressionDefinition.AbstractBuilder
resultType, resultTypeNameMethods inherited from class org.apache.camel.model.language.ExpressionDefinition.AbstractBuilder
expression, id, predicate, trim, trim
-
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. -
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 the 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:LanguageBuilderEnds the build of an expression.- Returns:
- the expression fully built.
-