public class DirectoryStructure extends PathPrefixerAvoidResolve
e.g. for a path=
/a/b/c/d/e.tifand root=
/a/bthen the prefix would be
c/d/e/
Constructor and Description |
---|
DirectoryStructure() |
Modifier and Type | Method and Description |
---|---|
String |
getPrefixToRemove() |
boolean |
isIncludeDirectories()
If false, the folders are ignored, and only the file-name is used in the output
|
DirectoryWithPrefix |
outFilePrefixFromPath(NamedPath path,
Path root,
PathPrefixerContext context)
Determines the out-file prefix from a path
|
void |
setIncludeDirectories(boolean includeDirectories)
If false, the folders are ignored, and only the file-name is used in the output
|
void |
setPrefixToRemove(String prefixToRemove) |
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 boolean isIncludeDirectories()
public void setIncludeDirectories(boolean includeDirectories)
public String getPrefixToRemove()
public void setPrefixToRemove(String prefixToRemove)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.