Package webwork.util

Class StringVariableSubstitutionKit

java.lang.Object
webwork.util.StringVariableSubstitutionKit

public class StringVariableSubstitutionKit extends Object
This class will replace named "variables" inside a string with values from a map.

The syntax is {variableName} and the \ character can be sue to quote any other character including itself. This means you need to input \\ to output a single \ and \{ to output a {

It does not interpolate results once replaced so if {a} = the string "{b}" it WONT re-interpolate it to be the value of b from the map.

  • Constructor Details

    • StringVariableSubstitutionKit

      public StringVariableSubstitutionKit()
  • Method Details