Class SubsetRangeIfRequested

Object
AnchorBean<FileNamer>
FileNamer
SubsetRangeIfRequested

public class SubsetRangeIfRequested extends 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<NamedFile>
    deriveName(List<File> files, FileNamerContext context)
     
    Character used to split the name into groups.
    FileNamer
    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(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

    • SubsetRangeIfRequested

      public SubsetRangeIfRequested()
  • Method Details

    • deriveName

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

      public FileNamer getNamer()
      The namer that is called to provide names that are subsetted.
    • setNamer

      public void setNamer(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.