Class FromDescriptiveName

Object
AnchorBean<PathPrefixer>
PathPrefixer
PathPrefixerAvoidResolve
FromDescriptiveName

public class FromDescriptiveName extends PathPrefixerAvoidResolve
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    If true, any directory separators in the identifier in a descriptive-name are replaced by underscores.
    DirectoryWithPrefix
    outFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context)
     
    void
    setSuppressDirectories(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, 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

    • FromDescriptiveName

      public FromDescriptiveName()
  • Method Details

    • outFilePrefixFromPath

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