Difference between revisions of "MDT/New and Noteworthy/1.1"

From Eclipsepedia

< MDT
Jump to: navigation, search
(OCL Tools Component)
m (image formatting)
Line 33: Line 33:
 
==== Navigation of Unnamed Association Ends ====
 
==== Navigation of Unnamed Association Ends ====
  
The UML metamodel binding now supports parsing and evaluation of OCL expressions that navigate unnamed association ends.  The OCL convention for unnamed ends defines an implicit name which is the name of the classifier at that end with the initial letter in lower case.  MDT OCL supports evaluation of such navigation expressions, where the implicit end name is unambiguous, on both instances of UML2-generated metamodels and on instance specifications in UML models.
+
The UML metamodel binding now supports parsing and evaluation of OCL expressions that navigate unnamed association ends.  The OCL convention for unnamed ends defines an implicit name which is the name of the classifier at that end with the initial letter in lower case.  MDT OCL supports evaluation of such navigation expressions, where the implicit end name is unambiguous, on:
  
[[Image:unnamed-assoc-ends-M2.png|Navigating unnamed metamodel association ends]]
+
instances of UML2-generated metamodels:
 +
[[Image:unnamed-assoc-ends-M2.png|thumb|none|Navigating unnamed metamodel association ends]]
  
[[Image:unnamed-assoc-ends-M1.png|Navigating unnamed model association ends]]
+
and on instance specifications in UML models:
 +
[[Image:unnamed-assoc-ends-M1.png|thumb|none|Navigating unnamed model association ends]]
  
 
==== Other Bug Fixes ====
 
==== Other Bug Fixes ====

Revision as of 11:40, 13 November 2007

Model Development Tools Release 1.1 New and Noteworthy Items.

For more details about the development plan, see the MDT 1.1 draft plan.

Back to Modeling Development Tools.

Contents

EMF Ontology Definition Metamodel (EODM) Component

TBD

Object Constraint Language (OCL) Component

Release 1.2 M3

OCL Grammar and Parser API Refactoring

This milestone delivers the long-awaited refactoring of the OCL LPG grammar and associated parser API, contributed by Ed Willink from the GMT project's UMLX component.

The major new API in this contribution is defined in the org.eclipse.ocl.lpg and org.eclipse.ocl.parser packages. Included is an implementation of an EssentialOCL grammar (EssentialOCL.g) which is included in the full grammar (OCLParser.g). The former OCLParser class (which was internal) is refactored to separate the concrete syntax and abstract syntax parsing phases, implemented by the public classes OCLParser and [1] OCLAnalyzer, respectively.

Abstract LPG-parsing API is provided by the org.eclipse.ocl.lpg package, with abstract definitions of lexers, parsers, and analyzers. These are accompanied by a BasicEnvironment interface that provides core services such as a new pluggable ProblemHandler for flexible reporting of parsing/analysis problems.

See Bug 176110 for further details.

Navigation of Unnamed Association Ends

The UML metamodel binding now supports parsing and evaluation of OCL expressions that navigate unnamed association ends. The OCL convention for unnamed ends defines an implicit name which is the name of the classifier at that end with the initial letter in lower case. MDT OCL supports evaluation of such navigation expressions, where the implicit end name is unambiguous, on:

instances of UML2-generated metamodels:

Navigating unnamed metamodel association ends

and on instance specifications in UML models:

File:Unnamed-assoc-ends-M1.png
Navigating unnamed model association ends

Other Bug Fixes

For other bug fixes, see the OCL 1.2 M3 release notes.

OCL Tools Component

OCL Tools is a recently added component to the Model Development Tools (MDT) Project aiming at providing first-class support to modelers working with specifications containing expressions written in OCL, the Object Constraint Language. Such support includes editing, refactoring, code generation, execution, and interactive debugging of the OCL constraints given for some underlying (Ecore or UML2) class model. The functionality of OCL Tools builds upon the MDT OCL component, and has been seeded with two initial contributions:

  • an OCL -> Java compiler, that as of now takes as input an .ecore and a textual file containing OCL constraints (handling UML2 is in the ToDo list). This compiler extends EMF code generation, producing Java 5 source code with side-effects-free methods for the given OCL invariants, pre- and postconditions, and derived attributes and operations.
  • an OCL text editor, supporting usability features such as AutoCompletion, navigation by means of hyperlinks, structured views (for the outline of a document and for the Abstract Syntax Tree of an OCL constraint), among others. Although MDT OCL itself is completely fluent in both Ecore and UML2, only the Ecore binding is supported by the OCL text editor at this time.

A longer intro to OCL Tools can be found at

Unified Modeling Language 2.x (UML2) Component

TBD

UML2 Tools Component

TBD

XML Schema Infoset (XSD) Component

TBD