Interface IMdRefactoringService


  • public interface IMdRefactoringService
    The refactoring service that allows refactor MD objects.
    • Method Detail

      • createMdObjectRenameRefactoring

        Collection<IRefactoring> createMdObjectRenameRefactoring​(MdObject object,
                                                                 String newName)
        Creates refactoring instance for MD object renaming.
        Parameters:
        object - the MD object to rename, cannot be null.
        newName - the new name, cannot be null or empty.
        Returns:
        a collection of refactoring instances, never null.
      • createMdObjectDeleteRefactoring

        IRefactoring createMdObjectDeleteRefactoring​(Collection<? extends MdObject> objects)
        Creates refactoring instance for MD objects deletion.
        Parameters:
        objects - the collection of MD objects to delete, cannot be null.
        Returns:
        refactoring instance, never null.
      • createSubsystemMoveRefactoring

        IRefactoring createSubsystemMoveRefactoring​(Subsystem subsystem,
                                                    MdObject newParent)
        Creates refactoring instance for Subsystem moving.
        Parameters:
        subsystem - the subsytem to move, cannot be null.
        newParent - the new parent for subsystem, cannot be null.
        Returns:
        refactoring instance, never null.
      • createPredefinedItemDeleteRefactoring

        IRefactoring createPredefinedItemDeleteRefactoring​(Collection<? extends PredefinedItem> objects)
        Creates refactoring instance for predefined items deletion.
        Parameters:
        objects - the collection of predefined items to delete, cannot be null.
        Returns:
        refactoring instance, never null.
      • createPredefinedItemRenameRefactoring

        IRefactoring createPredefinedItemRenameRefactoring​(PredefinedItem predefinedItem,
                                                           String newName)
        Creates refactoring instance for PredefinedItem renaming.
        Parameters:
        predefinedItem - the predefined item to rename, cannot be null.
        newName - the new name, cannot be null or empty.
        Returns:
        refactoring instance, never null.
      • createPredefinedItemMoveRefactoring

        IRefactoring createPredefinedItemMoveRefactoring​(PredefinedItem predefinedItem,
                                                         org.eclipse.emf.ecore.EObject newParent)
        Creates refactoring instance for PredefinedItem moving.
        Parameters:
        predefinedItem - the predefined item to move, cannot be null.
        newParent - the new parent for predefined item, cannot be null.
        Returns:
        refactoring instance, never null.