org.aitools.programd.util
Class Substituter

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

public class Substituter
extends java.lang.Object

Provides substitution utilities for all classes.

Author:
Noel Bush

Field Summary
private static org.apache.log4j.Logger aimlLogger
           
 
Constructor Summary
Substituter()
           
 
Method Summary
static java.lang.String applySubstitutions(java.util.Map<java.util.regex.Pattern,java.lang.String> substitutionMap, java.lang.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
 

Field Detail

aimlLogger

private static final org.apache.log4j.Logger aimlLogger
Constructor Detail

Substituter

public Substituter()
Method Detail

applySubstitutions

public static java.lang.String applySubstitutions(java.util.Map<java.util.regex.Pattern,java.lang.String> substitutionMap,
                                                  java.lang.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