com.ibm.rational.common.test.editor.framework.search
Class SearchMatchReplacers
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet
com.ibm.rational.common.test.editor.framework.search.SearchMatchReplacers
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, Set
public final class SearchMatchReplacers
- extends HashSet
- See Also:
- Serialized Form
Method Summary |
boolean |
add(com.ibm.rational.common.test.editor.framework.kernel.search.ISearchMatchTextReplacer r)
|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
static SearchMatchReplacers |
getInstance()
|
static com.ibm.rational.common.test.editor.framework.kernel.search.ISearchMatchTextReplacer |
getReplacerFor(com.ibm.rational.common.test.editor.framework.kernel.search.FieldMatch fm)
|
static String |
replace(String text,
String replText,
com.ibm.rational.common.test.editor.framework.kernel.search.FieldMatch fmatch,
String original)
|
static int |
replaceInt(String text,
String replText,
com.ibm.rational.common.test.editor.framework.kernel.search.FieldMatch fmatch,
String original)
|
static boolean |
textMatchWithCase(String text,
com.ibm.rational.common.test.editor.framework.kernel.search.FieldMatch fmatch,
String original,
int start,
int len)
|
getInstance
public static SearchMatchReplacers getInstance()
add
public boolean add(com.ibm.rational.common.test.editor.framework.kernel.search.ISearchMatchTextReplacer r)
add
public boolean add(Object o)
- Specified by:
add
in interface Collection
- Specified by:
add
in interface Set
- Overrides:
add
in class HashSet
addAll
public boolean addAll(Collection c)
- Specified by:
addAll
in interface Collection
- Specified by:
addAll
in interface Set
- Overrides:
addAll
in class AbstractCollection
replace
public static String replace(String text,
String replText,
com.ibm.rational.common.test.editor.framework.kernel.search.FieldMatch fmatch,
String original)
throws IllegalStateException
- Parameters:
text
- replText
- fmatch
- original
-
- Throws:
IllegalStateException
textMatchWithCase
public static boolean textMatchWithCase(String text,
com.ibm.rational.common.test.editor.framework.kernel.search.FieldMatch fmatch,
String original,
int start,
int len)
getReplacerFor
public static com.ibm.rational.common.test.editor.framework.kernel.search.ISearchMatchTextReplacer getReplacerFor(com.ibm.rational.common.test.editor.framework.kernel.search.FieldMatch fm)
- Parameters:
fm
-
- Returns:
- ISearchMatchTextReplacer
replaceInt
public static int replaceInt(String text,
String replText,
com.ibm.rational.common.test.editor.framework.kernel.search.FieldMatch fmatch,
String original)
throws IllegalStateException
- Parameters:
text
- replText
- fmatch
-
- Returns:
- int
- Throws:
IllegalStateException
© Copyright IBM Corp. 2012. All rights reserved.