public class LastDirectoryAsPrefix extends PathPrefixerAvoidResolve
e.g.
/a/b/c/d/e/somename.tifinstead becomes
/a/b/c/d/e_somename.tif* @author Owen Feehan
Constructor and Description |
---|
LastDirectoryAsPrefix() |
Modifier and Type | Method and Description |
---|---|
String |
getDelimiter() |
PathPrefixerAvoidResolve |
getPrefixer() |
DirectoryWithPrefix |
outFilePrefixFromPath(NamedPath path,
Path root,
PathPrefixerContext context)
Determines the out-file prefix from a path
|
void |
setDelimiter(String delimiter) |
void |
setPrefixer(PathPrefixerAvoidResolve prefixer) |
getPrefix, outFilePrefix, outFilePrefixAvoidResolve, rootDirectoryPrefix, rootDirectoryPrefixAvoidResolve, setPrefix
resolvePath, resolvePath
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public DirectoryWithPrefix outFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context) throws PathPrefixerException
PathPrefixerAvoidResolve
outFilePrefixFromPath
in class PathPrefixerAvoidResolve
path
- path to calculate prefix from with associated descriptive-nameroot
- root of prefixcontext
- the path-prefixer context.PathPrefixerException
public PathPrefixerAvoidResolve getPrefixer()
public void setPrefixer(PathPrefixerAvoidResolve prefixer)
public String getDelimiter()
public void setDelimiter(String delimiter)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.