public class

StringVariableSubstitutionKit

extends Object
java.lang.Object
   ↳ webwork.util.StringVariableSubstitutionKit

Class Overview

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.

Summary

Public Constructors
StringVariableSubstitutionKit()
Public Methods
static String substitue(String input, Map<StringObject> substitutions)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public StringVariableSubstitutionKit ()

Public Methods

public static String substitue (String input, Map<StringObject> substitutions)