Class TemplateUtil
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.configuration.TemplateUtil
-
public class TemplateUtil extends Object
Created by Jeff Gaynor
on 3/1/18 at 10:14 AM
-
-
Field Summary
Fields Modifier and Type Field Description static String
LEFT_DELIMITER
static String
REGEX_LEFT_DELIMITER
static String
REGEX_RIGHT_DELIMITER
static String
RIGHT_DELIMITER
-
Constructor Summary
Constructors Constructor Description TemplateUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
static String
newReplaceAll(String template, Map replacements)
UnlikeoldReplaceAll(String, Map)
this can handle nesting of the templates.static String
oldReplaceAll(String template, Map replacements)
static String
replaceAll(String template, Map replacements)
Simple-minded template replacement.static String
rr(String template, Map replacements)
-
-
-
Method Detail
-
replaceAll
public static String replaceAll(String template, Map replacements)
Simple-minded template replacement. This works well for small, simple arguments.- Parameters:
template
-replacements
-- Returns:
-
newReplaceAll
public static String newReplaceAll(String template, Map replacements)
UnlikeoldReplaceAll(String, Map)
this can handle nesting of the templates.- Parameters:
template
-replacements
-- Returns:
-
main
public static void main(String[] args)
-
-