Interface AddVariableValueAction

    • 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 variables. The types is UnlimitedINatural, but the value cannot be zero. This pin is omitted for unordered variables.
        Returns:
        the value of the 'Insert At' containment reference.
        See Also:
        setInsertAt(InputPin), UMLPackage.getAddVariableValueAction_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()
      • validateSingleInputPin

        boolean validateSingleInputPin​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       Map context)
        Actions adding values to ordered variables must have a single input pin for the insertion point with type UnlimtedNatural and multiplicity of 1..1, otherwise the action has no input pin for the insertion point. let insertAtPins : Collection = self.insertAt in if self.variable.ordering = #unordered 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