public class Comparator
extends java.lang.Object
Constructor and Description |
---|
Comparator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isExactMatch(java.lang.String text,
java.lang.String bench)
Attempt an 'exact' pattern match on a given text string.
The pattern is assumed to be an exact text match. |
static boolean |
isGlobMatch(java.lang.String text,
java.lang.String glob)
Attempt a 'glob' pattern match on a given text string.
|
static boolean |
isRegexpiMatch(java.lang.String text,
java.lang.String regexp)
Attempt a 'regexp' pattern match on a given text string, ignoring case.
|
static boolean |
isRegexpMatch(java.lang.String text,
java.lang.String regexp)
Attempt a 'regexp' pattern match on a given text string.
The pattern is assumed to be a regular expression. |
public static boolean isGlobMatch(java.lang.String text, java.lang.String glob)
The 'glob:' pattern prefix (Selenium 1.0) is assumed to already be removed.
text
- String to compare against the 'glob' pattern.glob
- String pattern to use for comparison.public static boolean isExactMatch(java.lang.String text, java.lang.String bench)
The 'exact:' pattern prefix (Selenium 1.0) is assumed to already be removed.
text
- String to compare against the bench pattern.bench
- String to match exactly.public static boolean isRegexpMatch(java.lang.String text, java.lang.String regexp)
The 'regexp:' pattern prefix (Selenium 1.0) is assumed to already be removed.
text
- String to compare against the 'regexp' pattern.regexp
- String pattern.public static boolean isRegexpiMatch(java.lang.String text, java.lang.String regexp)
The 'regexpi:' pattern prefix (Selenium 1.0) is assumed to already be removed.
text
- String to compare against the 'regexp' pattern.regexp
- String pattern.Copyright © SAS Institute. All Rights Reserved.