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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    PathPrefixerAvoidResolve
    Called if the requested condition is not true.
    PathPrefixerAvoidResolve
    Called if the requested condition is true.
    DirectoryWithPrefix
    outFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context)
     
    void
    setPrefixerElse(PathPrefixerAvoidResolve prefixerElse)
    Called if the requested condition is not true.
    void
    setPrefixerIf(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, setPrefix

    Methods inherited from class org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixer

    resolvePath, resolvePath

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • IfIncrementingNumberRequested

      public IfIncrementingNumberRequested()
  • Method Details

    • outFilePrefixFromPath

      public DirectoryWithPrefix outFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context) throws PathPrefixerException
      Specified by:
      outFilePrefixFromPath in class PathPrefixerAvoidResolve
      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.