---
schema_version: "1"
id: d7283b82abba88b2be6c2258b6b19e5ffbfe9b5aa1cb62eeffa5f804d488e81c
title: Tree (dw::util::Tree)
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.8/dw-tree.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree
source_site: docs.mulesoft.com
content_type: documentation
content_hash: a19d96575f4a49d0ff5524539143a35e83953a7a546fc2e88cee35da7f395792
description: MuleSoft Documentation Site
release: "2.8"
latest: false
---
# Tree (dw::util::Tree)

このユーティリティモジュールには、値をツリーデータ構造として処理する関数が用意されています。

このモジュールを使用するには、DataWeave コードにインポートする必要があります。その方法として、たとえば、行 ​`import * from dw::util::Tree`​ を DataWeave スクリプトの ヘッダーに追加します。

_DataWeave バージョン 2.2.2 で導入されました。_

## [](#関数)関数

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree-functions-asexpressionstring" class="xref page">asExpressionString</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Path</code>​ 値をパスの文字列表現に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree-functions-filterarrayleafs" class="xref page">filterArrayLeafs</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">絞り込み式を配列のリーフまたは ​<code>Path</code>​ 値に適用します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree-functions-filterobjectleafs" class="xref page">filterObjectLeafs</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">絞り込み式をオブジェクトのキーのリーフまたは ​<code>Path</code>​ 値に適用します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree-functions-filtertree" class="xref page">filterTree</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">指定された ​<code>criteria</code>​ に基づいて入力内のノードの値またはパスを絞り込みます。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree-functions-isarraytype" class="xref page">isArrayType</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">指定された ​<code>Path</code>​ 値が ​<code>ARRAY_TYPE</code>​ 式の場合、​<code>true</code>​ を返します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree-functions-isattributetype" class="xref page">isAttributeType</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">指定された ​<code>Path</code>​ 値が ​<code>ATTRIBUTE_TYPE</code>​ 式の場合、​<code>true</code>​ を返します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree-functions-isobjecttype" class="xref page">isObjectType</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">指定された ​<code>Path</code>​ 値が ​<code>OBJECT_TYPE</code>​ 式の場合、​<code>true</code>​ を返します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree-functions-mapleafvalues" class="xref page">mapLeafValues</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ツリー内のターミナル (リーフ) ノードをマップします。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree-functions-nodeexists" class="xref page">nodeExists</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">特定のツリー内のいずれかのノードが、指定された条件に対して検証された場合、​<code>true</code>​ を返します。</p></td>
</tr>
</tbody>
</table>

## [](#変数)変数

- [Tree 変数](https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree-variables)

## [](#型)型

- [Tree 型](https://docs.mulesoft.com/jp/dataweave/2.8/dw-tree-types)