public class ReplacementsMap extends Object implements Replacements
A Replacements implementation which is based on a Map.
| Constructor and Description |
|---|
ReplacementsMap()
Creates replacements.
|
ReplacementsMap(Map<String,String> variables)
Creates replacements.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getValue(String name)
Returns the value for the variable with the specified name.
|
public ReplacementsMap()
Creates replacements.
public ReplacementsMap(Map<String,String> variables)
Creates replacements.
variables - The variables and their values.IllegalArgumentException - If the map containing the variables and their values is
null.public String getValue(String name) throws ReplacementException
ReplacementsReturns the value for the variable with the specified name.
getValue in interface Replacementsname - The name.null, if the variable is unknown.ReplacementException - If an error occurs while determine the value.Copyright © 2015–2019. All rights reserved.