Abstract Class UML 2.3::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=32998%3AF657C0DE4CBBB9D17780E68529FE8FE9)
ownedTemplateSignature :
TemplateSignature (0 1); -- source
TemplateableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=32998%3AF657C0DE4CBBB9D17780E68529FE8FE9)
templateBinding :
TemplateBinding (0 *); -- source
TemplateableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=32998%3AF657C0DE4CBBB9D17780E68529FE8FE9)
ownedComment :
Comment (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=32998%3AF657C0DE4CBBB9D17780E68529FE8FE9)
ownedElement :
Element (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=32998%3AF657C0DE4CBBB9D17780E68529FE8FE9)
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].