All Superinterfaces:
CustomizableRefactoring<Rename>, Refactoring

public interface Rename extends CustomizableRefactoring<Rename>
Renames entities or properties of entities.
Since:
1.10.0
Author:
Michael J. Simons
  • Method Details

    • label

      static Rename label(String from, String to)
      Provides a refactoring renaming a given node label. Any customization can be done directly on the Rename instance.
      Parameters:
      from - The label to rename
      to - The new label
      Returns:
      The refactoring ready to use
    • type

      static Rename type(String from, String to)
      Provides a refactoring renaming a given relationship type. Any customization can be done directly on the Rename instance.
      Parameters:
      from - The type to rename
      to - The new type
      Returns:
      The refactoring ready to use
    • nodeProperty

      static Rename nodeProperty(String from, String to)
      Provides a refactoring renaming a property on a node. Any customization can be done directly on the Rename instance. If the property does not exist on the given node, nothing changes.
      Parameters:
      from - The property to rename
      to - The new name of the property
      Returns:
      The refactoring ready to use
    • relationshipProperty

      static Rename relationshipProperty(String from, String to)
      Provides a refactoring renaming a property on a relationship. Any customization can be done directly on the Rename instance. If the property does not exist on the given relationship, nothing changes.
      Parameters:
      from - The property to rename
      to - The new name of the property
      Returns:
      The refactoring ready to use