com.ivata.mask.web.format
Class SearchReplaceFormat

java.lang.Object
  extended bycom.ivata.mask.web.format.SearchReplaceFormat
All Implemented Interfaces:
HTMLFormat

public class SearchReplaceFormat
extends java.lang.Object
implements HTMLFormat

Replace all occurrences of one string with another.

Since:
ivata masks 0.4 (2003-02-09)
Version:
$Revision: 1.3 $
Author:
Colin MacLeod colin.macleod@ivata.com

Constructor Summary
SearchReplaceFormat()
           
 
Method Summary
 java.lang.String format(java.lang.String hTMLText)
           Format the string given in hTMLText replacing all occurrences of the string set by setSearch with the string set by setReplace.
 java.lang.String getReplace()
           Represents the string which will replace the searched for string.
 java.lang.String getSearch()
           Represents the string which will be searched for.
 void setReplace(java.lang.String replaceParam)
           Represents the string which will replace the searched for string.
 void setSearch(java.lang.String searchParam)
           Represents the string which will be searched for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchReplaceFormat

public SearchReplaceFormat()
Method Detail

format

public final java.lang.String format(java.lang.String hTMLText)

Format the string given in hTMLText replacing all occurrences of the string set by setSearch with the string set by setReplace.

Specified by:
format in interface HTMLFormat
Parameters:
hTMLText - the text to search and replace.
Returns:
Refer to HTMLFormat.format(java.lang.String).

getSearch

public final java.lang.String getSearch()

Represents the string which will be searched for.

Returns:
the current value of search.

setSearch

public final void setSearch(java.lang.String searchParam)

Represents the string which will be searched for.

Parameters:
searchParam - the new value of search.

getReplace

public final java.lang.String getReplace()

Represents the string which will replace the searched for string.

Returns:
the current value of replace.

setReplace

public final void setReplace(java.lang.String replaceParam)

Represents the string which will replace the searched for string.

Parameters:
replaceParam - the new value of replace.


Copyright © 2001-2005 ivata limited. All Rights Reserved.