Class BeanPathCalculator

Object
BeanPathCalculator

public class BeanPathCalculator extends Object
Calculates file-system paths involving an AnchorBean.
Author:
Owen Feehan
  • Method Details

    • pathFromBean

      public static Optional<Path> pathFromBean(AnchorBean<?> bean, String relativePath)
      Calculates a path from the current bean.
      Parameters:
      bean - a bean that has been loaded from the file-system (and retains a link to the path it was loaded from).
      relativePath - a relative-path
      Returns:
      the relative-path joined into the location of the bean on the file-system, if it can be calculated.