Class IfRelativeToDirectory

Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.io.input.bean.namer.FileNamer>
org.anchoranalysis.io.input.bean.namer.FileNamer
org.anchoranalysis.plugin.io.bean.file.namer.IfRelativeToDirectory

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

    Constructors 
    Constructor Description
    IfRelativeToDirectory()  
  • Method Summary

    Modifier and Type Method Description
    List<org.anchoranalysis.io.input.file.NamedFile> deriveName​(List<File> files, org.anchoranalysis.io.input.file.FileNamerContext context)  
    org.anchoranalysis.io.input.bean.namer.FileNamer getOtherwise()
    The namer to use if the relative-to-directory option is not selected.
    org.anchoranalysis.io.input.bean.namer.FileNamer getWhenRelative()
    The namer to use if the relative-to-directory option is selected.
    void setOtherwise​(org.anchoranalysis.io.input.bean.namer.FileNamer otherwise)
    The namer to use if the relative-to-directory option is not selected.
    void setWhenRelative​(org.anchoranalysis.io.input.bean.namer.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

  • Method Details

    • deriveName

      public List<org.anchoranalysis.io.input.file.NamedFile> deriveName​(List<File> files, org.anchoranalysis.io.input.file.FileNamerContext context)
      Specified by:
      deriveName in class org.anchoranalysis.io.input.bean.namer.FileNamer
    • getWhenRelative

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

      public void setWhenRelative​(org.anchoranalysis.io.input.bean.namer.FileNamer whenRelative)
      The namer to use if the relative-to-directory option is selected.
    • getOtherwise

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

      public void setOtherwise​(org.anchoranalysis.io.input.bean.namer.FileNamer otherwise)
      The namer to use if the relative-to-directory option is not selected.