////////////////////////////////////////////////////////////////////////// // /* // * Licensed to the Apache Software Foundation (ASF) under one // * or more contributor license agreements. See the NOTICE file // * distributed with this work for additional information // * regarding copyright ownership. The ASF licenses this file // * to you under the Apache License, Version 2.0 (the // * "License"); you may not use this file except in compliance // * with the License. You may obtain a copy of the License at // * // * http://www.apache.org/licenses/LICENSE-2.0 // * // * Unless required by applicable law or agreed to in writing, / //* software distributed under the License is distributed on an // * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // * KIND, either express or implied. See the License for the // * specific language governing permissions and limitations // * under the License. // */ // // //============================================================================= // //%/////////////////////////////////////////////////////////////////////////// #pragma locale("en_US") class testElement { [key] string ElementName; string s; char16 c; uint64 n64; uint32 n32; uint16 n16; uint8 n8; real64 r64; real32 r32; datetime d; sint64 s64; sint32 s32; sint16 s16; sint8 s8; boolean b; string childProperty; }; class testElement1 : testElement { }; class testElement2: testElement { }; [association] class testElementAssociation { [key]testElement ref from; [key]testElement1 ref to; }; [association] class testElementAssociation2 { [key]testElement ref from; [key]testElement2 ref to; }; ////////////////////////////////////// // Instances definition Instance of testElement { ElementName = "element1"; s="string5"; c="d"; n64=154; n32=54; n16=54; n8=54; r64=54.0; r32=54.0; d="20071129071628.000000-480"; s64=-530; s32=-530; s16=-50; s8=-10; b=False; childProperty="child property5"; }; Instance of testElement { ElementName = "element2"; s="string5"; c="d"; n64=254; n32=54; n16=54; n8=54; r64=54.0; r32=54.0; d="20071129071628.000000-480"; s64=-530; s32=-530; s16=-50; s8=-10; b=False; childProperty="child property5"; }; Instance of testElement1 { ElementName = "element10"; s="string5"; c="d"; n64=54; n32=54; n16=54; n8=54; r64=54.0; r32=54.0; d="20071129071628.000000-480"; s64=-530; s32=-530; s16=-50; s8=-10; b=False; childProperty="child property5"; }; Instance of testElement1 { ElementName = "element11"; s="string5"; c="d"; n64=54; n32=54; n16=54; n8=54; r64=54.0; r32=54.0; d="20071129071628.000000-480"; s64=-530; s32=-530; s16=-50; s8=-10; b=False; childProperty="child property5"; }; Instance of testElement1 { ElementName = "element12"; s="string5"; c="d"; n64=54; n32=54; n16=54; n8=54; r64=54.0; r32=54.0; d="20071129071628.000000-480"; s64=-530; s32=-530; s16=-50; s8=-10; b=False; childProperty="child property5"; }; Instance of testElement2 { ElementName = "element20"; s="string5"; c="d"; n64=54; n32=54; n16=54; n8=54; r64=54.0; r32=54.0; d="20071129071628.000000-480"; s64=-530; s32=-530; s16=-50; s8=-10; b=False; childProperty="child property8"; }; Instance of testElement2 { ElementName = "element21"; s="string5"; c="d"; n64=54; n32=54; n16=54; n8=54; r64=54.0; r32=54.0; d="20071129071628.000000-480"; s64=-530; s32=-530; s16=-50; s8=-10; b=False; childProperty="child property5"; }; /// Association Definitions instance of testElementAssociation { from = "testElement.ElementName=\"element1\""; to = "testElement1.ElementName=\"element10\""; }; instance of testElementAssociation2 { from = "testElement.ElementName=\"element1\""; to = "testElement2.ElementName=\"element20\""; }; instance of testElementAssociation { from = "testElement.ElementName=\"element2\""; to = "testElement1.ElementName=\"element11\""; }; instance of testElementAssociation2 { from = "testElement.ElementName=\"element2\""; to = "testElement2.ElementName=\"element21\""; };