public class StringTemplateUtils extends Object
Constructor and Description |
---|
StringTemplateUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
replace(String template,
Map<String,Object> paramvalues)
INTERNAL: Replaces all %name% references with the value of the
"name" key in the paramvalues Map.
|
static String |
replace(String template,
Map<String,Object> paramvalues,
char sep_char)
INTERNAL: Replaces all references surounded by a separator
character with the value of the "name" key in the paramvalues
Map.
|
static String |
replace(String template,
String param,
String value)
INTERNAL: Replaces all %name% references with the value of the
parameter param.
|
static String |
replace(String template,
String param,
String value,
char sep_char)
INTERNAL: Replaces all references surrounded by a separator
character with the value of the parameter param.
|
public static String replace(String template, Map<String,Object> paramvalues)
public static String replace(String template, Map<String,Object> paramvalues, char sep_char)
sep_char
- the separator charactor which delimits the
referencespublic static String replace(String template, String param, String value)
public static String replace(String template, String param, String value, char sep_char)