org.uispec4j.finder
Class StringMatcher

java.lang.Object
  extended by org.uispec4j.finder.StringMatcher

public abstract class StringMatcher
extends java.lang.Object

String matching policy used withing the component searching mechanism. Three ready-to-use strategies are provided (identity/substring/regexp), but you can provide your own by implementing this class.


Constructor Summary
StringMatcher()
           
 
Method Summary
static StringMatcher identity(java.lang.String reference)
           
abstract  boolean matches(java.lang.String toCompare)
           
static StringMatcher regexp(java.lang.String reference)
           
static StringMatcher substring(java.lang.String reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringMatcher

public StringMatcher()
Method Detail

matches

public abstract boolean matches(java.lang.String toCompare)

identity

public static StringMatcher identity(java.lang.String reference)

substring

public static StringMatcher substring(java.lang.String reference)

regexp

public static StringMatcher regexp(java.lang.String reference)


Copyright © 2004-2010. All Rights Reserved.