Class PathRegEx

Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixer>
org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixer
org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve
org.anchoranalysis.plugin.io.bean.file.path.prefixer.PathRegEx

public class PathRegEx
extends org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve
Matches a regex against incoming file-paths to form a prefix for output

Groups (i.e. parentheses) in the regular expression each form a directory in the output

Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    PathRegEx()  
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.bean.shared.regex.RegEx getRegEx()
    Regular expression to use to match path with at least one group in it.
    org.anchoranalysis.io.output.path.prefixer.DirectoryWithPrefix outFilePrefixFromPath​(org.anchoranalysis.io.output.path.prefixer.NamedPath path, Path root, org.anchoranalysis.io.output.path.prefixer.PathPrefixerContext context)  
    void setRegEx​(org.anchoranalysis.bean.shared.regex.RegEx regEx)
    Regular expression to use to match path with at least one group in it.

    Methods inherited from class org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve

    getPrefix, outFilePrefix, outFilePrefixAvoidResolve, rootDirectoryPrefix, rootDirectoryPrefixAvoidResolve, setPrefix

    Methods inherited from class org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixer

    resolvePath, resolvePath

    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

    • outFilePrefixFromPath

      public org.anchoranalysis.io.output.path.prefixer.DirectoryWithPrefix outFilePrefixFromPath​(org.anchoranalysis.io.output.path.prefixer.NamedPath path, Path root, org.anchoranalysis.io.output.path.prefixer.PathPrefixerContext context) throws org.anchoranalysis.io.output.path.prefixer.PathPrefixerException
      Specified by:
      outFilePrefixFromPath in class org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve
      Throws:
      org.anchoranalysis.io.output.path.prefixer.PathPrefixerException
    • getRegEx

      public org.anchoranalysis.bean.shared.regex.RegEx getRegEx()
      Regular expression to use to match path with at least one group in it.
    • setRegEx

      public void setRegEx​(org.anchoranalysis.bean.shared.regex.RegEx regEx)
      Regular expression to use to match path with at least one group in it.