このコンテンツは選択した言語では利用できません。

27.7. Operator Reference


Binary operators

The binary operators for simple language predicates are shown in Table 27.2, “Binary Operators for the Simple Language”.
Table 27.2. Binary Operators for the Simple Language
OperatorDescription
==Equals.
>Greater than.
>=Greater than or equals.
<Less than.
<=Less than or equals.
!=Not equal to.
containsTest if LHS string contains RHS string.
not containsTest if LHS string does not contain RHS string.
regexTest if LHS string matches RHS regular expression.
not regexTest if LHS string does not match RHS regular expression.
inTest if LHS string appears in the RHS comma-separated list.
not inTest if LHS string does not appear in the RHS comma-separated list.
isTest if LHS is an instance of RHS Java type (using Java instanceof operator).
not isTest if LHS is not an instance of RHS Java type (using Java instanceof operator).
rangeTest if LHS number lies in the RHS range (where range has the format, 'min...max').
not rangeTest if LHS number does not lie in the RHS range (where range has the format, 'min...max').

Unary operators and character escapes

The binary operators for simple language predicates are shown in Table 27.3, “Unary Operators for the Simple Language”.
Table 27.3. Unary Operators for the Simple Language
OperatorDescription
++Increment a number by 1.
--Decrement a number by 1.
\nThe newline character.
\rThe carriage return character.
\tThe tab character.
\(Obsolete) Since Camel version 2.11, the backslash escape character is not supported.

Combining predicates

The conjunctions shown in Table 27.4, “Conjunctions for Simple Language Predicates” can be used to combine two or more simple language predicates.
Table 27.4. Conjunctions for Simple Language Predicates
OperatorDescription
&&Combine two predicates with logical and.
||Combine two predicates with logical inclusive or.
andDeprecated. Use && instead.
orDeprecated. Use || instead.
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.