Software Disclaimer

Abstract Class UML 2.3::ParameterableElement


A parameterable element is an element that can be exposed as a formal template parameter for a template, or specified as an actual parameter in a binding of a template.

Direct Superclasses: Element

Direct Subclasses: PackageableElement, Operation, ConnectableElement

Class Precedence List: ParameterableElement, Element


owningTemplateParameter : TemplateParameter (0 1); -- source ParameterableElement
templateParameter : TemplateParameter (0 1); -- source ParameterableElement
ownedComment : Comment (0 *); -- source Element
ownedElement : Element (0 *); -- source Element
owner : Element (0 1); -- source Element


No additional constraints.


Signature: isTemplateParameter() : Boolean;
Description: The query isTemplateParameter() determines if this parameterable element is exposed as a formal template parameter.
Expression: result = templateParameter->notEmpty()

Signature: isCompatibleWith(p : ParameterableElement; ) : Boolean;
Description: The query isCompatibleWith() determines if this parameterable element is compatible with the specified parameterable element. By default parameterable element P is compatible with parameterable element Q if the kind of P is the same or a subtype as the kind of Q. Subclasses should override this operation to specify different compatibility constraints.
The OCL used here is not normative.
Editor's notes: oclType(), not oclType. No oclType in OCL AFAIK. I have one though,.
Expression: result = p->oclIsKindOf(self.oclType())
Original: result = p->oclIsKindOf(self.oclType)

Send questions or comments to [email protected].