Package org.lsst.ccs.bootstrap
Class SubstitutionTokenUtils
java.lang.Object
org.lsst.ccs.bootstrap.SubstitutionTokenUtils
A utility class to manage substitution tokens.
A substitution token is defined as a string between "<" and ">".
So "" will be replaced by "value".
- Author:
- The LSST CCS team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddSubstitutionToken(String token, String value) Add a substitution token.static voidDeprecated.static StringresolveSubstitutionTokens(String input) Resolve substitution tokens in the provided input String.
-
Constructor Details
-
SubstitutionTokenUtils
public SubstitutionTokenUtils()
-
-
Method Details
-
addSubstitutionToken
Add a substitution token.- Parameters:
token- the name of the tokenvalue- the value of the token
-
resolveSubstitutionTokens
Resolve substitution tokens in the provided input String. Only tokens currently defined will be resolved. No exception will be raised if there are unspecified tokens.- Parameters:
input- The String to be parsed.- Returns:
- The String in which the input tokens have been replaced by their value.
-
resetSubstitutionTokens
Deprecated.
-