template

A parameterized model element. To use it, the parameters must be bound (at model time) to actual values. Synonym: parameterized element.

See also binding, bound element.

Semantics

A template is the descriptor for an element with one or more unbound formal parameters. It defines a family of potential elements, each specified by binding the parameters to actual values. Typically, the parameters are classifiers that represent attribute types, but they can also be integers or even operations. Subordinate elements within the template definition are defined in terms of the formal parameters, so they too become bound when the template itself is bound to actual values.

Template parameterization can be applied to classifiers (such as classes ...

Get Unified Modeling Language Reference Manual, The, Second Edition 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.