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.
Direct Superclasses: ClassDirect Subclasses: Class Precedence List: Stereotype,
Class,
EncapsulatedClassifier,
StructuredClassifier,
BehavioredClassifier,
Classifier,
TemplateableElement,
Type,
PackageableElement,
ParameterableElement,
Namespace,
RedefinableElement,
NamedElement,
ElementProperties:
![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
icon :
Image (0 *); -- source
Stereotype![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
profile :
Profile (0 1); -- source
Stereotype![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
extension :
Extension (0 *); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
isAbstract : Boolean (1 1); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
isActive : Boolean (1 1); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
nestedClassifier :
Classifier (0 *); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedAttribute :
Property (0 *); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedOperation :
Operation (0 *); -- source
Class![](/se-interop/image/right-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedReception :
Reception (0 *); -- source
Class Receptions that objects of this class are willing to accept.
{
composite}
Subsets: Classifier.feature, Namespace.ownedMember
![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
superClass :
Class (0 *); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedPort :
Port (0 *); -- source
EncapsulatedClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedConnector :
Connector (0 *); -- source
StructuredClassifier![](/se-interop/image/right-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
part :
Property (0 *); -- source
StructuredClassifier References the properties specifying instances that the classifier owns
by composition. This association is derived, selecting those owned properties
where isComposite is true.
{
readonly,
derived}
The spec does not provide a function to compute this derived property!![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
role :
ConnectableElement (0 *); -- source
StructuredClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
classifierBehavior :
Behavior (0 1); -- source
BehavioredClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
interfaceRealization :
InterfaceRealization (0 *); -- source
BehavioredClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedBehavior :
Behavior (0 *); -- source
BehavioredClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedTrigger :
Trigger (0 *); -- source
BehavioredClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
attribute :
Property (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
collaborationUse :
CollaborationUse (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
feature :
Feature (0 *); -- source
Classifier![](/se-interop/image/right-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
generalization :
Generalization (0 *); -- source
Classifier Specifies the Generalization relationships for this Classifier. These Generalizations
navigaten to more general classifiers in the generalization hierarchy.
{
composite}
Subsets: Element.ownedElement
Opposite: Generalization.specific
![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
inheritedMember :
NamedElement (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
isFinalSpecialization : Boolean (1 1); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedTemplateSignature :
RedefinableTemplateSignature (0 1); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedUseCase :
UseCase (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
powertypeExtent :
GeneralizationSet (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
redefinedClassifier :
Classifier (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
representation :
CollaborationUse (0 1); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
substitution :
Substitution (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
templateParameter :
ClassifierTemplateParameter (0 1); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
useCase :
UseCase (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
templateBinding :
TemplateBinding (0 *); -- source
TemplateableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
package :
Package (0 1); -- source
Type![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
visibility :
VisibilityKind (1 1); -- source
PackageableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
owningTemplateParameter :
TemplateParameter (0 1); -- source
ParameterableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
elementImport :
ElementImport (0 *); -- source
Namespace![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
importedMember :
PackageableElement (0 *); -- source
Namespace![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
member :
NamedElement (0 *); -- source
Namespace![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedMember :
NamedElement (0 *); -- source
Namespace![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedRule :
Constraint (0 *); -- source
Namespace![](/se-interop/image/right-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
packageImport :
PackageImport (0 *); -- source
Namespace References the PackageImports owned by the Namespace.
{
composite}
Subsets: Element.ownedElement
Opposite: PackageImport.importingNamespace
![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
isLeaf : Boolean (1 1); -- source
RedefinableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
redefinedElement :
RedefinableElement (0 *); -- source
RedefinableElement![](/se-interop/image/right-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
redefinitionContext :
Classifier (0 *); -- source
RedefinableElement References the contexts that this element may be redefined from.
{
readonly}
Derived union with sources: ()
![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
clientDependency :
Dependency (0 *); -- source
NamedElement![](/se-interop/image/right-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
name : String (0 1); -- source
NamedElement The name of the NamedElement.
![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
nameExpression :
StringExpression (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
namespace :
Namespace (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
qualifiedName : String (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedComment :
Comment (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
ownedElement :
Element (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=35241%3A2C13D3CA778777251055D8812D7DAFD9)
owner :
Element (0 1); -- source
ElementConstraints:
Signature: name_not_clash() : Boolean;
Description: Stereotype names should not clash with keyword names for the extended model
element.
Expression: true
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: true
Original: result = self.namespace.oclAsType(Package).containingProfile()
Send questions or comments to
[email protected].