TemplateParameter
Parameter for templated elements.
NameSpaces and Operations can be templated by TemplateParameters. Concerning NameSpaces, this particularly applies for Classes, Packages and Collaborations. In Modelio, TemplateParameters belong to their parameterized NameSpace or Operation.
: TemplateParameter (architecture_autodiagram)
Figure 193 : TemplateParameter (architecture_autodiagram)
DefaultValueIsValueParameterTemplateParameterGeneralClassNameSpaceOperationTemplateParameterSubstitutionModelElement
Attribute
Description
string DefaultValue [1..1]
Default parameter value, when the IsValueParameter is true.
boolean IsValueParameter [1..1]
Expresses if the parameter is a value, which is in this case "DefaultValue".
Association
Description
ParameterSubstitution : TemplateParameterSubstitution [0..*]
Type : ModelElement [0..1]
Default parameter type, when IsValueParameter is false.
Parameterized : NameSpace [0..1]
OwnedParameterElement : ModelElement [0..1]
A TemplateParameter references a ParameterableElement that is exposed as a formal template parameter in the container template. This parameterizable element is meaningful only within the template, or other templates that may have access to its content (for example, if the template supports specialization). The exposed parameterizable element may not be used in other parts of the model. A TemplateParameter may own the exposed ParameterableElement in situations where that element is only referenced from within the template.
DefaultType : ModelElement [0..1]
Value that the parameter takes if no specific value is specified.
ParameterizedOperation : Operation [0..1]