Interface Extend

    • Method Detail

      • setExtendedCase

        void setExtendedCase​(UseCase value)
        Sets the value of the 'Extended Case' reference.
        Parameters:
        value - the new value of the 'Extended Case' reference.
        See Also:
        getExtendedCase()
      • getCondition

        Constraint getCondition()
        Returns the value of the 'Condition' containment reference. References the condition that must hold when the first extension point is reached for the extension to take place. If no constraint is associated with the extend relationship, the extension is unconditional.
        Returns:
        the value of the 'Condition' containment reference.
        See Also:
        setCondition(Constraint), UMLPackage.getExtend_Condition()
      • setCondition

        void setCondition​(Constraint value)
        Sets the value of the 'Condition' containment reference.
        Parameters:
        value - the new value of the 'Condition' containment reference.
        See Also:
        getCondition()
      • createCondition

        Constraint createCondition​(String name,
                                   org.eclipse.emf.ecore.EClass eClass)
        Creates a new Constraint, with the specified 'Name', and sets the ' Condition' containment reference.
        Parameters:
        name - The 'Name' for the new Constraint, or null.
        eClass - The Ecore class of the Constraint to create.
        Returns:
        The new Constraint.
        See Also:
        getCondition()
      • getExtensionLocations

        MDWEList<ExtensionPoint> getExtensionLocations()
        Returns the value of the 'Extension Location' reference list. The list contents are of type ExtensionPoint. An ordered list of extension points belonging to the extended use case, specifying where the respective behavioral fragments of the extending use case are to be inserted. The first fragment in the extending use case is associated with the first extension point in the list, the second fragment with the second point, and so on. (Note that, in most practical cases, the extending use case has just a single behavior fragment, so that the list of extension points is trivial.)
        Returns:
        the value of the 'Extension Location' reference list.
        See Also:
        UMLPackage.getExtend_ExtensionLocation()
      • setExtension

        void setExtension​(UseCase value)
        Sets the value of the 'Extension' container reference.
        Parameters:
        value - the new value of the 'Extension' container reference.
        See Also:
        getExtension()
      • validateExtensionPoints

        boolean validateExtensionPoints​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                        Map context)
        The extension points referenced by the extend relationship must belong to the use case that is being extended. extensionLocation->forAll (xp | extendedCase.extensionPoint->includes(xp))