Class Rooted

Object
AnchorBean<PathPrefixer>
PathPrefixer
Rooted

public class Rooted extends PathPrefixer
Prepend a 'root' before the file-path-prefix obtained from a delegate

A root is a path that is mapped via a unique-name in a settings file to a directory

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Rooted(PathPrefixerAvoidResolve prefixer, String rootName)
    Creates a new Rooted instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    PathPrefixerAvoidResolve
     
    The name of the root-path to associate with this fileset.
    DirectoryWithPrefix
    outFilePrefix(NamedPath path, Optional<String> experimentName, PathPrefixerContext context)
     
    DirectoryWithPrefix
    rootDirectoryPrefix(Optional<String> expName, PathPrefixerContext context)
     
    void
    setPrefixer(PathPrefixerAvoidResolve prefixer)
     
    void
    setRootName(String rootName)
    The name of the root-path to associate with this fileset.

    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

    • Rooted

      public Rooted()
    • Rooted

      public Rooted(PathPrefixerAvoidResolve prefixer, String rootName)
      Creates a new Rooted instance.
      Parameters:
      prefixer -
      rootName - The name of the root-path to associate with this fileset.
  • Method Details

    • outFilePrefix

      public DirectoryWithPrefix outFilePrefix(NamedPath path, Optional<String> experimentName, PathPrefixerContext context) throws PathPrefixerException
      Specified by:
      outFilePrefix in class PathPrefixer
      Throws:
      PathPrefixerException
    • rootDirectoryPrefix

      public DirectoryWithPrefix rootDirectoryPrefix(Optional<String> expName, PathPrefixerContext context) throws PathPrefixerException
      Specified by:
      rootDirectoryPrefix in class PathPrefixer
      Throws:
      PathPrefixerException
    • getPrefixer

      public PathPrefixerAvoidResolve getPrefixer()
    • setPrefixer

      public void setPrefixer(PathPrefixerAvoidResolve prefixer)
    • getRootName

      public String getRootName()
      The name of the root-path to associate with this fileset.
    • setRootName

      public void setRootName(String rootName)
      The name of the root-path to associate with this fileset.