public abstract class Variables extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
nullValue |
static Pattern |
SPECIAL_REGEX_CHARS
pattern matching a variable name:
\%([a-zA-Z0-9_]+)\% |
static Pattern |
VARIABLES_PATTERN |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
get(String label)
gets a value.
|
abstract void |
put(String label,
String val)
puts a value.
|
String |
replaceNull(String s) |
String |
substitute(String text)
replaces a text with variable values.
|
public static Pattern SPECIAL_REGEX_CHARS
\%([a-zA-Z0-9_]+)\%public static final Pattern VARIABLES_PATTERN
protected String nullValue
public abstract void put(String label, String val)
label - the symbolval - the valuepublic abstract String get(String label)
label - the symbolpublic final String substitute(String text)
text - the text to processCopyright © 2017 smartrics. All rights reserved.