Class IfIncrementingNumberRequested
Object
AnchorBean<PathPrefixer>
PathPrefixer
PathPrefixerAvoidResolve
IfIncrementingNumberRequested
public class IfIncrementingNumberRequested
extends PathPrefixerAvoidResolve
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 TypeMethodDescriptionPathPrefixerAvoidResolveCalled if the requested condition is not true.PathPrefixerAvoidResolveCalled if the requested condition is true.DirectoryWithPrefixoutFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context) 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 - Specified by:
outFilePrefixFromPathin classPathPrefixerAvoidResolve- Throws:
PathPrefixerException
-
getPrefixerIf
public PathPrefixerAvoidResolve getPrefixerIf()Called if the requested condition is true. -
setPrefixerIf
public void setPrefixerIf(PathPrefixerAvoidResolve prefixerIf) Called if the requested condition is true. -
getPrefixerElse
public PathPrefixerAvoidResolve getPrefixerElse()Called if the requested condition is not true. -
setPrefixerElse
public void setPrefixerElse(PathPrefixerAvoidResolve prefixerElse) Called if the requested condition is not true.
-