•OCL
is designed to be a simple language for specification of constraints
and queries in models.
•
•Specifying
Constraints
•
wInvariant constraint – condition on attributes (or any feature of context classifier) must always be true.
•
wQuery –
specified as the body expression of an operation.
•
•Have
code generated from the expressions entered in the UML model.