IBM Rational Performance Tester SDK

com.ibm.rational.common.test.editor.framework.search
Class SearchMatchReplacers

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet
              extended by 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)
           
 
Methods inherited from class java.util.HashSet
clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Method Detail

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

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.