Class UML 2.5::Class
Description:
A Class classifies a set of objects and specifies the features that characterize
the structure and behavior of those objects. A Class may have an internal
structure and Ports.
Direct Superclasses: BehavioredClassifier,
EncapsulatedClassifierDirect Subclasses: Stereotype,
Node,
Component,
Behavior,
AssociationClassClass Precedence List: Class,
BehavioredClassifier,
EncapsulatedClassifier,
StructuredClassifier,
Classifier,
Namespace,
Type,
PackageableElement,
ParameterableElement,
TemplateableElement,
RedefinableElement,
NamedElement,
ElementProperties:
![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
extension :
Extension (0 *); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
isAbstract : Boolean (1 1); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
isActive : Boolean (1 1); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
nestedClassifier :
Classifier (0 *); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedAttribute :
Property (0 *); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedOperation :
Operation (0 *); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedReception :
Reception (0 *); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
superClass :
Class (0 *); -- source
Class![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
classifierBehavior :
Behavior (0 1); -- source
BehavioredClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
interfaceRealization :
InterfaceRealization (0 *); -- source
BehavioredClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedBehavior :
Behavior (0 *); -- source
BehavioredClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedPort :
Port (0 *); -- source
EncapsulatedClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedConnector :
Connector (0 *); -- source
StructuredClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
part :
Property (0 *); -- source
StructuredClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
role :
ConnectableElement (0 *); -- source
StructuredClassifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
attribute :
Property (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
collaborationUse :
CollaborationUse (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
feature :
Feature (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
generalization :
Generalization (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
inheritedMember :
NamedElement (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
isFinalSpecialization : Boolean (1 1); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedTemplateSignature :
RedefinableTemplateSignature (0 1); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedUseCase :
UseCase (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
powertypeExtent :
GeneralizationSet (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
redefinedClassifier :
Classifier (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
representation :
CollaborationUse (0 1); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
substitution :
Substitution (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
templateParameter :
ClassifierTemplateParameter (0 1); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
useCase :
UseCase (0 *); -- source
Classifier![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
elementImport :
ElementImport (0 *); -- source
Namespace![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
importedMember :
PackageableElement (0 *); -- source
Namespace![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
member :
NamedElement (0 *); -- source
Namespace![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedMember :
NamedElement (0 *); -- source
Namespace![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedRule :
Constraint (0 *); -- source
Namespace![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
packageImport :
PackageImport (0 *); -- source
Namespace![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
package :
Package (0 1); -- source
Type![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
visibility :
VisibilityKind (0 1); -- source
PackageableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
owningTemplateParameter :
TemplateParameter (0 1); -- source
ParameterableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
templateBinding :
TemplateBinding (0 *); -- source
TemplateableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
isLeaf : Boolean (1 1); -- source
RedefinableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
redefinedElement :
RedefinableElement (0 *); -- source
RedefinableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
redefinitionContext :
Classifier (0 *); -- source
RedefinableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
clientDependency :
Dependency (0 *); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
name : String (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
nameExpression :
StringExpression (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
namespace :
Namespace (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
qualifiedName : String (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedComment :
Comment (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
ownedElement :
Element (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=124770%3A68975DC7E33CE7C4CE83245FC693CEE6)
owner :
Element (0 1); -- source
ElementConstraints:
Signature: CMOF_14_3_18() : Boolean;
Description: 14.3 [18] Class must not be active
see also: https://sites.google.com/site/metamodelingantipatterns/catalog/mof/class-is-active
Expression: not isActive
Signature: CMOF_14_3_15() : Boolean;
Description: 14.3 [15] Only one member attribute of a Class may have isId=true.
see also: https://sites.google.com/site/metamodelingantipatterns/catalog/mof/class-has-more-than-one-id
Expression: self->closure(general)->union(self)->attribute->asSet()->select(p:Property | p.isID)->size() < 2
Signature: CMOF_14_3_10a() : Boolean;
Description: 14.3 [10] The following properties must be empty
Class::nestedClassifier
Property::qualifier
see also: https://sites.google.com/site/metamodelingantipatterns/catalog/mof/class-has-nested-classifier
Expression: nestedClassifier->isEmpty()
Operations:
Signature: superClass.1() : Class;
Description: Derivation for Class::/superClass : Class
Expression: result = (self.general()->select(oclIsKindOf(Class))->collect(oclAsType(Class))->asSet())
Signature: extension.1() : Extension;
Description: Derivation for Class::/extension : Extension
Expression: result = (Extension.allInstances()->select(ext | let endTypes : Sequence(Classifier) = ext.memberEnd->collect(type.oclAsType(Classifier)) in endTypes->includes(self) or endTypes.allParents()->includes(self) ))
Send questions or comments to
[email protected].