Class MacroReplacer

java.lang.Object
jmt.framework.data.MacroReplacer

public class MacroReplacer extends Object

Name: MacroReplacer

Description: This class is used to replace macros basing on variable values

Date: 25/jun/2012 Time: 19:57:49

Version:
1.0
Author:
Bertoli Marco
  • Field Details

  • Constructor Details

    • MacroReplacer

      public MacroReplacer()
  • Method Details

    • replace

      public static String replace(String str)
      Replace system variables inside the given string. Variables are expressed as ${variable}
      Parameters:
      str - the string to replace
      Returns:
      replaced string
    • replace

      public static String replace(MacroReplacer.Type replacementType, String str)
      Replace variables inside the given string. Variables are expressed as ${variable}
      Parameters:
      replacementType - the type of replacement
      str - the string to replace
      Returns:
      replaced string