public class Substitute extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
substitute(List<String> strings,
Map<String,String> dict) |
static String |
substitute(String string,
Map<String,String> dict) |
public static String substitute(String string, Map<String,String> dict) throws DocAsCodeException
string
- The String to evaluate (e.g. @key1@-text-@key2@)dict
- A dictionnary for subsitution words (e.g. dict(key1)=value1 and dict(key2)=value2)DocAsCodeException
public static Map<String,String> substitute(List<String> strings, Map<String,String> dict) throws DocAsCodeException
DocAsCodeException
Copyright © 2019. All rights reserved.