Class DerivePath
- Direct Known Subclasses:
Identity,NameElementRange
public abstract class DerivePath extends AnchorBean<DerivePath>
Derives a path from an existing path.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description DerivePath() -
Method Summary
Modifier and Type Method Description abstract PathderiveFrom(Path source, boolean debugMode)Derives a new path from an existing path.PathderiveFrom(Supplier<Optional<Path>> source, boolean debugMode)Derives a new path from an existing path.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
DerivePath
public DerivePath()
-
-
Method Details
-
deriveFrom
public Path deriveFrom(Supplier<Optional<Path>> source, boolean debugMode) throws DerivePathExceptionDerives 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- ifsourcesupplies aOptional.empty()or anything else goes wrong.
-
deriveFrom
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
-