エレメントの置換

メニュー エレメントの置換
単一選択の使用可能性 アクションはエレメントのステートメントの選択時に使用可能になり、エレメントは少なくとも以下の 1 つを満たします。
  • 置換グループに属する。
  • そのタイプが他のエレメントの基本タイプであるか、または別のエレメントのタイプから派生している。
単一選択時の動作 ダイアログに、すべての置換可能な非抽象エレメントと派生型が示されます。 選択したステートメントの位置に、ElementMsgStatement が作成されます。 ステートメントのマップ可能エンティティー、headElement、xsiType は、ダイアログで指定された内容に設定されます。 ステートメントには、選択したステートメントのすべての内容 (MapFromStatement、および包含されているマップ構造を含む) が含まれます。
複数選択の使用可能性 使用不可
例:  
スキーマ構造 ターゲット・ペインのツリー構造
Element Address は AddressType であり、抽象タイプです。USAddressType は AddressType から派生したものです。NYAddressType は USAddressType から派生したものです。 AddressType の BuyerAddress は、Address の置換グループに属しています。NYAddressType の SellerAddress は、Address の置換グループに属しています。
PurchaseOrder
    Substitutions for Address
       Specializations for AddressType
           BuyerAddress (AddressType)
           BuyerAddress (USAddressType)
           BuyerAddress (NYAddressType)
       SellerAddress (NYAddressType)
エレメント (BuyerAddress、USAddressType) を置換する前のステートメント sellerAddress および NYAddressType を選択した後のステートメント
ElementMsgStatement PurchaseOrder
  Qualify
   Condition
      ElementMsgStatement element(BuyerAddress, AddressType)
   Condition
      ElementMsgStatement element(BuyerAddress, USAddressType)
        ElementMsgStatement element(Name, xs:string)
          MapFromStatement ""John Smith""
        ElementMsgStatement element(Street, xs:string)
          MapFromStatement ""123 Main Street, Manhatten, NY""
   Condition
      ElementMsgStatement element(BuyerAddress, NYAddressType)
   Condition
      ElementMsgStatement element(SellerAddress, NYAddressType)
ElementMsgStatement PurchaseOrder
  Qualify
   Condition
      ElementMsgStatement element(BuyerAddress, AddressType)
   Condition
      ElementMsgStatement element(SellerAddress, NYAddressType)
        ElementMsgStatement element(Name, xs:string)
          MapFromStatement ""John Smith""
        ElementMsgStatement element(Street, xs:string)
          MapFromStatement ""123 Main Street, Manhatten, NY""
   Condition
      ElementMsgStatement element(BuyerAddress, NYAddressType)
   Condition
      ElementMsgStatement element(SellerAddress, NYAddressType)
ダイアログのユーザー・インターフェース 前述の例におけるダイアログの内容
  1. 選択したエレメント名とタイプが表示されます。
  2. 適格な置換エレメント名がすべて表示されます。
  3. 選択したエレメント名に適格なタイプがすべて表示されます。
  1. BuyerAddress, USAddressType
  2. {BuyerAddress, SellerAddress}
  3. BuyerAddress には {AddressType, USAddressType, NYAddressType}、SellerAddress には {NYAddressType}
関連タスク
メッセージ・マッピングの開発
特記事項 | 商標 | ダウンロード | ライブラリー | サポート | フィードバック
Copyright IBM Corporation 1999, 2005 Last updated: 11/07/2005
ar25236_1_