Class InsertRegExGroups

Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.io.input.bean.path.DerivePath>
org.anchoranalysis.io.input.bean.path.DerivePath
org.anchoranalysis.plugin.io.bean.path.derive.InsertRegExGroups

public class InsertRegExGroups
extends org.anchoranalysis.io.input.bean.path.DerivePath
Generates an out string where $digit$ is replaced with the #digit group from a regex
Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    InsertRegExGroups()  
    InsertRegExGroups​(org.anchoranalysis.bean.shared.regex.RegEx regEx, String outPath)  
  • Method Summary

    Modifier and Type Method Description
    Path deriveFrom​(Path source, boolean debugMode)  
    String getOutPath()
    Constructs a path as an output, replacing $1, $2 etc.
    org.anchoranalysis.bean.shared.regex.RegEx getRegEx()
    The regular-expression to use for matching groups.
    void setOutPath​(String outPath)
    Constructs a path as an output, replacing $1, $2 etc.
    void setRegEx​(org.anchoranalysis.bean.shared.regex.RegEx regEx)
    The regular-expression to use for matching groups.
    void setRegExString​(String regEx)
    The regular-expression to use for matching groups, overloaded to handle legacy situations where a string is supplied.

    Methods inherited from class org.anchoranalysis.io.input.bean.path.DerivePath

    deriveFrom

    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

    • deriveFrom

      public Path deriveFrom​(Path source, boolean debugMode) throws org.anchoranalysis.io.input.path.DerivePathException
      Specified by:
      deriveFrom in class org.anchoranalysis.io.input.bean.path.DerivePath
      Throws:
      org.anchoranalysis.io.input.path.DerivePathException
    • setRegExString

      public void setRegExString​(String regEx)
      The regular-expression to use for matching groups, overloaded to handle legacy situations where a string is supplied.
    • setRegEx

      public void setRegEx​(org.anchoranalysis.bean.shared.regex.RegEx regEx)
      The regular-expression to use for matching groups.
    • getRegEx

      public org.anchoranalysis.bean.shared.regex.RegEx getRegEx()
      The regular-expression to use for matching groups.
    • getOutPath

      public String getOutPath()
      Constructs a path as an output, replacing $1, $2 etc. with the respective group from the matched regular-expression.
    • setOutPath

      public void setOutPath​(String outPath)
      Constructs a path as an output, replacing $1, $2 etc. with the respective group from the matched regular-expression.