Template parameter dialog box

 

Template parameters

A template parameter is a parameter for templated elements.  Typically, parameters are classifiers that represent attribute types, but they can also represent integers or even operations.

 

The "Template parameter" dialog box contains four tabs - "Properties", "Notes", "Tagged values" and "Stereotypes".  For information on these standard dialog box tabs, please see "Standard dialog box tabs".

 

 

The "Properties" tab of the "Template parameter" dialog box

The "Properties" tab of the "Template parameter" dialog box is used to define values for a template parameter.

 

The "Properties" tab of the "Template parameter" dialog box

 

 Key:

·         "Name": This is the name of the template parameter.

·         "Template type": This is the type of the template parameter.

·         "Is a value parameter": This indicates whether or not the template parameter is a value parameter.

·         "Default type": This determines the default type of the template parameter.

·         "Default value": This is the default value assigned to the template parameter.

 

The "Default type" and "Default value" fields are mutually exclusive and their use depends on whether or not the "Is a value parameter" tickbox is checked:

·         If the "Is a value parameter" is set, only the "Default value" field will be taken into account, and the "Default type" field should be considered as being grayed out and unusable.

·         If the "Is a value parameter" is not set, the "Default type" field is taken into account and the "Default value" field ignored.