Class Replace
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.io.input.bean.path.DerivePath>
org.anchoranalysis.io.input.bean.path.DerivePath
org.anchoranalysis.plugin.io.bean.path.derive.Replace
public class Replace
extends org.anchoranalysis.io.input.bean.path.DerivePath
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 Constructor Description Replace() -
Method Summary
Modifier and Type Method Description PathderiveFrom(Path source, boolean debugMode)StringgetRegex()Regular expression to match against stringStringgetReplacement()What to replace in the pathvoidsetRegex(String regex)Regular expression to match against stringvoidsetReplacement(String replacement)What to replace in the path
-
Constructor Details
-
Replace
public Replace()
-
-
Method Details
-
deriveFrom
- Specified by:
deriveFromin classorg.anchoranalysis.io.input.bean.path.DerivePath
-
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
-