asExpressionString(path: Path): String Path 値をパスの文字列表現に変換します。 DataWeave バージョン 2.2.2 で導入されました。 パラメーター 名前 説明 path String 値に変換する Path 値。 例 次の例では、Path 値をオブジェクトの属性のセレクターの String 表現に変換します。 ソース %dw 2.0 import * from dw::util::Tree output application/json --- asExpressionString([ {kind: OBJECT_TYPE, selector: "user", namespace: null}, {kind: ATTRIBUTE_TYPE, selector: "name", namespace: null} ]) 出力 ".user.@name"
asExpressionString(path: Path): String Path 値をパスの文字列表現に変換します。 DataWeave バージョン 2.2.2 で導入されました。 パラメーター 名前 説明 path String 値に変換する Path 値。 例 次の例では、Path 値をオブジェクトの属性のセレクターの String 表現に変換します。 ソース %dw 2.0 import * from dw::util::Tree output application/json --- asExpressionString([ {kind: OBJECT_TYPE, selector: "user", namespace: null}, {kind: ATTRIBUTE_TYPE, selector: "name", namespace: null} ]) 出力 ".user.@name"