Class SubsetRangeIfRequested

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.SubsetRangeIfRequested

public class SubsetRangeIfRequested
extends org.anchoranalysis.io.input.bean.namer.FileNamer
If specified in the context, the existing name if subsetted according to an index range.

The existing name is split into groups by a deliminator (by default a forward/slash) to provide groups for the subsetting.

Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    SubsetRangeIfRequested()  
  • 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)  
    String getDelimiter()
    Character used to split the name into groups.
    org.anchoranalysis.io.input.bean.namer.FileNamer getNamer()
    The namer that is called to provide names that are subsetted.
    void setDelimiter​(String delimiter)
    Character used to split the name into groups.
    void setNamer​(org.anchoranalysis.io.input.bean.namer.FileNamer namer)
    The namer that is called to provide names that are subsetted.

    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
    • getNamer

      public org.anchoranalysis.io.input.bean.namer.FileNamer getNamer()
      The namer that is called to provide names that are subsetted.
    • setNamer

      public void setNamer​(org.anchoranalysis.io.input.bean.namer.FileNamer namer)
      The namer that is called to provide names that are subsetted.
    • getDelimiter

      public String getDelimiter()
      Character used to split the name into groups.
    • setDelimiter

      public void setDelimiter​(String delimiter)
      Character used to split the name into groups.