Class SimpleConstantsResolver

  • All Implemented Interfaces:
    ConstantsResolver

    public class SimpleConstantsResolver
    extends Object
    implements ConstantsResolver
    The SimpleConstantResolver provides methods to define Constants([[CONSTANT_NAME]]) with values. The class also has a method to replace those constants from a String with the defined values.
    • Constructor Detail

      • SimpleConstantsResolver

        public SimpleConstantsResolver()
        Initializes the SimpleConstantResolver.
    • Method Detail

      • put

        public void put​(String con,
                        String val)
        Adds the given constant with the given value to the list of constants to replace.
        Parameters:
        con - The name of the constant.
        val - The value of the constant.
      • remove

        public void remove​(String con)
        Removes the given constant name from the list of constant names.
        Parameters:
        con - The name of the constant to remove.