Contact Us 1-800-596-4880

Tree Types (dw::util::Tree)

Type Definition Description

Path

type Path = Array<PathElement>

Type that consists of an array of PathElement values that identify the location of a node in a tree. An example is [{kind: OBJECT_TYPE, selector: "user", namespace: null}, {kind: ATTRIBUTE_TYPE, selector: "name", namespace: null}] as Path.

Introduced in DataWeave version 2.2.2.

PathElement

type PathElement = {| kind: "Object" | "Attribute" | "Array", selector: String | Number, namespace: Namespace | Null |}

Type that represents a selection of a node in a path. An example is {kind: ARRAY_TYPE, selector: "name", namespace: null} as PathElement.

Introduced in DataWeave version 2.2.2.