Class AbstractRefactoring

    • Constructor Detail

      • AbstractRefactoring

        public AbstractRefactoring()
    • Method Detail

      • refactor

        public void refactor​(CMLResourceContainer resource,
                             org.eclipse.emf.ecore.resource.ResourceSet consistencyCheckResources)
        Description copied from interface: SemanticCMLRefactoring
        Applies the refactoring to the CML model in the given resource. Additionally ensures consistency in Context Maps in all resources of the additional ResourceSet.
        Specified by:
        refactor in interface SemanticCMLRefactoring
        Parameters:
        resource - the resource with the CML model that shall be refactored.
        consistencyCheckResources - the resources that contain Context Maps which potentially have to be corrected after refactoring. For example: if you have other models in your workspace that have referenes to the refactored one. If you provide them here as s ResourceSet, the refactoring can correct the references.
      • doRefactor

        protected abstract void doRefactor()
      • getAllBoundedContexts

        protected java.util.Set<BoundedContext> getAllBoundedContexts()
      • getAllContextMaps

        protected java.util.Set<ContextMap> getAllContextMaps()
      • getAllDomains

        protected java.util.Set<Domain> getAllDomains()
      • getAllUserRequirements

        protected java.util.Set<UserRequirement> getAllUserRequirements()
      • addElementsToEList

        protected <T> void addElementsToEList​(org.eclipse.emf.common.util.EList<T> list,
                                              java.util.List<T> elementsToAdd)
      • addElementToEList

        protected <T> void addElementToEList​(org.eclipse.emf.common.util.EList<T> list,
                                             T elementToAdd)
      • removeElementFromEList

        protected <T> void removeElementFromEList​(org.eclipse.emf.common.util.EList<T> list,
                                                  T object)