public class RemoveTrailingDirectory extends DerivePath
Constructor and Description |
---|
RemoveTrailingDirectory() |
Modifier and Type | Method and Description |
---|---|
Path |
deriveFrom(Path source,
boolean debugMode)
Derives a new path from an existing path.
|
DerivePath |
getDerivePath() |
int |
getSkipFirstTrim() |
int |
getTrimTrailingDirectory() |
void |
setDerivePath(DerivePath derivePath) |
void |
setSkipFirstTrim(int skipFirstTrim) |
void |
setTrimTrailingDirectory(int trimTrailingDirectory) |
deriveFrom
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Path deriveFrom(Path source, boolean debugMode) throws DerivePathException
DerivePath
deriveFrom
in class DerivePath
source
- the path to derive from.debugMode
- true if debug-mode is activatedDerivePathException
- if anything goes wrongpublic DerivePath getDerivePath()
public void setDerivePath(DerivePath derivePath)
public int getTrimTrailingDirectory()
public void setTrimTrailingDirectory(int trimTrailingDirectory)
public int getSkipFirstTrim()
public void setSkipFirstTrim(int skipFirstTrim)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.