public class RegexUtils
extends java.lang.Object
GUIelement
s.
Whenever the user types in a query string, for instance to perform a
selection, there are multiple way the matching components can be used to
perform the selection. For instance, the GUIelement
s that were
already selected in advance, but did not match this last search query can get
unselected, or remain selected, or something else. The way the elements that
matched the last search query will be used can be expressed by the public
constants, stored in this class:
ADD_ON_MATCH ADD_ON_MISMATCH SUBTRACT_ON_MATCH SUBTRACT_ON_MISMATCH
SET_ON_MATCH SET_ON_MISMATCHModifier and Type | Field and Description |
---|---|
static int |
ADD_ON_MATCH |
static int |
ADD_ON_MISMATCH |
static int |
SET_ON_MATCH |
static int |
SET_ON_MISMATCH |
static int |
SUBTRACT_ON_MATCH |
static int |
SUBTRACT_ON_MISMATCH |
Constructor and Description |
---|
RegexUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAdditiveOperation(int setOperation) |
static boolean |
isMismatchOperation(int setOperation) |
static boolean |
isSettingOperation(int setOperation) |
static boolean |
isSubtractiveOperation(int setOperation) |
static java.lang.String |
makeRegexLiteral(java.lang.String regex) |
static java.lang.String |
makeStringFuzzy(java.lang.String regex)
Turn a provided string into a fuzzy string regexp, by placing ".*"
between each 2 letters.
|
public static final int ADD_ON_MATCH
public static final int ADD_ON_MISMATCH
public static final int SUBTRACT_ON_MATCH
public static final int SUBTRACT_ON_MISMATCH
public static final int SET_ON_MATCH
public static final int SET_ON_MISMATCH
public static java.lang.String makeRegexLiteral(java.lang.String regex)
public static boolean isMismatchOperation(int setOperation)
setOperation
- public static boolean isAdditiveOperation(int setOperation)
setOperation
- public static boolean isSubtractiveOperation(int setOperation)
setOperation
- public static boolean isSettingOperation(int setOperation)
setOperation
- public static java.lang.String makeStringFuzzy(java.lang.String regex)
regex
-