@UtilityMarker public final class TemplatingUtility extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
expandTemplate(String template)
Expands a template using system properties.
|
static String |
expandTemplate(String template,
Map<String,String> variablesMap)
Expands a template using variable values in the provided map.
|
static Set<String> |
extractTemplateVariables(String template)
Extracts variables from the template.
|
static void |
substituteVariables(Map<String,String> variablesMap)
Does one pass over the values in the map, and expands each as a template, using the rest of the
values in the same map.
|
public static String expandTemplate(String template)
template - Template to expand.public static String expandTemplate(String template, Map<String,String> variablesMap)
template - Template to expand.variablesMap - Variables and values.public static Set<String> extractTemplateVariables(String template)
template - Template to extract variables from.public static void substituteVariables(Map<String,String> variablesMap)
variablesMap - Map to expand.Copyright © 2000-2022 Sualeh Fatehi. All rights reserved.