Class DerivePath
- Direct Known Subclasses:
CollapseFileName
,Constant
,Identity
,InsertRegExGroups
,JoinRegExGroups
,NameElementRange
,RemoveTrailingDirectory
,Replace
,Rooted
Derives a path from an existing path.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Path
deriveFrom
(Path source, boolean debugMode) Derives a new path from an existing path.deriveFrom
(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 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
- ifsource
supplies 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
-