Previous UML Classes Table of Contents UML Packages Next


7.3.49 StructuralFeature

Kernel


   A structural feature is a typed feature of a classifier that specifies the structure of instances of the classifier.

*Generalizations

   

    Feature (from Kernel ) on page 70

   

    MultiplicityElement (from Kernel ) on page 96

   

    TypedElement (from Kernel ) on page 138

*Description

   A structural feature is a typed feature of a classifier that specifies the structure of instances of the classifier. Structural feature is an abstract metaclass.

   By specializing multiplicity element, it supports a multiplicity that specifies valid cardinalities for the collection of values associated with an instantiation of the structural feature.

*Attributes

   • isReadOnly: Boolean States whether the feature’s value may be modified by a client. Default is false.

*Associations

   No additional associations

*Constraints

   No additional constraints

*Semantics

   A structural feature specifies that instances of the featuring classifier have a slot whose value or values are of a specified type.

*Notation

Issue 8935 -remove reference to {unrestricted}

   A read only structural feature is shown using {readOnly} as part of the notation for the structural feature. This annotation may be suppressed, in which case it is not possible to determine its value from the diagram.

*Presentation Options

   It is possible to only allow suppression of this annotation when isReadOnly=false. In this case it is possible to assume this value in all cases where {readOnly} is not shown.

*Changes from previous UML

   The meta-attribute targetScope, which characterized StructuralFeature and AssociationEnd in prior UML is no longer supported.