|
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 <!-- test a case with three explicit choices. --> |
|
15 |
|
16 <component baseComponent="com.nokia.examples.baseComponent" |
|
17 friendlyName="Source Mapping Test" qualifiedName="com.nokia.examples.srcmapChoicesABC" |
|
18 category="Testing" version="1.0"> |
|
19 |
|
20 <sourceMapping> |
|
21 <mapResource struct="COMMAND" headers="enumsheader.rh"> |
|
22 <select property="type"> |
|
23 <choice value="A"> |
|
24 <mapSimpleMember property="A" member="command"/> |
|
25 </choice> |
|
26 <choice value="B"> |
|
27 <mapSimpleMember property="B" member="command"/> |
|
28 </choice> |
|
29 <choice value="C"> |
|
30 <mapSimpleMember property="C" member="command"/> |
|
31 </choice> |
|
32 </select> |
|
33 </mapResource> |
|
34 </sourceMapping> |
|
35 |
|
36 <properties> |
|
37 <property name="type" type="string"/> |
|
38 <property name="A" type="integer"/> |
|
39 <property name="B" type="integer"/> |
|
40 <property name="C" type="integer"/> |
|
41 </properties> |
|
42 </component> |
|
43 </componentDefinition> |