Interface UseCase

    • Method Detail

      • createInclude

        Include createInclude​(String name,
                              UseCase addition)
        Creates a new Include, with the specified 'Name', and 'Addition', and appends it to the 'Include' containment reference list.
        Parameters:
        name - The 'Name' for the new Include, or null.
        addition - The 'Addition' for the new Include, or null.
        Returns:
        The new Include.
        See Also:
        getIncludes()
      • getInclude

        Include getInclude​(String name,
                           UseCase addition)
        Retrieves the first Include with the specified 'Name', and 'Addition' from the 'Include' containment reference list.
        Parameters:
        name - The 'Name' of the Include to retrieve, or null.
        addition - The 'Addition' of the Include to retrieve, or null.
        Returns:
        The first Include with the specified 'Name', and 'Addition', or null.
        See Also:
        getIncludes()
      • getInclude

        Include getInclude​(String name,
                           UseCase addition,
                           boolean ignoreCase,
                           boolean createOnDemand)
        Retrieves the first Include with the specified 'Name', and 'Addition' from the 'Include' containment reference list.
        Parameters:
        name - The 'Name' of the Include to retrieve, or null.
        addition - The 'Addition' of the Include to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        createOnDemand - Whether to create a Include on demand if not found.
        Returns:
        The first Include with the specified 'Name', and 'Addition', or null.
        See Also:
        getIncludes()
      • createExtend

        Extend createExtend​(String name,
                            UseCase extendedCase)
        Creates a new Extend, with the specified 'Name', and 'Extended Case', and appends it to the 'Extend' containment reference list.
        Parameters:
        name - The 'Name' for the new Extend, or null.
        extendedCase - The 'Extended Case' for the new Extend, or null.
        Returns:
        The new Extend.
        See Also:
        getExtends()
      • getExtend

        Extend getExtend​(String name,
                         UseCase extendedCase)
        Retrieves the first Extend with the specified 'Name', and 'Extended Case ' from the 'Extend' containment reference list.
        Parameters:
        name - The 'Name' of the Extend to retrieve, or null.
        extendedCase - The 'Extended Case' of the Extend to retrieve, or null.
        Returns:
        The first Extend with the specified 'Name', and 'Extended Case', or null.
        See Also:
        getExtends()
      • getExtend

        Extend getExtend​(String name,
                         UseCase extendedCase,
                         boolean ignoreCase,
                         boolean createOnDemand)
        Retrieves the first Extend with the specified 'Name', and 'Extended Case ' from the 'Extend' containment reference list.
        Parameters:
        name - The 'Name' of the Extend to retrieve, or null.
        extendedCase - The 'Extended Case' of the Extend to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        createOnDemand - Whether to create a Extend on demand if not found.
        Returns:
        The first Extend with the specified 'Name', and 'Extended Case', or null.
        See Also:
        getExtends()
      • getExtensionPoint

        ExtensionPoint getExtensionPoint​(String name,
                                         boolean ignoreCase,
                                         boolean createOnDemand)
        Retrieves the first ExtensionPoint with the specified 'Name' from the ' Extension Point' containment reference list.
        Parameters:
        name - The 'Name' of the ExtensionPoint to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        createOnDemand - Whether to create a ExtensionPoint on demand if not found.
        Returns:
        The first ExtensionPoint with the specified 'Name', or null.
        See Also:
        getExtensionPoints()
      • getSubjects

        MDWEList<Classifier> getSubjects()
        Returns the value of the 'Subject' reference list. The list contents are of type Classifier. It is bidirectional and its opposite is 'Use Case'. References the subjects to which this use case applies. The subject or its parts realize all the use cases that apply to this subject. Use cases need not be attached to any specific subject, however. The subject may, but need not, own the use cases that apply to it.
        Returns:
        the value of the 'Subject' reference list.
        See Also:
        UMLPackage.getUseCase_Subject(), Classifier.getUseCases()
      • getSubject

        Classifier getSubject​(String name)
        Retrieves the first Classifier with the specified 'Name' from the ' Subject' reference list.
        Parameters:
        name - The 'Name' of the Classifier to retrieve, or null.
        Returns:
        The first Classifier with the specified 'Name', or null.
        See Also:
        getSubjects()
      • getSubject

        Classifier getSubject​(String name,
                              boolean ignoreCase,
                              org.eclipse.emf.ecore.EClass eClass)
        Retrieves the first Classifier with the specified 'Name' from the ' Subject' reference list.
        Parameters:
        name - The 'Name' of the Classifier to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the Classifier to retrieve, or null.
        Returns:
        The first Classifier with the specified 'Name', or null.
        See Also:
        getSubjects()
      • validateMustHaveName

        boolean validateMustHaveName​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                     Map context)
        A UseCase must have a name. self.name -> notEmpty ()
      • validateBinaryAssociations

        boolean validateBinaryAssociations​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           Map context)
        UseCases can only be involved in binary Associations. true
      • validateNoAssociationToUseCase

        boolean validateNoAssociationToUseCase​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                               Map context)
        UseCases can not have Associations to UseCases specifying the same subject. true
      • validateCannotIncludeSelf

        boolean validateCannotIncludeSelf​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                          Map context)
        A use case cannot include use cases that directly or indirectly include it. not self.allIncludedUseCases()->includes(self)
      • allIncludedUseCases

        MDWEList<UseCase> allIncludedUseCases()
        The query allIncludedUseCases() returns the transitive closure of all use cases (directly or indirectly) included by this use case. result = self.include->union(self.include->collect(in | in.allIncludedUseCases()))