GMF Runtime Updates:
| To implement support to the OCL
parser for navigation of UML Association Classes and navigation of Associations
using qualifiers.
The OCL parser and helper APIs were refactored to support this. Added several
new EClasses extending the Ecore metamodel with the following UML constructs
required by OCL:
- AssociationEnd (extends EReference) and Qualifier
(extends ETypedElement)
- AssociationClass (extends EClass) and AssociationClassEnd
(extends EReference)
- Operation (extends EOperation)
Applications can use these metaclasses in their metamodels (or adapt their
existing metamodels to them) to get the corresponding OCL support. The
parser's Environment API is now made public to enable clients to provide
the parser with an environment implementation that can map their metaclasses
as appropriate to these interfaces and the basic Ecore ones. This
is most easily done by implementing an EnvironmentFactory (new interface)
and initializing an IOclHelper with it. This obsoletes the ModelingLevel
concept in the OCL core.
A stratospheric view of this refactoring sees the following changes:
- the IUserModelSupport API and extension point
are eliminated Metamodel mappings for the OCL parser are now accomplished
by implementing customized parser Environments
- the com.ibm.xtools.emf.msl.ocl plug-in is
eliminated. The IOclHelper API is moved into the OCL parser as com.ibm.xtools.emf.ocl.helper.
Contribution by:
Christian Damus
Reviewed and Committed By : Vishy Ramaswamy
|