Abstract Class UML 2.4.1::TemplateableElement
Description:
A templateable element is an element that can optionally be defined as
a template and bound to other templates.
Direct Superclasses: ElementDirect Subclasses: StringExpression,
Package,
Operation,
ClassifierClass Precedence List: TemplateableElement,
ElementProperties:
![](/se-interop/image/down-arrow.png?hunchentoot-session=149279%3A96B7A51936A68DD46765BCB0CDFDB580)
ownedTemplateSignature :
TemplateSignature (0 1); -- source
TemplateableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=149279%3A96B7A51936A68DD46765BCB0CDFDB580)
templateBinding :
TemplateBinding (0 *); -- source
TemplateableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=149279%3A96B7A51936A68DD46765BCB0CDFDB580)
ownedComment :
Comment (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=149279%3A96B7A51936A68DD46765BCB0CDFDB580)
ownedElement :
Element (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=149279%3A96B7A51936A68DD46765BCB0CDFDB580)
owner :
Element (0 1); -- source
ElementConstraints:
No additional constraints.
Operations:
Signature: parameterableElements() : ParameterableElement;
Description: The query parameterableElements() returns the set of elements that may
be used as the parametered elements for a template parameter of this templateable
element. By default, this set includes all the owned elements. Subclasses
may override this operation if they choose to restrict the set of parameterable
elements.
The OCL used here is not normative.Editor's notes: added () to allOwnedElements.
Expression: result = allOwnedElements()->select(oclIsKindOf(ParameterableElement))
Original: result = allOwnedElements->select(oclIsKindOf(ParameterableElement))
Signature: isTemplate() : Boolean;
Description: The query isTemplate() returns whether this templateable element is actually
a template.
Expression: result = ownedTemplateSignature->notEmpty()
Send questions or comments to
[email protected].