Class UML 2.3::Stereotype

Description:

A stereotype defines how an existing metaclass may be extended, and enables
the use of platform or domain specific terminology or notation in place
of, or in addition to, the ones used for the extended metaclass.

Indicates whether it is possible to further redefine a RedefinableElement.
If the value is true, then it is not possible to further redefine the RedefinableElement.
Note that this property is preserved through package merge operations;
that is, the capability to redefine a RedefinableElement (i.e., isLeaf=false)
must be preserved in the resulting RedefinableElement of a package merge
operation where a RedefinableElement with isLeaf=false is merged with a
matching RedefinableElement with isLeaf=true: the resulting RedefinableElement
will have isLeaf=false. Default value is false.Default value: FALSE

Constraints:

Signature: generalize() : Boolean;Description: A Stereotype may only generalize or specialize another Stereotype.Expression: generalization.general->forAll(e |e.oclIsKindOf(Stereotype)) and generalization.specific->forAll(e | e.oclIsKindOf(Stereotype))

Operations:

Signature: profile.1() : Profile;Description: A stereotype must be contained, directly or indirectly, in a profile.Expression: result = self.containingProfile()

Signature: containingProfile() : Profile;Description: The query containingProfile returns the closest profile directly or indirectly containing this stereotype.The OCL used here is not normative.Editor's notes: This calls Package.containingProfile() which has a bug.Expression: trueOriginal: result = self.namespace.oclAsType(Package).containingProfile()