---
schema_version: "1"
id: 21297c95d2b3a3b2ef0a128776290aba7c67cb3e5f94c2cb1b7e16e4c0ca5816
title: Tree (dw::util::Tree)
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.5/dw-tree.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.5/dw-tree
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e242fd50e9087cb983dbb8a2b3909962965403d5e927569b46cb2f156a8b9696
description: MuleSoft Documentation Site
release: "2.5"
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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/dw-tree-variables)

## [](#型)型

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