Class Replace

Object
AnchorBean<DerivePath>
DerivePath
Replace

public class Replace extends 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deriveFrom(Path source, boolean debugMode)
     
    Regular expression to match against string
    What to replace in the path
    void
    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

    • Replace

      public Replace()
  • Method Details

    • deriveFrom

      public Path deriveFrom(Path source, boolean debugMode)
      Specified by:
      deriveFrom in class 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