public interface ReplaceTokenProvider
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
createReplacements(String action,
Lookup context)
The implementation shall provide values for the tokens evaluating them
in the given context.
|
Set<String> |
getSupportedTokens()
The list of the tokens this class implements.
|
static String |
replaceTokens(String line,
Map<String,String> replaceMap)
Replaces tokens in the given String.
|
Set<String> getSupportedTokens()
Map<String,String> createReplacements(String action, Lookup context)
action
- the id (name) of the actioncontext
- the context where the action is being called.static String replaceTokens(String line, Map<String,String> replaceMap)
${<token_key>[,<default value>]}
If there would be no value or default value provided the token marker will be left untouched.
line
- the input line with token markersreplaceMap
- key-value map for the replacement