public class Replace extends DerivePath
Paths always use forward-slashes regardless of operating system.
Constructor and Description |
---|
Replace() |
Modifier and Type | Method and Description |
---|---|
Path |
deriveFrom(Path source,
boolean debugMode)
Derives a new path from an existing path.
|
String |
getRegex()
Regular expression to match against string
|
String |
getReplacement()
What to replace in the path
|
void |
setRegex(String regex)
Regular expression to match against string
|
void |
setReplacement(String replacement)
What to replace in the path
|
deriveFrom
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Path deriveFrom(Path source, boolean debugMode)
DerivePath
deriveFrom
in class DerivePath
source
- the path to derive from.debugMode
- true if debug-mode is activatedpublic String getRegex()
public void setRegex(String regex)
public String getReplacement()
public void setReplacement(String replacement)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.