public class Replace extends DerivePath
Generates a file-path by replacing all occurrences of a string-pattern with another

Paths always use forward-slashes regardless of operating system.

  • Constructor Details

    • Replace

      public Replace()
  • Method Details

    • deriveFrom

      public Path deriveFrom(Path source, boolean debugMode)
      Description copied from class: DerivePath
      Derives a new path from an existing path.
      Specified by:
      deriveFrom in class DerivePath
      Parameters:
      source - the path to derive from.
      debugMode - true if debug-mode is activated
      Returns:
      the derived path.
    • getRegex

      public String getRegex()
      Regular expression to match against string
    • setRegex

      public void setRegex(String regex)
      Regular expression to match against string
    • getReplacement

      public String getReplacement()
      What to replace in the path
    • setReplacement

      public void setReplacement(String replacement)
      What to replace in the path