Range Constraints

Let’s learn about range constraints.

A range constraint requires that a property must have a value in the value space of the type that has been defined as its range. This is implicitly expressed by defining a type for a property as its range. For instance, the attribute age defined for the object type Person in the class diagram below has the range Integer, so it must not have a value like "aaa", which is not an integer.

Get hands-on with 1200+ tech skills courses.