Unified Modeling Language Reference Manual, The, Second Edition
by James Rumbaugh, Ivar Jacobson, Grady Booch
OCL
Object Constraint Language, a text language for specifying constraints and queries. OCL is not intended for writing actions or executable code.
Semantics
The Object Constraint Language (OCL) is a text language for writing navigation expressions, Boolean expressions, and other queries. It may be used to construct expressions for constraints, guard conditions, actions, preconditions and postconditions, assertions, and other kinds of UML expressions. The OCL is defined by the OMG in a companion specification to UML. A complete description of the OCL syntax and semantics can be found in the specification on the OMG Web site. A summary can be found in [Warmer-99]. The following selected summary contains the most useful OCL syntax for creating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access