Interface VariableExpander
-
- All Known Implementing Classes:
MultiVariableExpander
public interface VariableExpander
An Interface describing a class capable of expanding strings which may contain variable references. The exact syntax of the "reference", and the mechanism for determining the corresponding value to be used is up to the concrete implementation.
- Since:
- 1.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
expand(java.lang.String param)
Return the input string with any variables replaced by their corresponding value.
-
-
-
Method Detail
-
expand
java.lang.String expand(java.lang.String param)
Return the input string with any variables replaced by their corresponding value. If there are no variables in the string, then the input parameter is returned unaltered.- Parameters:
param
- the string containing variables to be replaced.- Returns:
- the input string with any variables replaced by their corresponding value.
-
-