Interface MTVariableSubstitution


public interface MTVariableSubstitution
Helper class for substituting variable values in strings where variables can be used. The helper class caches all variable values once loaded. In order to get updated values if they are changed obtain a new MTVariableHelper.
  • Method Details

    • substituteVariables

      String substituteVariables(String content)
      Replaces all occurrences of variables in content with their current values.
      Parameters:
      content - The source string to substitute variables in.
      Returns:
      The content string with all variables substituted for their values.
    • substituteVariables

      String substituteVariables(String content, Map<String,String> override)
    • substituteVariables

      String substituteVariables(MTDocumentHeader doc)
      Replaces all occurrences of variables in content with their current values.
      Parameters:
      doc - The source string to substitute variables in.
      Returns:
      The content string with all variables substituted for their values.