Context elements for OCL statements

When you write Object Constraint Language (OCL) statements, the context element represents the context in which OCL statements are parsed and evaluated. For example, you can select a class or an interface as the context for OCL statements.

Your choice of context element depends on whether you work with the user model or the metamodel. When you work with a user model, possible context elements include classes and interfaces. When you work with a metamodel, all UML elements are possible context elements.


Feedback