Pattern Constraints
Let’s learn about pattern constraints.
We'll cover the following...
Pattern constraints in UML
A pattern constraint requires that a string attribute’s value must match a certain pattern, typically defined by a regular expression
. For instance, for the object type Book
we define an isbn
attribute with the datatype String
as its range. Then we add a ...