Previous | UML Classes | Table of Contents | UML Packages | Next |
ClearStructuralFeatureAction is a structural feature action that removes all values of a structural feature.
•
StructuralFeatureAction (from IntermediateActions ) on page 297
This action removes all values of a structural feature.
No additional attributes
No additional associations
No additional constraints
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.
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.
ClearStructuralFeatureAction is new in UML 2.0. It generalizes ClearAttributeAction from UML 1.5.