EMF - Eclipse Modeling Framework:
Gespeichert in:
Format: | Buch |
---|---|
Sprache: | English |
Veröffentlicht: |
Upper Saddle River, NJ ; Munich [u.a.]
Addison Wesley
2009
|
Ausgabe: | 2. ed., rev. and updated, 1. printing |
Schriftenreihe: | The Eclipse series
|
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | Hier auch später erschienene, unveränderte Nachdrucke |
Beschreibung: | XXIX, 704 S. Ill., graph. Darst. |
ISBN: | 9780321331885 0321331885 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV021719990 | ||
003 | DE-604 | ||
005 | 20130704 | ||
007 | t | ||
008 | 060905s2009 ad|| |||| 00||| eng d | ||
020 | |a 9780321331885 |c pbk. |9 978-0-321-33188-5 | ||
020 | |a 0321331885 |c pbk. |9 0-321-33188-5 | ||
035 | |a (OCoLC)182662768 | ||
035 | |a (DE-599)BSZ25282394X | ||
040 | |a DE-604 |b ger |e rakwb | ||
041 | 0 | |a eng | |
049 | |a DE-703 |a DE-706 |a DE-384 |a DE-473 |a DE-91G |a DE-29T |a DE-526 |a DE-898 |a DE-11 |a DE-83 |a DE-523 |a DE-188 |a DE-B768 |a DE-858 |a DE-863 |a DE-522 | ||
082 | 0 | |a 005.133 |2 22 | |
084 | |a ST 232 |0 (DE-625)143619: |2 rvk | ||
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
084 | |a DAT 332f |2 stub | ||
245 | 1 | 0 | |a EMF - Eclipse Modeling Framework |c Dave Steinberg ... |
246 | 1 | 3 | |a Eclipse Modeling Framework |
250 | |a 2. ed., rev. and updated, 1. printing | ||
264 | 1 | |a Upper Saddle River, NJ ; Munich [u.a.] |b Addison Wesley |c 2009 | |
300 | |a XXIX, 704 S. |b Ill., graph. Darst. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a The Eclipse series | |
500 | |a Hier auch später erschienene, unveränderte Nachdrucke | ||
650 | 4 | |a Computer software |x Development | |
650 | 4 | |a Java (Computer program language) | |
650 | 0 | 7 | |a Eclipse |g Programmierumgebung |0 (DE-588)4768065-9 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Eclipse |g Programmierumgebung |0 (DE-588)4768065-9 |D s |
689 | 0 | |5 DE-604 | |
700 | 1 | |a Steinberg, Dave |e Sonstige |4 oth | |
856 | 4 | 2 | |m Digitalisierung UB Bamberg |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=014933667&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-014933667 |
Datensatz im Suchindex
DE-BY-863_location | 1340 |
---|---|
DE-BY-FWS_call_number | 1340/ST 232 S819(2)st |
DE-BY-FWS_katkey | 487162 |
DE-BY-FWS_media_number | 083101253031 |
_version_ | 1806178796161728512 |
adam_text | Contents
Foreword by Richard
С.
Gronback
Foreword by Mike Milinkovich
Preface
Acknowledgments
References
xix
xxi
xxiii
xxvii
xxix
Port /
O
EMF Overview
Chapter I Eclipse
1.1
The Projects
1.1.1
The Eclipse Project
1.1.2
The Modeling Project
1.1.3
The Tools Project
1.1.4
The Technology Project
1.1.5
Other Projects
1.2
The Eclipse Platform
1.2.1
Plug-In Architecture
1.2.2
Workspace Resources
1.2.3
Platform UI
1.2.4
Rich Client Platform
1.3
More Information
Chapter
2
Introducing EMF
2.1
Unifying Java, XML, and UML
2.2
Modeling vs. Programming
ƒ
3
4
4
5
5
5
S
6
6
7
7
9
9
II
12
15
Contents
2.3
Defining the Model
16
2.3.1
The Ecore
(Meta)
Model
17
2.3.2
Creating and Editing the Model
19
2.3.3
XMI Serialization
20
2.3.4
Java Annotations
21
2.3.5
The Ecore Big Picture
23
2.4
Generating Code
23
2.4.1
Generated Model Classes
24
2.4.2
Other Generated Stuff
26
2.4.3
Regeneration and Merge
27
2.4.4
The Generator Model
28
2.5
The Runtime Framework
29
2.5.1
Notification and Adapters
29
2.5.2
Object Persistence
31
2.5.3
The Reflective EObject API
35
2.5.4
Dynamic EMF
36
2.5.5
Foundation for Data Integration
38
2.6
EMF and Modeling Standards
39
2.6.1
Unified Modeling Language
39
2.6.2
Meta-Object Facility
39
2.6.3
XML Metadata Interchange
40
2.6.4
Model Driven Architecture
40
Chapter
3
Model Editing with EMF.Edit
4
1
3.1
Displaying and Editing EMF Models
42
3.1.1
Eclipse UI Basics
43
3.1.2
EMF.Edit Support
45
3.2
Item Providers
46
3.2.1
Content and Label Item Providers
47
3.2.2
Item Property Source
49
3.2.3
Command Factory
50
3.2.4
Change Notification
51
3.2.5
Item Provider Implementation Classes
53
Contents
vii
3.3
Command Framework
54
3.3.1
Common Command Framework
SS
3.3.2
EMEEdit Commands
59
3.3.3
EditingDomain
61
3.4
Generating EMEEdit Code
65
3.4.1
Edit Generation
66
3.4.2
Editor Generation
67
3.4.3
Regenerating EMEEdit Plug-Ins
68
Chapter
4
Using EMF
—
A Simple Overview
69
4.1
Example Model: The Primer Purchase Order
70
4.2
Creating EMF Models and Projects
71
4.2.2
Creating an EMF Model from Annotated
Java
72
4.2.2
Creating an EMF Project from a Rational
Rose Class Model
80
4.2.3
Creating an EMF Project from an XML
Schema
86
4.2.4
Creating a Generator Model for an Ecore
Model
89
4.2.5
Other Formats
92
4.3
Generating Code
93
4.4
Running the Application
95
4.5
Continuing Development
98
Part
//
О
Defining EMF Models 1
0
1
Chapter
5
Ecore Modeling Concepts 1
03
5.1
Ecore Model Uses
104
5.2
The Ecore Kernel
105
5.3
Structural Features
106
5.3.2
Attributes
110
5.3.2
References 111
5.4
Behavioral Features
112
5.5
Classifiers
113
5.5.2
Classes
114
5.5.2
Data Types
116
viii
Contents
5.6
Packages and
Faetones
118
5.7
Annotations
119
5.7.1
Annotations in EMF
121
5.8
Modeled Data Types
123
5.9
Ecore and User Models
125
Chapter
6
UML
127
6.1
UML Packages
128
6.2
UML Specification for Classifiers
128
6.2.1
Classes
129
6.2.2
Enumerated Types
130
6.2.3
Data Types
131
6.3
UML Specification for Attributes
132
6.3.1
Single-Valued Attributes
132
6.3.2
Multi-Valued Attributes
133
6.3.3
Attributes with a Default Value
133
6.4
UML Specification for References
134
6.4.1
Bidirectional, Non-Containment References
135
6.4.2
Containment References
136
6.4.3
Map References
136
6.5
UML Specification for Operations
138
6.6
Documentation
140
6.7
Ecore Properties in Rational Rose
140
6.7.1
Package Properties
141
6.7.2
Classifier Properties
142
6.7.3
Structural Feature Properties
142
6.7.4
Operation Properties
143
6.7.5
Model Element Properties
144
Chapter
7
Java Source Code
145
7.1
Java Specification for Classes
146
7.1.1
Attributes
147
7.1.2
References
150
Contents ¡x
7.1.3
Compact
Notation
for Attributes
and References
152
7.1.4
Operations
153
7.2
Java Specification for Enumerated Types
158
7.2.1
Enumeration Literals
158
7.3
Java Specification for Packages
159
7.3.1
Data Types
160
7.4
Java Specification for Maps
161
7.4.1
Explicit Definition of Map Entry Classes
in a Package
161
7.4.2
Definition of Map
-Typ
ed
References,
Operations, and Parameters
163
7.5
Java Specification for Annotations
164
Chapter
8
Extended Ecore Modeling
167
8.1
Feature Maps
168
8.1.1
Multiple Features and Cross-Feature Order
168
8.1.2
The FeatureMap Interface
171
8.2
Modeling with Feature Maps
173
8.2.1
UML
173
8.2.2
Annotated Java
175
8.2.3
XML Schema
176
Chapter? XML Schema
179
9.1
Schema
180
9.1.1
Schema without Target Namespace
180
9.1.2
Schema with Target Namespace
181
9.1.3
Global Element or Attribute Declaration
182
9.1.4
Element or Attribute Form Default
183
9.1.5
EMF Extensions
183
9.2
Simple Type Definitions
184
9.2.1
Restriction
184
9.2.2
Restriction with Enumeration Facets
186
9.2.3
List Type
188
9.2.4
Union Type
188
Contents
9.2.5
Anonymous Type
189
9.2.6
EMF
Extensions
190
9.3
Complex Type Definitions
191
9.3.1
Extension and Restriction
192
9.3.2
Simple Content
193
9.3.3
Anonymous Type
194
9.3.4
Abstract Type
194
9.3.5
Mixed Type
195
9.3.6
EMF Extensions
197
9.3.7
Operations
198
9.4
Attribute Declarations
201
9.4.1
ID Attribute
202
9.4.2
ID Reference or
URI
Attribute
202
9.4.3
Required Attribute
203
9.4.4
Default Value
204
9.4.5
Qualified Attribute
205
9.4.6
Global Attribute
205
9.4.7
Attribute Reference
205
9.4.8
EMF Extensions
206
9.5
Element Declarations
209
9.5.1
AnyType Element
210
9.5.2
ID Element
211
9.5.3
ID Reference or
URI
Element
211
9.5.4
Nillable Element
213
9.5.5
Default Value
214
9.5.6
Qualified Element
215
9.5.7
Global Element
215
9.5.8
Element Reference
216
9.5.9
Substitution Group
216
9.5.10
EMF Extensions
219
9.6
Model Groups
222
9.6.1
Repeating Model Group
222
9.6.2
Repeating Model Group Reference
224
Contents xi
9.7
Wildcards
225
9.7.1 Element
Wildcard
225
9.7.2 Attribute
Wildcard
226
9.7.3 EMF
Extensions
227
9.8
Annotations
228
9.8.1
Documentation
228
9.8.2
Appinfo
229
9.8.3
Ignored Annotation
229
9.8.4
Non-schema Attribute
230
9.9
Predefined Schema Simple Types
230
9.10
EMF Extensions
232
Part III
О
Using the EMF Generator
237
Chapter
10
EMF Generator Patterns
239
10.1
Modeled Classes
240
10.1.1
Interfaces and Implementation Classes
240
10.1.2
Accessor Methods
241
10.1.3
Abstract Classes
243
10.1.4
Interfaces
243
10.2
Attributes
243
10.2.1
Simple Attributes
244
10.2.2
Data Type Attributes
245
10.2.3
Enumerated Type Attributes
248
10.2.4
Multi-Valued Attributes
250
10.2.5
Default Values
252
10.2.6
Volatile Attributes
253
10.2.7
Non-Changeable Attributes
254
10.2.8
Unsettable Attributes
255
10.3
References
257
10.3.1
One-Way References
257
10.3.2
Bidirectional References
259
10.3.3
Multiplicity-Many References
261
10.3.4
Non-Proxy-Resolving References
263
xii
Contents
10.3.5
Containment References
264
10.3.6
Volatile References
266
10.3.7
Non-Changeable References
267
10.3.8
Unsettable References
268
10.3.9
Map References
269
10.4
Feature Maps
272
10.5
Operations
273
10.6
Class Inheritance
275
10.6.1
Single Inheritance
275
10.6.2
Multiple Inheritance
276
10.6.3
Interface Inheritance and Implementation
277
10.7
Reflective Methods
278
10.7.1
Feature IDs
278
10.7.2
Reflective Accessor
s
279
10.7.3
Inverse Handshaking Methods
283
10.7.4
Feature ID Conversion Methods
285
10.8
Factories and Packages
287
10.9
Switch Classes and Adapter Factories
291
10.10
Alternative Generator Patterns
295
10.10.1
Performance Optimization
295
10.10.2
Suppression of EMFisms
302
10.11
Customizing Generated Code
305
Chapter 11 EMEEdit Generator Patterns
309
11.1
Item Providers
310
11.1.1
Content and Label Provider
311
11.1.2
Item Property Source
315
11.1.3
Command Factory
318
11.1.4
Change Notification
319
11.1.5
Object Creation
321
11.2
Item Provider Adapter Factories
327
11.3
Editor
331
11.4
Action Bar Contributor
334
Contents
xii i
11.5 Wizard 336
11.6
Plug-Ins
337
Chapter
12
Running the Generators
341
12.1
EMF Code Generation
341
12.2
The Generator UI
346
12.3
Generator Model Properties
350
12.3.1
Model Object Properties
350
12.3.2
Package Properties
359
12.3.3
Class Properties
362
12.3.4
Feature Properties
363
12.4
The Command-Line Generator Tools
364
12.4.1
Headless Invocation
365
12.4.2
Rose2GenModel
366
12.4.3
XSD2GenModel
369
12.4.4
Ecore2GenModel
369
12.4.5
Generator
370
12.5
The Generator Ant Tasks
371
12.5
J emf.Rose2Java
373
12.5.2
emf.XSD2Java
374
12.5.3
emf.Ecore2Java
375
12.6
The Template Format
375
12.6.1
An Example Template
376
12.6.2
Template Extensibility
379
Chapter
13
Example
—
Implementing a Model and Editor
381
13.1
Getting Started
381
13.2
Generating the Model
384
13.3
Implementing Volatile Features
384
13.4
Implementing Data Types
387
13.5
Running the ExtendedPO2 Editor
392
13.6
Restricting Reference Targets
393
13.7
Splitting the Model into Multiple Packages
396
xiv
Contents
13.7.1
Resolving Package Dependencies
398
13.7.2
Restricting Reference Targets Revisited
401
13.8
Editing Multiple Resources Concurrently
404
13.8.1
Cross-Document Non-Containment
References
404
13.8.2
Cross-Document Containment References
411
Part IV
О
Programming with EMF
4
1
7
Chapter
14
Exploiting Metadata
419
14.1
Packages
419
14.1.1
Accessing Package Metadata Generically
420
14.1.2
Locating Packages
422
14.2
Reflection
426
14.2.1
Creating Objects
426
14.2.2
Interrogating and Modifying Objects
427
14.3
Dynamic EMF
432
14.4
Extended Metadata
437
Chapter
15
Persistence
443
15.1
Overview of the Persistence Framework
443
15.2
The EMF Persistence API
447
15.2.1
URI
447
15.2.2
URIConverter
449
15.2.3
Resource
450
15.2.4
Resource.Factory and
Resource.Factory.Registry
456
15.2.5
ResourceSet
459
15.3
XML Resources
462
15.3.1
Default Serialization Format
462
15.3.2
Deserialization
468
15.3.3
Options
470
15.3.4
Dynamic EMF
479
15.3.5
Extended Metadata
482
15.3.6
Other Features
485
Contents xv
15.4 EMF
Resource and Resource Factory
Implementations
489
15.4.1
Base XML
489
15.4.2
Generic XML
490
15.4.3
XMI
490
15.4.4
Ecore
492
15.4.5
EMOF
492
15.4.6
Generated
493
15.5
Performance Considerations
494
15.5.1
Recommended XML Resource Options
494
15.5.2
Caching Intrinsic IDs
495
15.5.3
Caching Resource URIs
496
15.6
Custom Storage for Active Objects
497
15.6.1
Using an EStore
499
15.6.2
EStore and Generated Classes
500
Chapter 1
6
Client Programming Toolbox
503
16.1
Tree Iterators and Switches
503
16.2
Adapters
508
16.2.1
Object Adapting
508
16.2.2
Behavioral Extensions
515
16.2.3
Content Adapters
519
16.2.4
Observing Generated Classes
521
16.3
Cross-Referencers
523
16.3.1
Basic Cross-Referencers
523
16.3.2
Cross-Reference Adapters
526
16.4
Copying Objects
529
16.5
Comparing Objects
533
Chapter
17
The Change Model
537
17.1
Describing a Change
537
17.1.1
Applying a Change Description
539
17.1.2
Changing Multi-Valued Features
541
17.1.3
Changing Resources
544
xv/ Contents
17.2
Change
Recording
545
17.2.1
Transaction Atomicity and Rollback
547
Chapter
18
The Validation Framework
549
18.1
Constraints and Invariants
549
18.2
Effects on Generated Code
553
18.3
Invoking Validation
557
18.4
Basic EObject Constraints
563
18.5
XML Schema Constraints
564
Chapter
19
EMF.Edit Programming
567
19.1
Overriding Commands
567
19.2
Customizing Views
573
19.2.1
Suppressing Model Objects
573
19.2.2
Using List and Table Viewers
580
19.2.3
Adding Non-Model Intermediary
View Objects
587
Chapter
20
Outside of the Eclipse IDE
599
20.1
Rich Client Platform
599
20.1.1
RCPandEMF
600
20.1.2
Launching an RCP Application
601
20.1.3
Generated Code in an RCP Application
606
20.1.4
Deploying an RCP Application
608
20.2
Stand-Alone
Applications
608
20.2.1
Adding EMF to the Class Path
609
20.2.2
Registering the Resource Factory
612
20.2.4
Registering the Package
614
Chapter
2
1 EMF
2.3
and
2.4 617
21.1
Java
5.0
Support
617
21.1.1
Enumerations
618
21.1.2
Generics
622
Contents xvii
21.2 EMF
Persistence Enhancements
632
21.2.1
Resource Deletion
633
21.2.2
Content Types
634
21.2.3
Other Enhancements
637
21.3
Other New Features
641
21.3.1
Ecore Validation
642
21.3.2
Reference Keys
643
21.3.3
Annotated Java Model Importer
645
21
A Resource Options
646
21.4.1
XMLResource Options
647
21.5
Generator Model Properties
648
21.5.1
Model Object Properties
648
21.5.2
Package Properties
651
21.5.3
Enum Properties
652
Appendix A UML Notation
653
Appendix
В
Summary of Example Models
659
Index
675
|
adam_txt |
Contents
Foreword by Richard
С.
Gronback
Foreword by Mike Milinkovich
Preface
Acknowledgments
References
xix
xxi
xxiii
xxvii
xxix
Port /
O
EMF Overview
Chapter I Eclipse
1.1
The Projects
1.1.1
The Eclipse Project
1.1.2
The Modeling Project
1.1.3
The Tools Project
1.1.4
The Technology Project
1.1.5
Other Projects
1.2
The Eclipse Platform
1.2.1
Plug-In Architecture
1.2.2
Workspace Resources
1.2.3
Platform UI
1.2.4
Rich Client Platform
1.3
More Information
Chapter
2
Introducing EMF
2.1
Unifying Java, XML, and UML
2.2
Modeling vs. Programming
ƒ
3
4
4
5
5
5
S
6
6
7
7
9
9
II
12
15
Contents
2.3
Defining the Model
16
2.3.1
The Ecore
(Meta)
Model
17
2.3.2
Creating and Editing the Model
19
2.3.3
XMI Serialization
20
2.3.4
Java Annotations
21
2.3.5
The Ecore "Big Picture"
23
2.4
Generating Code
23
2.4.1
Generated Model Classes
24
2.4.2
Other Generated "Stuff"
26
2.4.3
Regeneration and Merge
27
2.4.4
The Generator Model
28
2.5
The Runtime Framework
29
2.5.1
Notification and Adapters
29
2.5.2
Object Persistence
31
2.5.3
The Reflective EObject API
35
2.5.4
Dynamic EMF
36
2.5.5
Foundation for Data Integration
38
2.6
EMF and Modeling Standards
39
2.6.1
Unified Modeling Language
39
2.6.2
Meta-Object Facility
39
2.6.3
XML Metadata Interchange
40
2.6.4
Model Driven Architecture
40
Chapter
3
Model Editing with EMF.Edit
4
1
3.1
Displaying and Editing EMF Models
42
3.1.1
Eclipse UI Basics
43
3.1.2
EMF.Edit Support
45
3.2
Item Providers
46
3.2.1
Content and Label Item Providers
47
3.2.2
Item Property Source
49
3.2.3
Command Factory
50
3.2.4
Change Notification
51
3.2.5
Item Provider Implementation Classes
53
Contents
vii
3.3
Command Framework
54
3.3.1
Common Command Framework
SS
3.3.2
EMEEdit Commands
59
3.3.3
EditingDomain
61
3.4
Generating EMEEdit Code
65
3.4.1
Edit Generation
66
3.4.2
Editor Generation
67
3.4.3
Regenerating EMEEdit Plug-Ins
68
Chapter
4
Using EMF
—
A Simple Overview
69
4.1
Example Model: The Primer Purchase Order
70
4.2
Creating EMF Models and Projects
71
4.2.2
Creating an EMF Model from Annotated
Java
72
4.2.2
Creating an EMF Project from a Rational
Rose Class Model
80
4.2.3
Creating an EMF Project from an XML
Schema
86
4.2.4
Creating a Generator Model for an Ecore
Model
89
4.2.5
Other Formats
92
4.3
Generating Code
93
4.4
Running the Application
95
4.5
Continuing Development
98
Part
//
О
Defining EMF Models 1
0
1
Chapter
5
Ecore Modeling Concepts 1
03
5.1
Ecore Model Uses
104
5.2
The Ecore Kernel
105
5.3
Structural Features
106
5.3.2
Attributes
110
5.3.2
References 111
5.4
Behavioral Features
112
5.5
Classifiers
113
5.5.2
Classes
114
5.5.2
Data Types
116
viii
Contents
5.6
Packages and
Faetones
118
5.7
Annotations
119
5.7.1
Annotations in EMF
121
5.8
Modeled Data Types
123
5.9
Ecore and User Models
125
Chapter
6
UML
127
6.1
UML Packages
128
6.2
UML Specification for Classifiers
128
6.2.1
Classes
129
6.2.2
Enumerated Types
130
6.2.3
Data Types
131
6.3
UML Specification for Attributes
132
6.3.1
Single-Valued Attributes
132
6.3.2
Multi-Valued Attributes
133
6.3.3
Attributes with a Default Value
133
6.4
UML Specification for References
134
6.4.1
Bidirectional, Non-Containment References
135
6.4.2
Containment References
136
6.4.3
Map References
136
6.5
UML Specification for Operations
138
6.6
Documentation
140
6.7
Ecore Properties in Rational Rose
140
6.7.1
Package Properties
141
6.7.2
Classifier Properties
142
6.7.3
Structural Feature Properties
142
6.7.4
Operation Properties
143
6.7.5
Model Element Properties
144
Chapter
7
Java Source Code
145
7.1
Java Specification for Classes
146
7.1.1
Attributes
147
7.1.2
References
150
Contents ¡x
7.1.3
Compact
Notation
for Attributes
and References
152
7.1.4
Operations
153
7.2
Java Specification for Enumerated Types
158
7.2.1
Enumeration Literals
158
7.3
Java Specification for Packages
159
7.3.1
Data Types
160
7.4
Java Specification for Maps
161
7.4.1
Explicit Definition of Map Entry Classes
in a Package
161
7.4.2
Definition of Map
-Typ
ed
References,
Operations, and Parameters
163
7.5
Java Specification for Annotations
164
Chapter
8
Extended Ecore Modeling
167
8.1
Feature Maps
168
8.1.1
Multiple Features and Cross-Feature Order
168
8.1.2
The FeatureMap Interface
171
8.2
Modeling with Feature Maps
173
8.2.1
UML
173
8.2.2
Annotated Java
175
8.2.3
XML Schema
176
Chapter? XML Schema
179
9.1
Schema
180
9.1.1
Schema without Target Namespace
180
9.1.2
Schema with Target Namespace
181
9.1.3
Global Element or Attribute Declaration
182
9.1.4
Element or Attribute Form Default
183
9.1.5
EMF Extensions
183
9.2
Simple Type Definitions
184
9.2.1
Restriction
184
9.2.2
Restriction with Enumeration Facets
186
9.2.3
List Type
188
9.2.4
Union Type
188
Contents
9.2.5
Anonymous Type
189
9.2.6
EMF
Extensions
190
9.3
Complex Type Definitions
191
9.3.1
Extension and Restriction
192
9.3.2
Simple Content
193
9.3.3
Anonymous Type
194
9.3.4
Abstract Type
194
9.3.5
Mixed Type
195
9.3.6
EMF Extensions
197
9.3.7
Operations
198
9.4
Attribute Declarations
201
9.4.1
ID Attribute
202
9.4.2
ID Reference or
URI
Attribute
202
9.4.3
Required Attribute
203
9.4.4
Default Value
204
9.4.5
Qualified Attribute
205
9.4.6
Global Attribute
205
9.4.7
Attribute Reference
205
9.4.8
EMF Extensions
206
9.5
Element Declarations
209
9.5.1
AnyType Element
210
9.5.2
ID Element
211
9.5.3
ID Reference or
URI
Element
211
9.5.4
Nillable Element
213
9.5.5
Default Value
214
9.5.6
Qualified Element
215
9.5.7
Global Element
215
9.5.8
Element Reference
216
9.5.9
Substitution Group
216
9.5.10
EMF Extensions
219
9.6
Model Groups
222
9.6.1
Repeating Model Group
222
9.6.2
Repeating Model Group Reference
224
Contents xi
9.7
Wildcards
225
9.7.1 Element
Wildcard
225
9.7.2 Attribute
Wildcard
226
9.7.3 EMF
Extensions
227
9.8
Annotations
228
9.8.1
Documentation
228
9.8.2
Appinfo
229
9.8.3
Ignored Annotation
229
9.8.4
Non-schema Attribute
230
9.9
Predefined Schema Simple Types
230
9.10
EMF Extensions
232
Part III
О
Using the EMF Generator
237
Chapter
10
EMF Generator Patterns
239
10.1
Modeled Classes
240
10.1.1
Interfaces and Implementation Classes
240
10.1.2
Accessor Methods
241
10.1.3
Abstract Classes
243
10.1.4
Interfaces
243
10.2
Attributes
243
10.2.1
Simple Attributes
244
10.2.2
Data Type Attributes
245
10.2.3
Enumerated Type Attributes
248
10.2.4
Multi-Valued Attributes
250
10.2.5
Default Values
252
10.2.6
Volatile Attributes
253
10.2.7
Non-Changeable Attributes
254
10.2.8
Unsettable Attributes
255
10.3
References
257
10.3.1
One-Way References
257
10.3.2
Bidirectional References
259
10.3.3
Multiplicity-Many References
261
10.3.4
Non-Proxy-Resolving References
263
xii
Contents
10.3.5
Containment References
264
10.3.6
Volatile References
266
10.3.7
Non-Changeable References
267
10.3.8
Unsettable References
268
10.3.9
Map References
269
10.4
Feature Maps
272
10.5
Operations
273
10.6
Class Inheritance
275
10.6.1
Single Inheritance
275
10.6.2
Multiple Inheritance
276
10.6.3
Interface Inheritance and Implementation
277
10.7
Reflective Methods
278
10.7.1
Feature IDs
278
10.7.2
Reflective Accessor
s
279
10.7.3
Inverse Handshaking Methods
283
10.7.4
Feature ID Conversion Methods
285
10.8
Factories and Packages
287
10.9
Switch Classes and Adapter Factories
291
10.10
Alternative Generator Patterns
295
10.10.1
Performance Optimization
295
10.10.2
Suppression of EMFisms
302
10.11
Customizing Generated Code
305
Chapter 11 EMEEdit Generator Patterns
309
11.1
Item Providers
310
11.1.1
Content and Label Provider
311
11.1.2
Item Property Source
315
11.1.3
Command Factory
318
11.1.4
Change Notification
319
11.1.5
Object Creation
321
11.2
Item Provider Adapter Factories
327
11.3
Editor
331
11.4
Action Bar Contributor
334
Contents
xii'i
11.5 Wizard 336
11.6
Plug-Ins
337
Chapter
12
Running the Generators
341
12.1
EMF Code Generation
341
12.2
The Generator UI
346
12.3
Generator Model Properties
350
12.3.1
Model Object Properties
350
12.3.2
Package Properties
359
12.3.3
Class Properties
362
12.3.4
Feature Properties
363
12.4
The Command-Line Generator Tools
364
12.4.1
Headless Invocation
365
12.4.2
Rose2GenModel
366
12.4.3
XSD2GenModel
369
12.4.4
Ecore2GenModel
369
12.4.5
Generator
370
12.5
The Generator Ant Tasks
371
12.5
J emf.Rose2Java
373
12.5.2
emf.XSD2Java
374
12.5.3
emf.Ecore2Java
375
12.6
The Template Format
375
12.6.1
An Example Template
376
12.6.2
Template Extensibility
379
Chapter
13
Example
—
Implementing a Model and Editor
381
13.1
Getting Started
381
13.2
Generating the Model
384
13.3
Implementing Volatile Features
384
13.4
Implementing Data Types
387
13.5
Running the ExtendedPO2 Editor
392
13.6
Restricting Reference Targets
393
13.7
Splitting the Model into Multiple Packages
396
xiv
Contents
13.7.1
Resolving Package Dependencies
398
13.7.2
Restricting Reference Targets Revisited
401
13.8
Editing Multiple Resources Concurrently
404
13.8.1
Cross-Document Non-Containment
References
404
13.8.2
Cross-Document Containment References
411
Part IV
О
Programming with EMF
4
1
7
Chapter
14
Exploiting Metadata
419
14.1
Packages
419
14.1.1
Accessing Package Metadata Generically
420
14.1.2
Locating Packages
422
14.2
Reflection
426
14.2.1
Creating Objects
426
14.2.2
Interrogating and Modifying Objects
427
14.3
Dynamic EMF
432
14.4
Extended Metadata
437
Chapter
15
Persistence
443
15.1
Overview of the Persistence Framework
443
15.2
The EMF Persistence API
447
15.2.1
URI
447
15.2.2
URIConverter
449
15.2.3
Resource
450
15.2.4
Resource.Factory and
Resource.Factory.Registry
456
15.2.5
ResourceSet
459
15.3
XML Resources
462
15.3.1
Default Serialization Format
462
15.3.2
Deserialization
468
15.3.3
Options
470
15.3.4
Dynamic EMF
479
15.3.5
Extended Metadata
482
15.3.6
Other Features
485
Contents xv
15.4 EMF
Resource and Resource Factory
Implementations
489
15.4.1
Base XML
489
15.4.2
Generic XML
490
15.4.3
XMI
490
15.4.4
Ecore
492
15.4.5
EMOF
492
15.4.6
Generated
493
15.5
Performance Considerations
494
15.5.1
Recommended XML Resource Options
494
15.5.2
Caching Intrinsic IDs
495
15.5.3
Caching Resource URIs
496
15.6
Custom Storage for Active Objects
497
15.6.1
Using an EStore
499
15.6.2
EStore and Generated Classes
500
Chapter 1
6
Client Programming Toolbox
503
16.1
Tree Iterators and Switches
503
16.2
Adapters
508
16.2.1
Object Adapting
508
16.2.2
Behavioral Extensions
515
16.2.3
Content Adapters
519
16.2.4
Observing Generated Classes
521
16.3
Cross-Referencers
523
16.3.1
Basic Cross-Referencers
523
16.3.2
Cross-Reference Adapters
526
16.4
Copying Objects
529
16.5
Comparing Objects
533
Chapter
17
The Change Model
537
17.1
Describing a Change
537
17.1.1
Applying a Change Description
539
17.1.2
Changing Multi-Valued Features
541
17.1.3
Changing Resources
544
xv/ Contents
17.2
Change
Recording
545
17.2.1
Transaction Atomicity and Rollback
547
Chapter
18
The Validation Framework
549
18.1
Constraints and Invariants
549
18.2
Effects on Generated Code
553
18.3
Invoking Validation
557
18.4
Basic EObject Constraints
563
18.5
XML Schema Constraints
564
Chapter
19
EMF.Edit Programming
567
19.1
Overriding Commands
567
19.2
Customizing Views
573
19.2.1
Suppressing Model Objects
573
19.2.2
Using List and Table Viewers
580
19.2.3
Adding Non-Model Intermediary
View Objects
587
Chapter
20
Outside of the Eclipse IDE
599
20.1
Rich Client Platform
599
20.1.1
RCPandEMF
600
20.1.2
Launching an RCP Application
601
20.1.3
Generated Code in an RCP Application
606
20.1.4
Deploying an RCP Application
608
20.2
Stand-Alone
Applications
608
20.2.1
Adding EMF to the Class Path
609
20.2.2
Registering the Resource Factory
612
20.2.4
Registering the Package
614
Chapter
2
1 EMF
2.3
and
2.4 617
21.1
Java
5.0
Support
617
21.1.1
Enumerations
618
21.1.2
Generics
622
Contents xvii
21.2 EMF
Persistence Enhancements
632
21.2.1
Resource Deletion
633
21.2.2
Content Types
634
21.2.3
Other Enhancements
637
21.3
Other New Features
641
21.3.1
Ecore Validation
642
21.3.2
Reference Keys
643
21.3.3
Annotated Java Model Importer
645
21
A Resource Options
646
21.4.1
XMLResource Options
647
21.5
Generator Model Properties
648
21.5.1
Model Object Properties
648
21.5.2
Package Properties
651
21.5.3
Enum Properties
652
Appendix A UML Notation
653
Appendix
В
Summary of Example Models
659
Index
675 |
any_adam_object | 1 |
any_adam_object_boolean | 1 |
building | Verbundindex |
bvnumber | BV021719990 |
classification_rvk | ST 232 ST 250 |
classification_tum | DAT 332f |
ctrlnum | (OCoLC)182662768 (DE-599)BSZ25282394X |
dewey-full | 005.133 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.133 |
dewey-search | 005.133 |
dewey-sort | 15.133 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
discipline_str_mv | Informatik |
edition | 2. ed., rev. and updated, 1. printing |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01797nam a2200433 c 4500</leader><controlfield tag="001">BV021719990</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20130704 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">060905s2009 ad|| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9780321331885</subfield><subfield code="c">pbk.</subfield><subfield code="9">978-0-321-33188-5</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">0321331885</subfield><subfield code="c">pbk.</subfield><subfield code="9">0-321-33188-5</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)182662768</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BSZ25282394X</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rakwb</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-703</subfield><subfield code="a">DE-706</subfield><subfield code="a">DE-384</subfield><subfield code="a">DE-473</subfield><subfield code="a">DE-91G</subfield><subfield code="a">DE-29T</subfield><subfield code="a">DE-526</subfield><subfield code="a">DE-898</subfield><subfield code="a">DE-11</subfield><subfield code="a">DE-83</subfield><subfield code="a">DE-523</subfield><subfield code="a">DE-188</subfield><subfield code="a">DE-B768</subfield><subfield code="a">DE-858</subfield><subfield code="a">DE-863</subfield><subfield code="a">DE-522</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.133</subfield><subfield code="2">22</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 232</subfield><subfield code="0">(DE-625)143619:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">DAT 332f</subfield><subfield code="2">stub</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">EMF - Eclipse Modeling Framework</subfield><subfield code="c">Dave Steinberg ...</subfield></datafield><datafield tag="246" ind1="1" ind2="3"><subfield code="a">Eclipse Modeling Framework</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">2. ed., rev. and updated, 1. printing</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Upper Saddle River, NJ ; Munich [u.a.]</subfield><subfield code="b">Addison Wesley</subfield><subfield code="c">2009</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XXIX, 704 S.</subfield><subfield code="b">Ill., graph. Darst.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">The Eclipse series</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Hier auch später erschienene, unveränderte Nachdrucke</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Computer software</subfield><subfield code="x">Development</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Java (Computer program language)</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Eclipse</subfield><subfield code="g">Programmierumgebung</subfield><subfield code="0">(DE-588)4768065-9</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Eclipse</subfield><subfield code="g">Programmierumgebung</subfield><subfield code="0">(DE-588)4768065-9</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Steinberg, Dave</subfield><subfield code="e">Sonstige</subfield><subfield code="4">oth</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Bamberg</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=014933667&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-014933667</subfield></datafield></record></collection> |
id | DE-604.BV021719990 |
illustrated | Illustrated |
index_date | 2024-07-02T15:23:04Z |
indexdate | 2024-08-01T11:58:48Z |
institution | BVB |
isbn | 9780321331885 0321331885 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-014933667 |
oclc_num | 182662768 |
open_access_boolean | |
owner | DE-703 DE-706 DE-384 DE-473 DE-BY-UBG DE-91G DE-BY-TUM DE-29T DE-526 DE-898 DE-BY-UBR DE-11 DE-83 DE-523 DE-188 DE-B768 DE-858 DE-863 DE-BY-FWS DE-522 |
owner_facet | DE-703 DE-706 DE-384 DE-473 DE-BY-UBG DE-91G DE-BY-TUM DE-29T DE-526 DE-898 DE-BY-UBR DE-11 DE-83 DE-523 DE-188 DE-B768 DE-858 DE-863 DE-BY-FWS DE-522 |
physical | XXIX, 704 S. Ill., graph. Darst. |
publishDate | 2009 |
publishDateSearch | 2009 |
publishDateSort | 2009 |
publisher | Addison Wesley |
record_format | marc |
series2 | The Eclipse series |
spellingShingle | EMF - Eclipse Modeling Framework Computer software Development Java (Computer program language) Eclipse Programmierumgebung (DE-588)4768065-9 gnd |
subject_GND | (DE-588)4768065-9 |
title | EMF - Eclipse Modeling Framework |
title_alt | Eclipse Modeling Framework |
title_auth | EMF - Eclipse Modeling Framework |
title_exact_search | EMF - Eclipse Modeling Framework |
title_exact_search_txtP | EMF - Eclipse Modeling Framework |
title_full | EMF - Eclipse Modeling Framework Dave Steinberg ... |
title_fullStr | EMF - Eclipse Modeling Framework Dave Steinberg ... |
title_full_unstemmed | EMF - Eclipse Modeling Framework Dave Steinberg ... |
title_short | EMF - Eclipse Modeling Framework |
title_sort | emf eclipse modeling framework |
topic | Computer software Development Java (Computer program language) Eclipse Programmierumgebung (DE-588)4768065-9 gnd |
topic_facet | Computer software Development Java (Computer program language) Eclipse Programmierumgebung |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=014933667&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT steinbergdave emfeclipsemodelingframework AT steinbergdave eclipsemodelingframework |
Inhaltsverzeichnis
Würzburg Teilbibliothek SHL, Raum I.2.11
Signatur: |
1340 ST 232 S819(2)st |
---|---|
Exemplar 1 | nicht ausleihbar Verfügbar |