Class IfRelativeToDirectory

Object
AnchorBean<FileNamer>
FileNamer
IfRelativeToDirectory

public class IfRelativeToDirectory extends FileNamer
Multiplexes between two namers depending on if the relative-to-directory option is selected.
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<NamedFile>
    deriveName(List<File> files, FileNamerContext context)
     
    FileNamer
    The namer to use if the relative-to-directory option is not selected.
    FileNamer
    The namer to use if the relative-to-directory option is selected.
    void
    setOtherwise(FileNamer otherwise)
    The namer to use if the relative-to-directory option is not selected.
    void
    setWhenRelative(FileNamer whenRelative)
    The namer to use if the relative-to-directory option is selected.

    Methods inherited from class org.anchoranalysis.io.input.bean.namer.FileNamer

    deriveName, deriveNameUnique

    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

    • IfRelativeToDirectory

      public IfRelativeToDirectory()
  • Method Details

    • deriveName

      public List<NamedFile> deriveName(List<File> files, FileNamerContext context)
      Specified by:
      deriveName in class FileNamer
    • getWhenRelative

      public FileNamer getWhenRelative()
      The namer to use if the relative-to-directory option is selected.
    • setWhenRelative

      public void setWhenRelative(FileNamer whenRelative)
      The namer to use if the relative-to-directory option is selected.
    • getOtherwise

      public FileNamer getOtherwise()
      The namer to use if the relative-to-directory option is not selected.
    • setOtherwise

      public void setOtherwise(FileNamer otherwise)
      The namer to use if the relative-to-directory option is not selected.