Class BeanPathCalculator
Object
org.anchoranalysis.bean.xml.factory.BeanPathCalculator
public class BeanPathCalculator extends Object
Calculates file-system paths involving an
AnchorBean.- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description static Optional<Path>pathFromBean(AnchorBean<?> bean, String relativePath)Calculates a path from the current bean.
-
Method Details
-
pathFromBean
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.
-