Class Replace

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.Replace

public class Replace
extends org.anchoranalysis.io.input.bean.path.DerivePath
Generates a file-path by replacing all occurrences of a string-pattern with another

Paths always use forward-slashes regardless of operating system.

  • Constructor Summary

    Constructors 
    Constructor Description
    Replace()  
  • Method Summary

    Modifier and Type Method Description
    Path deriveFrom​(Path source, boolean debugMode)  
    String getRegex()
    Regular expression to match against string
    String getReplacement()
    What to replace in the path
    void setRegex​(String regex)
    Regular expression to match against string
    void setReplacement​(String replacement)
    What to replace in the path

    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)
      Specified by:
      deriveFrom in class org.anchoranalysis.io.input.bean.path.DerivePath
    • getRegex

      public String getRegex()
      Regular expression to match against string
    • setRegex

      public void setRegex​(String regex)
      Regular expression to match against string
    • getReplacement

      public String getReplacement()
      What to replace in the path
    • setReplacement

      public void setReplacement​(String replacement)
      What to replace in the path