public class SubstituteVariableResource extends Object implements TextResource
| Constructor and Description |
|---|
SubstituteVariableResource(String variableName,
String replacementValue,
TextResource baseResource)
Constructs a TextResource that substitutes variables with values in a wrapped TextResource
|
| Modifier and Type | Method and Description |
|---|---|
String |
resourceText()
Reads the text content of the wrapped TextResource, then substitutes variable instances with the correct value
|
public SubstituteVariableResource(String variableName, String replacementValue, TextResource baseResource)
variableName - the variable name, as seen within ${}, ie ${variableName}replacementValue - the value to replace ${variableName} withbaseResource - the wrapped TextResourcepublic String resourceText()
resourceText in interface TextResourceCopyright © 2016. All rights reserved.