Class IfIncrementingNumberRequested
Multiplexes between two
PathPrefixers depending on whether an incrementing number
sequence was output was requested.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCalled if the requested condition is not true.Called if the requested condition is true.outFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context) Determines the out-file prefix from a path.voidsetPrefixerElse(PathPrefixerAvoidResolve prefixerElse) Called if the requested condition is not true.voidsetPrefixerIf(PathPrefixerAvoidResolve prefixerIf) Called if the requested condition is true.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
-
IfIncrementingNumberRequested
public IfIncrementingNumberRequested()
-
-
Method Details
-
outFilePrefixFromPath
public DirectoryWithPrefix outFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context) throws PathPrefixerException 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.
- Throws:
PathPrefixerException- if a prefix cannot be successfully derived.
-
getPrefixerIf
Called if the requested condition is true. -
setPrefixerIf
Called if the requested condition is true. -
getPrefixerElse
Called if the requested condition is not true. -
setPrefixerElse
Called if the requested condition is not true.
-