Class FilePathPattern

Object
AnchorBean<Summarizer<Path>>
Summarizer<Path>
SummarizerPath
FilePathPattern

public class FilePathPattern extends SummarizerPath
Converts a list of file-paths into a form that tries to find a pattern in the naming style using the path-pattern-finder library.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Create with one or more paths.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(Path element)
    Adds a element to the summary.
    A string summarizing this item.
    boolean
    if true, case is ignored in the pattern matching.
    boolean
    Iff true, any hidden-path is not considered, and simply ignored
    boolean
    if true, the extension is removed from paths before finding the pattern.
    void
    setIgnoreCase(boolean ignoreCase)
    if true, case is ignored in the pattern matching.
    void
    setIgnoreHidden(boolean ignoreHidden)
    Iff true, any hidden-path is not considered, and simply ignored
    void
    setRemoveExtension(boolean removeExtension)
    if true, the extension is removed from paths before finding the pattern.

    Methods inherited from class org.anchoranalysis.plugin.io.bean.summarizer.path.SummarizerPath

    requiresImageMetadata

    Methods inherited from class org.anchoranalysis.plugin.io.bean.summarizer.Summarizer

    addAll

    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

    • FilePathPattern

      public FilePathPattern(String... paths) throws OperationFailedException
      Create with one or more paths.
      Parameters:
      paths - the paths
      Throws:
      OperationFailedException
    • FilePathPattern

      public FilePathPattern()
  • Method Details

    • add

      public void add(Path element) throws OperationFailedException
      Description copied from class: Summarizer
      Adds a element to the summary.
      Specified by:
      add in class Summarizer<Path>
      Parameters:
      element - the element to add.
      Throws:
      OperationFailedException
    • describe

      public String describe() throws OperationFailedException
      Description copied from class: Summarizer
      A string summarizing this item.
      Specified by:
      describe in class Summarizer<Path>
      Returns:
      the description.
      Throws:
      OperationFailedException
    • isIgnoreHidden

      public boolean isIgnoreHidden()
      Iff true, any hidden-path is not considered, and simply ignored
    • setIgnoreHidden

      public void setIgnoreHidden(boolean ignoreHidden)
      Iff true, any hidden-path is not considered, and simply ignored
    • isIgnoreCase

      public boolean isIgnoreCase()
      if true, case is ignored in the pattern matching. Otherwise the system-default is used i.e. Windows ingores case, Linux doesn't
    • setIgnoreCase

      public void setIgnoreCase(boolean ignoreCase)
      if true, case is ignored in the pattern matching. Otherwise the system-default is used i.e. Windows ingores case, Linux doesn't
    • isRemoveExtension

      public boolean isRemoveExtension()
      if true, the extension is removed from paths before finding the pattern.
    • setRemoveExtension

      public void setRemoveExtension(boolean removeExtension)
      if true, the extension is removed from paths before finding the pattern.