Class Replace
Generates a file-path by replacing all occurrences of a string-pattern with another
Paths always use forward-slashes regardless of operating system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionderiveFrom
(Path source, boolean debugMode) Derives a new path from an existing path.getRegex()
Regular expression to match against stringWhat to replace in the pathvoid
Regular expression to match against stringvoid
setReplacement
(String replacement) What to replace in the pathMethods inherited from class org.anchoranalysis.io.input.bean.path.DerivePath
deriveFrom
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Replace
public Replace()
-
-
Method Details
-
deriveFrom
Description copied from class:DerivePath
Derives a new path from an existing path.- Specified by:
deriveFrom
in classDerivePath
- Parameters:
source
- the path to derive from.debugMode
- true if debug-mode is activated- Returns:
- the derived path.
-
getRegex
Regular expression to match against string -
setRegex
Regular expression to match against string -
getReplacement
What to replace in the path -
setReplacement
What to replace in the path
-