Class DerivePath

Direct Known Subclasses:
CollapseFileName, Constant, Identity, InsertRegExGroups, JoinRegExGroups, NameElementRange, RemoveTrailingDirectory, Replace, Rooted

public abstract class DerivePath extends AnchorBean<DerivePath>
Derives a path from an existing path.
Author:
Owen Feehan
  • Constructor Details

    • DerivePath

      public DerivePath()
  • Method Details

    • deriveFrom

      public Path deriveFrom(Supplier<Optional<Path>> source, boolean debugMode) throws DerivePathException
      Derives a new path from an existing path.
      Parameters:
      source - the path to derive from.
      debugMode - true if debug-mode is activated
      Returns:
      the derived path.
      Throws:
      DerivePathException - if source supplies a Optional.empty() or anything else goes wrong.
    • deriveFrom

      public abstract Path deriveFrom(Path source, boolean debugMode) throws DerivePathException
      Derives a new path from an existing path.
      Parameters:
      source - the path to derive from.
      debugMode - true if debug-mode is activated
      Returns:
      the derived path.
      Throws:
      DerivePathException - if anything goes wrong