Previous UML Classes Table of Contents UML Packages Next


11.3.12 ClearStructuralFeatureAction

IntermediateActions


   ClearStructuralFeatureAction is a structural feature action that removes all values of a structural feature.

*Generalizations

   

    StructuralFeatureAction (from IntermediateActions ) on page 297

*Description

   This action removes all values of a structural feature.

*Attributes

   No additional attributes

*Associations

   No additional associations

*Constraints

   No additional constraints

*Semantics

   All values are removed even when that violates the minimum multiplicity of the structural feature—the same as if the minimum were zero. The semantics is undefined for a structural feature with isReadOnly = true after initialization of the object owning the structural feature, unless the structural feature has no values. The action has no effect if the structural feature has no values. If the feature is an association end, the semantics are the same as for ClearAssociationAction on the object owning the structural feature.

*Notation

   No specific notation

   ClearStructuralFeatureAction is introduced to remove all values from a structural feature in a single action, with no intermediate states where only some of the existing values are present.

*Changes from previous UML

   ClearStructuralFeatureAction is new in UML 2.0. It generalizes ClearAttributeAction from UML 1.5.