-
Notifications
You must be signed in to change notification settings - Fork 12
/
EMFTextGuide.html
10115 lines (9700 loc) · 480 KB
/
EMFTextGuide.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">
<!-- html -->
<meta name="src" content="EMFTextGuide.tex">
<meta name="date" content="2012-09-27 09:07:00">
<link rel="stylesheet" type="text/css" href="EMFTextGuide.css">
</head><body
>
<div class="titlepage">
<!--l. 65--><p class="indent" >
<!--l. 75--><p class="noindent" ><img
src="figures/EMFTextLogo.png" alt="PIC"
>
<!--l. 81--><p class="noindent" ><span
class="phvr8t-x-x-400">USER GUIDE</span>
<div class="flushright"
>
<!--l. 86--><p class="noindent" >
<span
class="aer12-">September 27, 2012</span></div>
</div>
<h2 class="likechapterHead"><a
id="x1-1000"></a>Contents</h2>
<div class="tableofcontents">
<span class="chapterToc" >1  <a
href="#x1-20001" id="QQ2-1-2">Overview</a></span>
<br />  <span class="sectionToc" >1.1  <a
href="#x1-30001.1" id="QQ2-1-3">Generation features</a></span>
<br />  <span class="sectionToc" >1.2  <a
href="#x1-40001.2" id="QQ2-1-4">Specification features</a></span>
<br />  <span class="sectionToc" >1.3  <a
href="#x1-50001.3" id="QQ2-1-5">Editor features</a></span>
<br />  <span class="sectionToc" >1.4  <a
href="#x1-60001.4" id="QQ2-1-6">Other features</a></span>
<br /> <span class="chapterToc" >2  <a
href="#x1-70002" id="QQ2-1-7">Getting Started with EMFText</a></span>
<br />  <span class="sectionToc" >2.1  <a
href="#x1-80002.1" id="QQ2-1-10">Specifying a Language Metamodel</a></span>
<br />  <span class="sectionToc" >2.2  <a
href="#x1-90002.2" id="QQ2-1-11">Specifying the Language’s Concrete Syntax</a></span>
<br />  <span class="sectionToc" >2.3  <a
href="#x1-100002.3" id="QQ2-1-12">Generating the Language Tooling</a></span>
<br />   <span class="subsectionToc" >2.3.1  <a
href="#x1-110002.3.1" id="QQ2-1-13">Generating Resource Plug-ins in Eclipse</a></span>
<br />   <span class="subsectionToc" >2.3.2  <a
href="#x1-120002.3.2" id="QQ2-1-15">Generating Resource Plug-ins with ANT</a></span>
<br />  <span class="sectionToc" >2.4  <a
href="#x1-170002.4" id="QQ2-1-20">Optionally Customising the Language Tooling</a></span>
<br /> <span class="chapterToc" >3  <a
href="#x1-180003" id="QQ2-1-21">Concrete Syntax Specification Language (CS)</a></span>
<br />  <span class="sectionToc" >3.1  <a
href="#x1-190003.1" id="QQ2-1-22">Configuration Block</a></span>
<br />   <span class="subsectionToc" >3.1.1  <a
href="#x1-200003.1.1" id="QQ2-1-23">Required General Information</a></span>
<br />   <span class="subsectionToc" >3.1.2  <a
href="#x1-210003.1.2" id="QQ2-1-24">Importing other Metamodels and Syntax Specifications</a></span>
<br />   <span class="subsectionToc" >3.1.3  <a
href="#x1-220003.1.3" id="QQ2-1-25">Code Generation Options</a></span>
<br />  <span class="sectionToc" >3.2  <a
href="#x1-230003.2" id="QQ2-1-26">Tokens</a></span>
<br />   <span class="subsectionToc" >3.2.1  <a
href="#x1-240003.2.1" id="QQ2-1-27">Defining Custom Tokens</a></span>
<br />   <span class="subsectionToc" >3.2.2  <a
href="#x1-250003.2.2" id="QQ2-1-28">Composed Tokens</a></span>
<br />   <span class="subsectionToc" >3.2.3  <a
href="#x1-260003.2.3" id="QQ2-1-29">Token Priorities</a></span>
<br />  <span class="sectionToc" >3.3  <a
href="#x1-270003.3" id="QQ2-1-30">Token Styles</a></span>
<br />  <span class="sectionToc" >3.4  <a
href="#x1-280003.4" id="QQ2-1-31">Syntax Rules</a></span>
<br />   <span class="subsectionToc" >3.4.1  <a
href="#x1-290003.4.1" id="QQ2-1-32">Simple Syntax</a></span>
<br />   <span class="subsectionToc" >3.4.2  <a
href="#x1-300003.4.2" id="QQ2-1-33">Syntax for EAttributes</a></span>
<br />   <span class="subsectionToc" >3.4.3  <a
href="#x1-340003.4.3" id="QQ2-1-37">Syntax for EReferences</a></span>
<br />   <span class="subsectionToc" >3.4.4  <a
href="#x1-370003.4.4" id="QQ2-1-40">Syntax for Printing Instructions</a></span>
<br />   <span class="subsectionToc" >3.4.5  <a
href="#x1-400003.4.5" id="QQ2-1-43">Syntax for Expressions</a></span>
<br />   <span class="subsectionToc" >3.4.6  <a
href="#x1-410003.4.6" id="QQ2-1-44">Overriding Imported Rules</a></span>
<br />  <span class="sectionToc" >3.5  <a
href="#x1-420003.5" id="QQ2-1-45">Suppressing Warnings</a></span>
<br /> <span class="chapterToc" >4  <a
href="#x1-430004" id="QQ2-1-46">DSL Customization</a></span>
<br />  <span class="sectionToc" >4.1  <a
href="#x1-440004.1" id="QQ2-1-47">Customization Techniques</a></span>
<br />   <span class="subsectionToc" >4.1.1  <a
href="#x1-450004.1.1" id="QQ2-1-48">Overriding Generated Artifacts</a></span>
<br />   <span class="subsectionToc" >4.1.2  <a
href="#x1-460004.1.2" id="QQ2-1-49">Overriding Meta Information Classes</a></span>
<br />   <span class="subsectionToc" >4.1.3  <a
href="#x1-470004.1.3" id="QQ2-1-50">Using Generated Extension Points</a></span>
<br />  <span class="sectionToc" >4.2  <a
href="#x1-480004.2" id="QQ2-1-51">Concrete Customizations</a></span>
<br />   <span class="subsectionToc" >4.2.1  <a
href="#x1-490004.2.1" id="QQ2-1-52">Customizing Token Resolving</a></span>
<br />   <span class="subsectionToc" >4.2.2  <a
href="#x1-520004.2.2" id="QQ2-1-55">Customizing Reference Resolving</a></span>
<br />   <span class="subsectionToc" >4.2.3  <a
href="#x1-530004.2.3" id="QQ2-1-56">Implementing Post Processors</a></span>
<br />   <span class="subsectionToc" >4.2.4  <a
href="#x1-540004.2.4" id="QQ2-1-57">Implementing Quick Fixes</a></span>
<br />   <span class="subsectionToc" >4.2.5  <a
href="#x1-550004.2.5" id="QQ2-1-58">Implementing Builders</a></span>
<br />   <span class="subsectionToc" >4.2.6  <a
href="#x1-560004.2.6" id="QQ2-1-59">Implementing Interpreters</a></span>
<br />   <span class="subsectionToc" >4.2.7  <a
href="#x1-570004.2.7" id="QQ2-1-60">Customizing Text Hovers</a></span>
<br />   <span class="subsectionToc" >4.2.8  <a
href="#x1-580004.2.8" id="QQ2-1-61">Customizing Code Completion Proposals</a></span>
<br />   <span class="subsectionToc" >4.2.9  <a
href="#x1-590004.2.9" id="QQ2-1-62">Adding Context Menu Items to the Outline View</a></span>
<br />   <span class="subsectionToc" >4.2.10  <a
href="#x1-600004.2.10" id="QQ2-1-63">Providing Custom Content for Files created by the New File Wizard</a></span>
<br />   <span class="subsectionToc" >4.2.11  <a
href="#x1-610004.2.11" id="QQ2-1-64">Providing Custom Content for Projects created by the
New Project Wizard</a></span>
<br />   <span class="subsectionToc" >4.2.12  <a
href="#x1-620004.2.12" id="QQ2-1-65">Implementing Launch Support</a></span>
<br />   <span class="subsectionToc" >4.2.13  <a
href="#x1-630004.2.13" id="QQ2-1-66">Enabling Debug Support</a></span>
<br />   <span class="subsectionToc" >4.2.14  <a
href="#x1-640004.2.14" id="QQ2-1-67">Working with Layout Information</a></span>
<br /> <span class="chapterToc" >5  <a
href="#x1-650005" id="QQ2-1-68">Integration with other Frameworks</a></span>
<br />  <span class="sectionToc" >5.1  <a
href="#x1-660005.1" id="QQ2-1-69">Integration with the EMF Edit Framework</a></span>
<br />  <span class="sectionToc" >5.2  <a
href="#x1-670005.2" id="QQ2-1-70">Integration with the EMF Validation Framework</a></span>
<br /> <span class="chapterToc" >A  <a
href="#x1-69000A" id="QQ2-1-72">Appendix</a></span>
<br />  <span class="sectionToc" >A1  <a
href="#x1-70000A1" id="QQ2-1-73">Code Generation Options</a></span>
<br />  <span class="sectionToc" >A2  <a
href="#x1-71000A2" id="QQ2-1-74">Types of Warnings</a></span>
<br />  <span class="sectionToc" >A3  <a
href="#x1-72000A3" id="QQ2-1-75">Syntax Dependent Artifacts</a></span>
<br /> <span class="chapterToc" >  <a
href="#Q1-1-77">Bibliography</a></span>
</div>
<!--l. 99--><p class="indent" >
<h2 class="chapterHead"><span class="titlemark">1</span>  <a
id="x1-20001"></a>Overview</h2>
<!--l. 2--><p class="noindent" >EMFText is a tool for defining textual syntax for Ecore-based metamodels. It enables developers to
define their own textual languages—be it domain specific languages (e.g., a language for describing
forms) or general purpose languages (e.g., Java)—and generates accompanying tool support for these
languages. It provides a domain specific language (DSL) for syntax specification from
which it generates a full-fledged Eclipse editor and components to load and store model
instances.
<!--l. 10--><p class="indent" > To give a quick overview, some of the most compelling features of EMFText are outlined in the
following.
<h3 class="sectionHead"><span class="titlemark">1.1</span>  <a
id="x1-30001.1"></a>Generation features</h3>
<!--l. 14--><p class="noindent" >EMFText uses a generative approach where all artifacts that form the tooling for a textual language
are generated. This includes a parser for loading textual models, a printer for storing model instances
and the editor with all its customizable components.
<dl class="description"><dt class="description">
<span
class="aessbx-10x-x-109">Generation of independent code</span> </dt><dd
class="description">The code that is generated by EMFText does not contain
dependencies to EMFText and is fully customizable. This implies that generated language
tooling can be deployed in environments where EMFText is not available and that future
compatibility issues are completely avoided.
</dd><dt class="description">
<span
class="aessbx-10x-x-109">Generation of default syntaxes</span> </dt><dd
class="description">With EMFText, initial syntaxes for the textual DSL can
be generated in one step for any Ecore-based metamodel. One can generate a syntax
that conforms to the HUTN standard <span class="cite">[<a
href="#XHUTN">Obj02</a>]</span>, a Java-like syntax, or a custom syntax
configured by using the custom syntax wizard. In all cases, the initial, generated
specification of the syntax can be further tailored towards specific needs (cf. Section <a
href="#x1-90002.2">2.2<!--tex4ht:ref: sec:process_specification --></a>).
</dd><dt class="description">
<span
class="aessbx-10x-x-109">Highly customizable code generation</span> </dt><dd
class="description">EMFText provides many options for tailoring its code
generation process to specific needs. For example, manually modified code can be
preserved by disabling its generation or custom license headers can be provided if needed
(cf. Appendix <a
href="#x1-70000A1">A1<!--tex4ht:ref: app:options --></a>).
</dd></dl>
<!--l. 45--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">1.2</span>  <a
id="x1-40001.2"></a>Specification features</h3>
<!--l. 47--><p class="noindent" >EMFText comes with a simple but rich syntax specification language—the <span
class="aesl-10x-x-109">Concrete Syntax</span>
<span
class="aesl-10x-x-109">Specification Language (CS)</span>. It is based on EBNF and follows the concept of <span
class="aesl-10x-x-109">convention over</span>
<span
class="aesl-10x-x-109">configuration</span>. This allows for very compact and intuitive syntax specifications, but still supports
tweaking specifics where needed (cf. Chapter <a
href="#x1-180003">3<!--tex4ht:ref: chap:cs --></a>).
<dl class="description"><dt class="description">
<span
class="aessbx-10x-x-109">Modular specification</span> </dt><dd
class="description">EMFText provides an import mechanism that not only supports
specification of a single text syntax for multiple related Ecore models, but also allows for
modularization and extension of CS specifications (cf. Section <a
href="#x1-210003.1.2">3.1.2<!--tex4ht:ref: sec:cs_import --></a>).
</dd><dt class="description">
<span
class="aessbx-10x-x-109">Default reference resolving mechanisms</span> </dt><dd
class="description">A default name resolution mechanism for models
with globally unique names is available out of the box for any syntax. Also, external
references are resolved automatically, if URIs are used to point to the referenced elements.
More complex resolution mechanisms can be realized by implementing generated
resolving methods (cf. Section <a
href="#x1-520004.2.2">4.2.2<!--tex4ht:ref: sec:cust_reference_resolving --></a>).
</dd><dt class="description">
<span
class="aessbx-10x-x-109">Comprehensive syntax analysis</span> </dt><dd
class="description">A number of analyses of CS specifications inform the
developer about potential errors in the syntax—like missing syntax for certain metaclasses
(cf. Appendix <a
href="#x1-71000A2">A2<!--tex4ht:ref: app:warnings --></a>).
</dd></dl>
<!--l. 76--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">1.3</span>  <a
id="x1-50001.3"></a>Editor features</h3>
<!--l. 78--><p class="noindent" >Editors generated by EMFText provide many advanced features that are known from, e.g., the
Eclipse Java editor. This includes code completion (with customizable completion proposals
cf. Section <a
href="#x1-520004.2.2">4.2.2<!--tex4ht:ref: sec:cust_reference_resolving --></a> and Section <a
href="#x1-580004.2.8">4.2.8<!--tex4ht:ref: sec:cust_code_completion --></a>), customizable syntax and occurrence highlighting via preference
pages, advanced bracket handling, code folding, hyperlinks and text hovers for quick navigation, an
outline view and instant error reporting.
<!--l. 86--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">1.4</span>  <a
id="x1-60001.4"></a>Other features</h3>
<!--l. 88--><p class="noindent" >EMFText provides numerous other interesting features, some of them outlined below.
<dl class="description"><dt class="description">
<span
class="aessbx-10x-x-109">ANT support</span> </dt><dd
class="description">Dedicated ANT tasks are provided to allow the generation of text syntax
plug-ins in build scripts (cf. Section <a
href="#x1-120002.3.2">2.3.2<!--tex4ht:ref: sec:process_generating_ant --></a>).
</dd><dt class="description">
<span
class="aessbx-10x-x-109">Support for post processors</span> </dt><dd
class="description">By default, registered post processors are called by the tooling
after parsing. These post processors can be customized to check consistency of models or
perform necessary modifications after parsing (cf. Section <a
href="#x1-530004.2.3">4.2.3<!--tex4ht:ref: sec:cust_post_processors --></a>).
</dd><dt class="description">
<span
class="aessbx-10x-x-109">Generation of builder stubs</span> </dt><dd
class="description">EMFText generates a builder stub that can be used to process
model instances on changes and to automatically produce derived resources when needed
(cf. Section <a
href="#x1-550004.2.5">4.2.5<!--tex4ht:ref: sec:cust_builders --></a>).
</dd><dt class="description">
<span
class="aessbx-10x-x-109">Generation of interpreter stubs</span> </dt><dd
class="description">Similarly, interpreters are used to execute model instances
(cf. Section <a
href="#x1-560004.2.6">4.2.6<!--tex4ht:ref: sec:cust_interpreters --></a>).
</dd><dt class="description">
<span
class="aessbx-10x-x-109">Quick fixes</span> </dt><dd
class="description">Quick fixes provide actions that can automatically solve problems found during
analysis of model instances. EMFText provides means to attach quick fixes to
reported problems which then can be fixed by the developer in a convenient way
(cf. Section <a
href="#x1-540004.2.4">4.2.4<!--tex4ht:ref: sec:cust_quick_fixes --></a>).
</dd></dl>
<!--l. 1--><p class="noindent" >
<h2 class="chapterHead"><span class="titlemark">2</span>  <a
id="x1-70002"></a>Getting Started with EMFText</h2>
<!--l. 3--><p class="noindent" >Generating an advanced Eclipse editor for a new language with EMFText just requires a few
specifications and a generation step. Basically, a language specification for EMFText consists of a
language metamodel and a concrete syntax specification. Taking these specifications the EMFText
generator derives an advanced textual editor, that uses a likewise generated parser and printer to
parse language expressions to EMF models or to print EMF models to languages expressions
respectively.
<!--l. 11--><p class="indent" > <hr class="figure"><div class="figure"
>
<a
id="x1-70011"></a>
<!--l. 16--><p class="noindent" ><img
src="figures/process.png" alt="PIC"
>
<br /> <div class="caption"><table class="caption"
><tr style="vertical-align:baseline;" class="caption"><td class="id">Figure 2.1: </td><td
class="content">Iterative EMFText language development process.</td></tr></table></div><!--tex4ht:label?: x1-70011 -->
<!--l. 20--><p class="indent" > </div><hr class="endfigure">
<!--l. 22--><p class="noindent" >The basic language development process with EMFText is depicted in Fig. <a
href="#x1-70011">2.1<!--tex4ht:ref: fig:process --></a>. It is an iterative
process that can be passed several times and consists of the following basic tasks:
<dl class="description"><dt class="description">
<span
class="aessbx-10x-x-109">(1)</span> </dt><dd
class="description">Specifying a Language Metamodel,
</dd><dt class="description">
<span
class="aessbx-10x-x-109">(2)</span> </dt><dd
class="description">Specifying the Language’s Concrete Syntax,
</dd><dt class="description">
<span
class="aessbx-10x-x-109">(3)</span> </dt><dd
class="description">Generating the Language Tooling,
</dd><dt class="description">
<span
class="aessbx-10x-x-109">(4)</span> </dt><dd
class="description">Optionally Customising the Language Tooling.</dd></dl>
<!--l. 34--><p class="indent" > Each of the these tasks will be explained and exemplified in the subsequent sections:
<!--l. 37--><p class="indent" > <hr class="figure"><div class="figure"
>
<a
id="x1-70022"></a>
<!--l. 42--><p class="noindent" ><img
src="figures/wizard.png" alt="PIC"
>
<br /> <div class="caption"><table class="caption"
><tr style="vertical-align:baseline;" class="caption"><td class="id">Figure 2.2: </td><td
class="content">EMFText Project wizard.</td></tr></table></div><!--tex4ht:label?: x1-70022 -->
<!--l. 46--><p class="indent" > </div><hr class="endfigure">
<!--l. 50--><p class="indent" > To kick-start the development of a new language you can use the EMFText project wizard. Select
<span
class="aesl-10x-x-109">File > New > Other... > EMFText Project</span>. In the Wizard (cf. Fig. <a
href="#x1-70022">2.2<!--tex4ht:ref: fig:wizard --></a>) you just enter the language
name and EMFText will initialise a new EMFText Project containing a metamodel folder that holds
an initial metamodel and syntax specification.
<h3 class="sectionHead"><span class="titlemark">2.1</span>  <a
id="x1-80002.1"></a>Specifying a Language Metamodel</h3>
<!--l. 58--><p class="noindent" >As EMFText is tightly integrated with the Eclipse Modeling Framework (EMF) <span class="cite">[<a
href="#XEMF">SBPM08</a>]</span> language
metamodels are specified using the Ecore Metamodelling Language. The metamodel specifies the
abstract syntax of a new language. It can be build from <span
class="aesl-10x-x-109">classes </span>with <span
class="aesl-10x-x-109">attributes </span>that are related using
<span
class="aesl-10x-x-109">references</span>. References are further distinguished into <span
class="aesl-10x-x-109">containment </span>references and <span
class="aesl-10x-x-109">non-containment</span>
references. It is important to notice this difference, as both reference types have different
semantics in EMF and are also handled differently in EMFText. Containment references
are used to relate a parent model element and a child model element that is declared
in the context of the parent element. An example which can be found for instance in
object-oriented programming languages is the declaration of a method within the body of a
class declaration. Non-containment references are used to relate a model element with an
element that is declared elsewhere (not as one of its children). An example for programming
languages is a method call (declared in a statement in the body of a method declaration) that
relates to the method that it calls using a non-containment reference. The referenced
method, however, is declared elsewhere: In a class the method relates to with a containment
reference.
<!--l. 76--><p class="indent" > <span
class="aesl-10x-x-109">Example. </span>To define a metamodel for a language, we have to consider the concepts this language
deals with, how they interrelate and what attributes they have. In the following we discuss the
concepts of an exemplary language to specify forms and how they are represented in a forms
metamodel.
<ul class="itemize1">
<li class="itemize">A Form (class) has a caption (attribute) and contains (containment reference) a number
of question Groups (class).
</li>
<li class="itemize">Each Group has a name (attribute) and contains (containment reference) a number of
question Items (class).
</li>
<li class="itemize">Each Item has a question text (attribute) and an explanation (attribute).
</li>
<li class="itemize">There are various Types (class) of question items with regard to the answer values
they expect: e.g., Text questions (subclass), Date questions (subclass), Number questions
(subclass), Choices (subclass), or Decisions (subclass).
</li>
<li class="itemize">Choices and Decisions declare (containment reference) a number of selection Options
(class).
</li>
<li class="itemize">There may be question Items that are dependent of (non-containment reference) the
selection of a particular Option in another Item, e.g., a question that asks for the age of
your children, only if you previously selected that you have some.</li></ul>
<!--l. 102--><p class="indent" > The subsequent listing depicts a textual representation of the according EMF metamodel. Besides
the mapping of forms concepts to Ecore it also refines the multiplicities and types. A
new text.ecore metamodel is created by selecting <span
class="aesl-10x-x-109">File > New > Other... > EMFText</span>
<span
class="aesl-10x-x-109">.text.ecore file</span>. For a detailed introduction on the basics of Ecore metamodelling we refer to
<span class="cite">[<a
href="#XEMF">SBPM08</a>]</span>.
<!--l. 111-->
<div class="lstlisting" id="listing-1"><span class="label"><a
id="x1-8001r1"></a></span><span
class="ul9b8t-x-x-95">package</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">forms</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">//</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">this</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">is</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">the</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">package</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">name</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8002r2"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">forms</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">//</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">this</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">is</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">the</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">namespace</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">prefix</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8003r3"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">"</span><span
class="ul9r8t-x-x-95">http</span><span
class="ul9r8t-x-x-95">://</span><span
class="ul9r8t-x-x-95">org</span><span
class="ul9r8t-x-x-95">.</span><span
class="ul9r8t-x-x-95">emftext</span><span
class="ul9r8t-x-x-95">/</span><span
class="ul9r8t-x-x-95">language</span><span
class="ul9r8t-x-x-95">/</span><span
class="ul9r8t-x-x-95">forms</span><span
class="ul9r8t-x-x-95">.</span><span
class="ul9r8t-x-x-95">ecore</span><span
class="ul9r8t-x-x-95">"</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">//</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">the</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">namespace</span><span
class="ul9ro8t-x-x-95"> </span><span
class="ul9ro8t-x-x-95">URI</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8004r4"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">{</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8005r5"></a></span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8006r6"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">class</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">Form</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">{</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8007r7"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">attribute</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">EString</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">caption</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">(0..1);</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8008r8"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">containment</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">reference</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">Group</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">groups</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">(1..-1)</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">;</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8009r9"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">}</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8010r10"></a></span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8011r11"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">class</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">Group</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">{</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8012r12"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">attribute</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">EString</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">name</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">(1..1);</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8013r13"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">containment</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">reference</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">Item</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">items</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">(1..-1);</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8014r14"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">}</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8015r15"></a></span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8016r16"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">class</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">Item</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">{</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8017r17"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">attribute</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">EString</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">text</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">(0..1);</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8018r18"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">attribute</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">EString</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">explanation</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">(0..1);</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8019r19"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">containment</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">reference</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">ItemType</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">itemType</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">(1..1);</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8020r20"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">reference</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">Option</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">dependentOf</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">(0..-1);</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8021r21"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">}</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8022r22"></a></span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8023r23"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">abstract</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">class</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">ItemType</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">{}</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8024r24"></a></span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8025r25"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">class</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">FreeText</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">extends</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">ItemType</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">{}</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8026r26"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">class</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">Date</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">extends</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">ItemType</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">{}</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8027r27"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">class</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">Number</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">extends</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">ItemType</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">{}</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8028r28"></a></span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8029r29"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">class</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">Choice</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">extends</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">ItemType</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">{</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8030r30"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">attribute</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">EBoolean</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">multiple</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">(0..1);</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8031r31"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">containment</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9b8t-x-x-95">reference</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">Option</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">options</span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95">(1..-1);</span><span
class="ul9r8t-x-x-95"> </span><br /><span class="label"><a
id="x1-8032r32"></a></span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span
class="ul9r8t-x-x-95"> </span><span