Interface AddStructuralFeatureValueAction

    • Method Detail

      • setIsReplaceAll

        void setIsReplaceAll​(boolean value)
        Sets the value of the 'Is Replace All' attribute.
        Parameters:
        value - the new value of the 'Is Replace All' attribute.
        See Also:
        isReplaceAll()
      • getInsertAt

        InputPin getInsertAt()
        Returns the value of the 'Insert At' containment reference. Gives the position at which to insert a new value or move an existing value in ordered structural features. The type of the pin is UnlimitedNatural, but the value cannot be zero. This pin is omitted for unordered structural features.
        Returns:
        the value of the 'Insert At' containment reference.
        See Also:
        setInsertAt(InputPin), UMLPackage.getAddStructuralFeatureValueAction_InsertAt()
      • setInsertAt

        void setInsertAt​(InputPin value)
        Sets the value of the 'Insert At' containment reference.
        Parameters:
        value - the new value of the 'Insert At' containment reference.
        See Also:
        getInsertAt()
      • createInsertAt

        InputPin createInsertAt​(String name,
                                Type type,
                                org.eclipse.emf.ecore.EClass eClass)
        Creates a new InputPin, with the specified 'Name', and 'Type', and sets the 'Insert At' containment reference.
        Parameters:
        name - The 'Name' for the new InputPin, or null.
        type - The 'Type' for the new InputPin, or null.
        eClass - The Ecore class of the InputPin to create.
        Returns:
        The new InputPin.
        See Also:
        getInsertAt()
      • createInsertAt

        InputPin createInsertAt​(String name,
                                Type type)
        Creates a new InputPin,with the specified 'Name', and 'Type', and sets the 'Insert At' containment reference.
        Parameters:
        name - The 'Name' for the new InputPin, or null.
        type - The 'Type' for the new InputPin, or null.
        Returns:
        The new InputPin.
        See Also:
        getInsertAt()
      • validateUnlimitedNaturalAndMultiplicity

        boolean validateUnlimitedNaturalAndMultiplicity​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                        Map context)
        Actions adding a value to ordered structural features must have a single input pin for the insertion point with type UnlimitedNatural and multiplicity of 1..1, otherwise the action has no input pin for the insertion point. let insertAtPins : Collection = self.insertAt in if self.structuralFeature.isOrdered = #false then insertAtPins->size() = 0 else let insertAtPin : InputPin= insertAt->asSequence()->first() in insertAtPins->size() = 1 and insertAtPin.type = UnlimitedNatural and insertAtPin.multiplicity.is(1,1)) endif