public class Variables extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
PATTERN |
protected Map<String,Object> |
properties |
static String |
REGEX |
| Constructor and Description |
|---|
Variables() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String key,
Object value) |
protected Set<String> |
findVariables(String value)
Search the variables used in the String provided as argument
|
Map<String,Object> |
getProperties() |
Set<String> |
parse() |
protected Set<String> |
parseAndReplace() |
Set<String> |
parseWith(Variables variables) |
String |
replaceAllVariables(String value) |
protected Set<String> |
replaceAllVariables(String key,
String value) |
void |
setProperties(Map<String,Object> properties) |
protected Set<String> findVariables(String value)
string - the string to analyze to find variablespublic String replaceAllVariables(String value) throws Exception
Exceptionprotected Set<String> replaceAllVariables(String key, String value) throws Exception
ExceptionCopyright © 2023. All Rights Reserved.