DataItem classifier overview

The capabilities of the DataItem classifier are made available when you code a data item. A data item is an alias of another type and can include multiple field-level annotations.

For example, you might define the NumberOfCars alias and use it in place of INT. Here is the alias definition:
DataItem
   NumberOfCars INT
End
Here is a second type, which defines the NumberOfDrivers alias:
DataItem 
   NumberOfDrivers INT 
End 

As suggested by the examples, each alias is called a data item. A data item is an EGL type.

Your logic can include variables and constants that are based on a data item. Here are examples:
myCarCount NumberOfCars;
const myAntiqueCarCount NumberOfCars = 5;

A data item is not only for simple types, but for other native and custom types.

A data item does not include a stereotype.