Enum MatchType
マッチタイプ文字列値の照合方法を列挙したものです。文字列のマッチングはブール演算です。文字列、一致条件(文字列)、一致タイプが指定されている場合、次の場合に true
が出力されます。
- 一致タイプが完全一致で、一致キーが文字列と等しい場合。
- 一致タイプが PREFIX で、一致キーワードが文字列の接頭辞である場合。
- 一致タイプが「ANY」で、一致する語句が文字列の部分文字列の場合。
この列挙型は、文字列フィルタ コントロールで使用して、データ表から除外する行を決定できます。フィルタする列を指定し、上記の照合タイプの一つを使用して、フィルタ入力ボックスに入力した値に一致する行のみを残します。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、
Charts.MatchType.EXACT
です。
プロパティ
プロパティ | タイプ | 説明 |
EXACT | Enum | 値の完全一致のみを検索する |
PREFIX | Enum | 値の先頭から始まる接頭辞を照合する |
ANY | Enum | 任意の部分文字列に一致する |
メソッド
メソッド | 戻り値の型 | 概要 |
getName() | String | オプション JSON で使用する一致タイプの名前を返します。 |
詳細なドキュメント
getName()
オプション JSON で使用する一致タイプの名前を返します。
戻る
String
- 型の名前。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-02 UTC。
[null,null,["最終更新日 2024-12-02 UTC。"],[[["`MatchType` is an enumeration used to define how a string value should be matched against a given search term."],["It provides three options: `EXACT`, `PREFIX`, and `ANY` for matching exact values, prefixes, and substrings respectively."],["This enumeration can be utilized by string filter controls to filter data table rows based on user input and the selected match type."],["Calling a `MatchType` property is done using the parent class, name, and desired property, for instance, `Charts.MatchType.EXACT`."],["The `getName()` method is available to retrieve the name of the match type for use in JSON options."]]],["MatchType defines string matching criteria. `EXACT` requires an exact string match. `PREFIX` checks if the match term is at the beginning of the string. `ANY` verifies if the match term is a substring. This determines if a row should be kept when filtering a data table. `getName()` returns the match type's name. The enum can be called using `Charts.MatchType.[property]` (e.g., `Charts.MatchType.EXACT`).\n"]]