Class CollapseFileName
Object
AnchorBean<DerivePath>
DerivePath
CollapseFileName
public class CollapseFileName
extends DerivePath
Removes the file-name from a path, but keeps the directories and preserves the file-extension.
Specifically, a file-path of form somedirectory/somename.ext and converts to
somedirectory.ext.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionderiveFrom(Path source, boolean debugMode) DerivePathCalled as a delegate to provide asourcePath.booleanWhen true, the extension is appended to the directory.voidsetDerivePath(DerivePath derivePath) Called as a delegate to provide asourcePath.voidsetKeepExtension(boolean keepExtension) When true, the extension is appended to the directory.Methods inherited from class org.anchoranalysis.io.input.bean.path.DerivePath
deriveFromMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
CollapseFileName
public CollapseFileName()
-
-
Method Details
-
deriveFrom
-
getDerivePath
public DerivePath getDerivePath()Called as a delegate to provide asourcePath. -
setDerivePath
public void setDerivePath(DerivePath derivePath) Called as a delegate to provide asourcePath. -
isKeepExtension
public boolean isKeepExtension()When true, the extension is appended to the directory. -
setKeepExtension
public void setKeepExtension(boolean keepExtension) When true, the extension is appended to the directory.
-