public final class NameMatcherFactory extends Object
Modifier and Type | Method and Description |
---|---|
static NameMatcher |
createNameMatcher(String text,
SearchType type)
Creates a
NameMatcher of given type for text. |
static NameMatcher |
createNameMatcher(String text,
SearchType type,
Map<String,Object> options)
Creates a
NameMatcher of given type for text. |
static String |
wildcardsToRegexp(String pattern,
boolean prefix)
Translates the wildcard pattern into regexp
|
@NonNull public static NameMatcher createNameMatcher(@NonNull String text, @NonNull SearchType type) throws IllegalArgumentException
NameMatcher
of given type for text.text
- to create NameMatcher
fortype
- of NameMatcher
NameMatcher
IllegalArgumentException
- when called with unsupported type or
regular expression for given text failed.@NonNull public static NameMatcher createNameMatcher(@NonNull String text, @NonNull SearchType type, @NonNull Map<String,Object> options) throws IllegalArgumentException
NameMatcher
of given type for text.text
- to create NameMatcher
fortype
- of NameMatcher
options
- the matcher configuration options, see Queries
optionsNameMatcher
IllegalArgumentException
- when called with unsupported type or
regular expression for given text failed.