Class FromDescriptiveName
The prefixer uses a combination of a out-path-prefix and the descriptive-name of inputs to create
an output prefix.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf true, any directory separators in the identifier in a descriptive-name are replaced by underscores.outFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context) Determines the out-file prefix from a path.voidsetSuppressDirectories(boolean suppressDirectories) If true, any directory separators in the identifier in a descriptive-name are replaced by underscores.Methods inherited from class org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve
getPrefix, outFilePrefix, outFilePrefixAvoidResolve, rootDirectoryPrefix, rootDirectoryPrefixAvoidResolve, setPrefixMethods inherited from class org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixer
resolvePath, resolvePathMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FromDescriptiveName
public FromDescriptiveName()
-
-
Method Details
-
outFilePrefixFromPath
public DirectoryWithPrefix outFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context) Description copied from class:PathPrefixerAvoidResolveDetermines the out-file prefix from a path.- Specified by:
outFilePrefixFromPathin classPathPrefixerAvoidResolve- Parameters:
path- path to calculate prefix from with associated descriptive-nameroot- root of prefixcontext- the path-prefixer context.- Returns:
- folder/filename for prefixing.
-
isSuppressDirectories
public boolean isSuppressDirectories()If true, any directory separators in the identifier in a descriptive-name are replaced by underscores.If false, this may still occur if it is requested in the
PathPrefixerContext. -
setSuppressDirectories
public void setSuppressDirectories(boolean suppressDirectories) If true, any directory separators in the identifier in a descriptive-name are replaced by underscores.If false, this may still occur if it is requested in the
PathPrefixerContext.
-