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

## [](#型)型

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