Interface LinkAction

    • Method Detail

      • getEndData

        MDWEList<LinkEndData> getEndData()
        Returns the value of the 'End Data' containment reference list. The list contents are of type LinkEndData. Data identifying one end of a link by the objects on its ends and qualifiers.
        Returns:
        the value of the 'End Data' containment reference list.
        See Also:
        UMLPackage.getLinkAction_EndData()
      • createEndData

        LinkEndData createEndData​(org.eclipse.emf.ecore.EClass eClass)
        Creates a new LinkEndData and appends it to the 'End Data' containment reference list.
        Parameters:
        eClass - The Ecore class of the LinkEndData to create.
        Returns:
        The new LinkEndData.
        See Also:
        getEndData()
      • getInputValues

        MDWEList<InputPin> getInputValues()
        Returns the value of the 'Input Value' containment reference list. The list contents are of type InputPin. Pins taking end objects and qualifier values as input.
        Returns:
        the value of the 'Input Value' containment reference list.
        See Also:
        UMLPackage.getLinkAction_InputValue()
      • createInputValue

        InputPin createInputValue​(String name,
                                  Type type,
                                  org.eclipse.emf.ecore.EClass eClass)
        Creates a new InputPin, with the specified 'Name', and 'Type', and appends it to the 'Input Value' containment reference list.
        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:
        getInputValues()
      • createInputValue

        InputPin createInputValue​(String name,
                                  Type type)
        Creates a new InputPin, with the specified 'Name', and 'Type', and appends it to the 'Input Value' containment reference list.
        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:
        getInputValues()
      • getInputValue

        InputPin getInputValue​(String name,
                               Type type)
        Retrieves the first InputPin with the specified 'Name', and 'Type' from the 'Input Value' containment reference list.
        Parameters:
        name - The 'Name' of the InputPin to retrieve, or null.
        type - The 'Type' of the InputPin to retrieve, or null.
        Returns:
        The first InputPin with the specified 'Name', and 'Type', or null.
        See Also:
        getInputValues()
      • getInputValue

        InputPin getInputValue​(String name,
                               Type type,
                               boolean ignoreCase,
                               org.eclipse.emf.ecore.EClass eClass,
                               boolean createOnDemand)
        Retrieves the first InputPin with the specified 'Name', and 'Type' from the 'Input Value' containment reference list.
        Parameters:
        name - The 'Name' of the InputPin to retrieve, or null.
        type - The 'Type' of the InputPin to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the InputPin to retrieve, or null.
        createOnDemand - Whether to create a InputPin on demand if not found.
        Returns:
        The first InputPin with the specified 'Name', and 'Type', or null.
        See Also:
        getInputValues()
      • validateSameAssociation

        boolean validateSameAssociation​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                        Map context)
        The association ends of the link end data must all be from the same association and include all and only the association ends of that association. self.endData->collect(end) = self.association()->collect(connection))
      • validateNotStatic

        boolean validateNotStatic​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                  Map context)
        The association ends of the link end data must not be static. self.endData->forall(end.oclisKindOf(NavigableEnd) implies end.isStatic = #false
      • validateSamePins

        boolean validateSamePins​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                 Map context)
        The input pins of the action are the same as the pins of the link end data and insertion pins. self.input->asSet() = let ledpins : Set = self.endData->collect(value) in if self.oclIsKindOf(LinkEndCreationData) then ledpins->union(self.endData.oclAsType(LinkEndCreationData).insertAt) else ledpins
      • association

        Association association()
        The association operates on LinkAction. It returns the association of the action. result = self.endData->asSequence().first().end.association