public class SubstituteCtrl
extends java.lang.Object
Constructor and Description |
---|
SubstituteCtrl() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
substitute(java.lang.String string,
java.io.File file) |
static java.lang.String |
substitute(java.lang.String string,
java.util.HashMap<java.lang.String,java.lang.String> dict) |
public static java.lang.String substitute(java.lang.String string, java.util.HashMap<java.lang.String,java.lang.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 java.lang.String substitute(java.lang.String string, java.io.File file) throws DocAsCodeException
DocAsCodeException