Modifier | Constructor and Description |
---|---|
protected |
Template()
Prohibit external construction for now.
|
Modifier and Type | Method and Description |
---|---|
static String |
untemplate(String[] strArray,
Map<String,String> env,
boolean bFailOnMissing,
String separator)
Takes an array of strings and returns a concatenated string with all ${...} occurrences replaced according to the
env map.
|
static String |
untemplate(String str,
Map<String,String> env,
boolean bFailOnMissing)
Takes a string and replaces all ${...} occurrences with env map strings.
|
protected Template()
public static String untemplate(String[] strArray, Map<String,String> env, boolean bFailOnMissing, String separator)
strArray
- array of strings to be processed with env stringsenv
- map of replacement stringsbFailOnMissing
- throw an exception on missing replacement string or notseparator
- separator to insert between lines or nullpublic static String untemplate(String str, Map<String,String> env, boolean bFailOnMissing)
str
- string to be processedenv
- map of replacement stringsbFailOnMissing
- throw an exception on missing replacement string or notCopyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.