Package se.conciliate.extensions.store
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 Summary
Modifier and TypeMethodDescriptionsubstituteVariables
(String content) Replaces all occurrences of variables incontent
with their current values.substituteVariables
(String content, Map<String, String> override) Replaces all occurrences of variables incontent
with their current values.
-
Method Details
-
substituteVariables
Replaces all occurrences of variables incontent
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
-
substituteVariables
Replaces all occurrences of variables incontent
with their current values.- Parameters:
doc
- The source string to substitute variables in.- Returns:
- The content string with all variables substituted for their values.
-