Interface LinkEndCreationData

    • Method Detail

      • isReplaceAll

        boolean isReplaceAll()
        Returns the value of the 'Is Replace All' attribute. The default value is "false". Specifies whether the existing links emanating from the object on this end should be destroyed before creating a new link.
        Returns:
        the value of the 'Is Replace All' attribute.
        See Also:
        setIsReplaceAll(boolean), UMLPackage.getLinkEndCreationData_IsReplaceAll()
      • 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' reference. Specifies where the new link should be inserted for ordered association ends, or where an existing link should be moved to. The type of the input is UnlimitedNatural, but the input cannot be zero. This pin is omitted for association ends that are not ordered.
        Returns:
        the value of the 'Insert At' reference.
        See Also:
        setInsertAt(InputPin), UMLPackage.getLinkEndCreationData_InsertAt()
      • setInsertAt

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

        boolean validateCreateLinkAction​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         Map context)
        LinkEndCreationData can only be end data for CreateLinkAction or one of its specializations. self.LinkAction.oclIsKindOf(CreateLinkAction)
      • validateSingleInputPin

        boolean validateSingleInputPin​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       Map context)
        Link end creation data for ordered association ends 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.end.ordering = #unordered then insertAtPins->size() = 0 else let insertAtPin : InputPin = insertAts->asSequence()->first() in insertAtPins->size() = 1 and insertAtPin.type = UnlimitedNatural and insertAtPin.multiplicity.is(1,1)) endif