Package io.jmix.ui.substitutor
Class JavaStringSubstitutor
java.lang.Object
io.jmix.ui.substitutor.JavaStringSubstitutor
- All Implemented Interfaces:
StringSubstitutor
@Component("ui_StringSubstitutor")
public class JavaStringSubstitutor
extends Object
implements StringSubstitutor
Substitutes variables of a within a string by values. The default definition of a variable is
${variableName}.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JavaStringSubstitutor
public JavaStringSubstitutor()
-
-
Method Details
-
substitute
Description copied from interface:StringSubstitutorSubstitutes all the occurrences of variables in the given source object with their matching values from the map.- Specified by:
substitutein interfaceStringSubstitutor- Parameters:
source- the source text containing the variables to substitutevaluesMap- the map with the values- Returns:
- the result of the replace operation
-