public class JWildcard
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
matches(java.lang.String wildcard,
java.lang.String text)
Will automatically convert wildcard to regex using the default set of rules,
and strict flag set to true, and then run matcher on text
|
static java.lang.String |
wildcardToRegex(java.lang.String wildcard)
Converts wildcard to regex using default set of rules and strict flag set to true
|
static java.lang.String |
wildcardToRegex(java.lang.String wildcard,
boolean strict)
Converts wildcard to regex using default set of rules
|
static java.lang.String |
wildcardToRegex(java.lang.String wildcard,
JWildcardRules rules,
boolean strict)
Converts wildcard to regex using rules
|
public static java.lang.String wildcardToRegex(java.lang.String wildcard)
wildcard - a string representation of wildcardpublic static java.lang.String wildcardToRegex(java.lang.String wildcard,
boolean strict)
wildcard - a string representation of wildcardstrict - a flag which indicates whether to wrap the result regex with ^ and $public static java.lang.String wildcardToRegex(java.lang.String wildcard,
JWildcardRules rules,
boolean strict)
wildcard - a string representation of wildcardrules - a collection of desired wildcard rules to use in conversion processstrict - a flag which indicates whether to wrap the result regex with ^ and $java.lang.IllegalArgumentException - if one of the above is null (wildcard, rules)public static boolean matches(java.lang.String wildcard,
java.lang.String text)
wildcard - the wildcardtext - the string to be matched at provided wildcardjava.lang.IllegalArgumentException - if one of the above is null (wildcard, text)