public enum MatchResult extends java.lang.Enum<MatchResult>
target selector match operation
which describes the type of match.| Enum Constant and Description |
|---|
EXACT_MATCH
All parts, including optional parts of the selector matched the candidate
and this result is the best.
|
MATCH
A confident match, but not an exact match.
|
NONE
No result, the selector does not match the candidate
|
WEAK
Matches only in the weakest sense, use this result only if all else fails
and nothing else matches at all
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAtLeast(MatchResult other)
Get whether this match level represents a level which is the
same or greater than the supplied level
|
boolean |
isExactMatch()
Get whether this is an exact match
|
boolean |
isMatch()
Get whether this match succeeded
|
static MatchResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MatchResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatchResult NONE
public static final MatchResult WEAK
public static final MatchResult MATCH
EXACT_MATCH match is not found.public static final MatchResult EXACT_MATCH
public static MatchResult[] values()
for (MatchResult c : MatchResult.values()) System.out.println(c);
public static MatchResult valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isAtLeast(MatchResult other)
other - level to compare topublic boolean isMatch()
public boolean isExactMatch()