5.3. Attribute Data Types

The set of values an attribute can take on constitutes its data type. Each attribute must have a data type.

Tools today capture this information through dialog screens and in some cases by data type definition as a part of the action language. Since there is no compact standard way to capture all this information, we shall use an informal textual notation.

Data types in Executable UML are based on a two-level scheme:

  • Domain-specific data types, which define the type in terms of the domain. Hence, the online bookstore domain has attributes of type Currency and MailingAddress.

  • Core data types, which are universal types defined by Executable UML.

Each data type has a domain-specific name, used on the class diagram, and a ...

Get Executable UML: A Foundation for Model-Driven Architecture now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.