com.bankframe.admin.tools.migrate
Class ReplaceTextFilter

java.lang.Object
  extended bycom.bankframe.admin.tools.migrate.ReplaceTextFilter

public class ReplaceTextFilter
extends java.lang.Object

Class for replacing occurences of text with other text Creation date: (5/24/00 2:57:14 PM)


Constructor Summary
ReplaceTextFilter(java.util.Hashtable textToReplace)
          Constructor
 
Method Summary
 java.util.Hashtable getTextToReplace()
          This method gets the hashtable containing the Text to replace
 java.lang.String searchAndReplace(java.lang.String inputText)
          This method searchs the string for all text to be replaced
 void setTextToReplace(java.util.Hashtable newTextToReplace)
          This method sets the text to be replaced
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplaceTextFilter

public ReplaceTextFilter(java.util.Hashtable textToReplace)
Constructor

Parameters:
textToReplace - java.util.Hashtable containing the values to be replaced, and their replacement values
Method Detail

getTextToReplace

public java.util.Hashtable getTextToReplace()
This method gets the hashtable containing the Text to replace

Returns:
java.util.Hashtable

searchAndReplace

public java.lang.String searchAndReplace(java.lang.String inputText)
This method searchs the string for all text to be replaced

Parameters:
inputText - The string to be modified
Returns:
The modified string if and only if the input string was modified, null otherwise

setTextToReplace

public void setTextToReplace(java.util.Hashtable newTextToReplace)
This method sets the text to be replaced

Parameters:
newTextToReplace - Text to be replaced


Copyright © 2005, 2007, Oracle. All rights reserved.