Class SubstitutionTokenUtils

java.lang.Object
org.lsst.ccs.bootstrap.SubstitutionTokenUtils

public class SubstitutionTokenUtils extends Object
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 Details

    • SubstitutionTokenUtils

      public SubstitutionTokenUtils()
  • Method Details

    • addSubstitutionToken

      public static void addSubstitutionToken(String token, String value)
      Add a substitution token.
      Parameters:
      token - the name of the token
      value - the value of the token
    • resolveSubstitutionTokens

      public static String resolveSubstitutionTokens(String input)
      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 public static void resetSubstitutionTokens()
      Deprecated.