org.aitools.programd.util
Class Substituter

java.lang.Object
  extended by org.aitools.programd.util.Substituter

public class Substituter
extends Object

Provides substitution utilities for all classes.

Author:
Noel Bush

Constructor Summary
Substituter()
           
 
Method Summary
static String applySubstitutions(Map<Pattern,String> substitutionMap, String input)
          Performs replacements specified by the substitutionMap in the given input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Substituter

public Substituter()
Method Detail

applySubstitutions

public static String applySubstitutions(Map<Pattern,String> substitutionMap,
                                        String input)
Performs replacements specified by the substitutionMap in the given input.

Parameters:
substitutionMap - the map of substitutions to be performed
input - the string on which to perform the replacement
Returns:
the input with substitutions applied