|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). --> |
|
3 <!-- All rights reserved. --> |
|
4 <!-- This component and the accompanying materials are made available --> |
|
5 <!-- under the terms of the License "Eclipse Public License v1.0" --> |
|
6 <!-- which accompanies this distribution, and is available --> |
|
7 <!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
8 <componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" |
|
9 xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" |
|
10 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
11 xsi:schemaLocation="http://www.nokia.com/sdt/emf/component |
|
12 C:\Users\NOKIAI~1\RADPLA~1\design\component.xsd"> |
|
13 |
|
14 <component baseComponent="com.nokia.examples.baseComponent" |
|
15 friendlyName="Source Mapping Test" |
|
16 qualifiedName="com.nokia.examples.srcmapChoicesIsComponentInstanceOf" |
|
17 category="Testing" version="1.0"> |
|
18 <sourceMapping> |
|
19 <mapResource struct="ARRAY" headers="arrayheader.rh"> |
|
20 <mapArrayMember property="." member="items"> |
|
21 <select isComponentInstanceOf="com.nokia.examples.srcmapDerived"> |
|
22 <choice value="true"> |
|
23 <mapResourceElement id="0" struct="SIMPLE_TYPES" headers="basicheader.rh"> |
|
24 <mapFixedMember member="long" value="1"/> |
|
25 </mapResourceElement> |
|
26 </choice> |
|
27 <choice value="false"> |
|
28 <mapResourceElement id="1" struct="SIMPLE_TYPES" headers="basicheader.rh"> |
|
29 <mapFixedMember member="long" value="0"/> |
|
30 </mapResourceElement> |
|
31 </choice> |
|
32 </select> |
|
33 </mapArrayMember> |
|
34 </mapResource> |
|
35 </sourceMapping> |
|
36 |
|
37 <properties> |
|
38 <!-- no properties: instead, the children are mapped --> |
|
39 </properties> |
|
40 </component> |
|
41 </componentDefinition> |