O'Reilly logo

Object Constraint Language, The: Getting Your Models Ready for MDA, Second Edition by Anneke Kleppe, Jos Warmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. User-defined Types

This chapter describes all the OCL constructs that refer to information in user-defined types.

Features of User-Defined Types

When a user-defined type is specified in an UML diagram, a number of features of that type are given. The features of a user-defined type include the following:

  • Attributes

  • Operations

  • Class attributes

  • Class operations

  • Association ends that are derived from associations and aggregations[1]

Each feature can be used in an OCL expression. This section explains how the first four features may be used. Section 8.2 explains how to use the information in an association.

Attributes and Operations

Attributes of user-defined types may be used in expressions by writing a dot followed by the attribute name. As with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required