複合構造グループ
それは複数を組み合わせるのに役立ちます 熱 意/ヘルプ/ zest -仕様ファイル/構造グループ/導入/"> 同じリソースまたは他のリソースから使用し、現在のリソースに使用します。
可能な場所
- 熱 意/ヘルプ/ zest -仕様ファイル/構造/プロパティ/導入/">プロパティ - 熱 意/ヘルプ/ zest -仕様ファイル/コンテンツ/紹介/">コンテンツ - 熱 意/ヘルプ/ zest -仕様ファイル/コンポーネント/">コンポーネント
子要素
- 熱意 /ヘルプ/ -仕 zest 様ファイル/構造グループ/導入/">構造グループ 必須 繰り返し
例
現在作業中のリソースに対して 2 つの構造グループをマージすることを検討してください。 要件は、2 つの異なる構造グループをマージし、新しい構造グループを生成することです。 熱 意/ヘルプ/ zest -仕様ファイル/構造グループ/導入/"> すべての可能な組み合わせの構造で。以下は、複合構造グループがどのように機能するかです。次の 2 つの構造体グループ 1 と 2 があり、指定された構造体は次のとおりです。
copy
-
structure group one: structure A, structure B
-
structure group two: structure C, structure D
これで、複合構造グループはこれら4つの構造をすべてマージし、以下の構造を持つ新しい構造グループを生成します。
copy
composite structure group: structure AC, structure AD, structure BC, structure BD
複合構造グループを宣言する方法は次のとおりです。
copy
<composite-structure-groups>
<structure-group name="one">
<structure name="A">
<property type="string"/>
<property name="FieldTwo" type="string"/>
</structure>
<structure name="B">
<property name="FieldThree" type="string"/>
<property name="FieldFour" type="string"/>
</structure>
</structure-group>
<structure-group name="two">
<structure name="C">
<property name="FieldFive" type="string"/>
<property name="FieldSix" type="string"/>
</structure>
<structure name="D">
<property name="FieldSeven" type="string"/>
<property name="FieldEight" type="string"/>
</structure>
</structure-group>
</composite-structure-groups>
ZEST 以下に示すように、この要素を変換し、その構成要素(開発、自動化、Sdk、ヘルプドキュメント)で使用します。
copy
<structure-group name="onetwo">
<structure name="AC">
<property name="FieldOne" type="string"/>
<property name="FieldTwo" type="string"/>
<property name="FieldFive" type="string"/>
<property name="FieldSix" type="string"/>
</structure>
<structure name="AD">
<property name="FieldOne" type="string"/>
<property name="FieldTwo" type="string"/>
<property name="FieldSeven" type="string"/>
<property name="FieldEight" type="string"/>
</structure>
<structure name="BC">
<property name="FieldThree" type="string"/>
<property name="FieldFour" type="string"/>
<property name="FieldFive" type="string"/>
<property name="FieldSix" type="string"/>
</structure>
<structure name="BD">
<property name="FieldThree" type="string"/>
<property name="FieldFour" type="string"/>
<property name="FieldSeven" type="string"/>
<property name="FieldEight" type="string"/>
</structure>
</structure-group>
Last Updated 2026-02-06 15:55:45 +0530 IST
Yes
No
Send your feedback to us
Skip
Submit