Package org.eclipse.emf.ocl.uml

Extensions to the Ecore metamodel for UML-specific concepts supported by the OCL language.

See:
          Description

Interface Summary
CallOperationAction  
Constraint  
SendSignalAction  
TypedElement A representation of the model object 'Typed Element'
UMLFactory The Factory for the model.
UMLPackage The Package for the model.
UMLPackage.Literals Defines literals for the meta objects that represent each class, each feature of each class, each enum, and each data type
 

Package org.eclipse.emf.ocl.uml Description

Extensions to the Ecore metamodel for UML-specific concepts supported by the OCL language.

Package Specification

This package extends the Ecore metamodel to support UML concepts required by the OCL language that Ecore does not implement. These extensions are not required for the use of OCL on Ecore models, but would be necessary for other metamodels that support some of these UML concepts. For example, a metamodel describing SQL might map the intersection table of a many-to-many relationship as an org.eclipse.emf.ocl.uml.AssociationClass rather than a many-to-many EReference, especially as it may have additional columns (attributes) of its own.

The following Ecore extensions are defined:

The other types in this package model portions of the OCL abstract syntax tree, not extending the Ecore language as such:

The IOCLHelper also provides simple, but flexible, support for parsing OCL expressions: invariants in a classifier context, and pre/post conditions and body conditions in an operation context. Evaluation is also supported for invariant constraints. The helper is constructed with an EnvironmentFactory that creates the necessary environments for parsing the client's metamodel. This allows clients of other metamodels than Ecore (e.g., SQL, UML2) that describe software systems in terms of classifiers to use OCL to expression constraints. An environment maps the metamodel in question to the OCL parser's extended Ecore metamodel.


Copyright 2002, 2006 IBM Corporation and others.
All Rights Reserved.