Class TokenizerExpression.Builder

All Implemented Interfaces:
LanguageBuilder<TokenizerExpression>
Enclosing class:
TokenizerExpression

Builder is a specific builder for TokenizerExpression.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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

      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.
    • group

      public TokenizerExpression.Builder group(int 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

      Sets the id of this node
    • trim

      public TokenizerExpression.Builder trim(String trim)
      Whether to trim the value to remove leading and trailing whitespaces and line breaks
    • trim

      public TokenizerExpression.Builder trim(boolean trim)
      Whether to trim the value to remove leading and trailing whitespaces and line breaks
    • expression

      public TokenizerExpression.Builder expression(String expression)
      The expression value in your chosen language syntax
    • predicate

      public TokenizerExpression.Builder predicate(org.apache.camel.Predicate predicate)