Interface StringSubstitutor

All Known Implementing Classes:
JavaStringSubstitutor

public interface StringSubstitutor
Substitutes variables within a string by values.
  • Method Summary

    Modifier and Type
    Method
    Description
    substitute(String source, Map<String,Object> valuesMap)
    Substitutes all the occurrences of variables in the given source object with their matching values from the map.
  • Method Details

    • substitute

      String substitute(String source, Map<String,Object> valuesMap)
      Substitutes all the occurrences of variables in the given source object with their matching values from the map.
      Parameters:
      source - the source text containing the variables to substitute
      valuesMap - the map with the values
      Returns:
      the result of the replace operation