Class PatternSpan

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.patternspan.PatternSpan

public class PatternSpan
extends org.anchoranalysis.io.input.bean.namer.FileNamer
Finds a pattern in the file-path, and uses a portion of the file-path in that pattern to form the name.

The portion used spans from the first variable to the last-variable in the pattern, including any non-variable portions of the file-path.

In the special case that a single file is passed, its filename is extracted without any extension.

Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    PatternSpan()  
  • 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)  
    boolean isCaseSensitive()
    Iff true, a case sensitive search is used to match patterns.
    void setCaseSensitive​(boolean caseSensitive)
    Iff true, a case sensitive search is used to match patterns.

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

      public boolean isCaseSensitive()
      Iff true, a case sensitive search is used to match patterns.
    • setCaseSensitive

      public void setCaseSensitive​(boolean caseSensitive)
      Iff true, a case sensitive search is used to match patterns.