public enum MatchMode extends Enum<MatchMode>
Enum Constant and Description |
---|
ALL
Match all user search terms (i.e., perform a conjunctive search).
|
ALLANY
Match all user search terms if possible, otherwise match at least one.
|
ALLPARTIAL
Match all user search terms if possible, otherwise match some.
|
ANY
Match at least one user search term.
|
BOOLEAN
Match using a Boolean query.
|
PARTIAL
Match some user search terms.
|
PARTIALMAX
Match a maximal subset of user search terms.
|
UNKNOWN
The mode is unknown.
|
Modifier and Type | Method and Description |
---|---|
static MatchMode |
getValue(String mode)
Returns the
MatchMode whose name or toString() method matches
the input argument. |
String |
toString() |
static MatchMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MatchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatchMode ALL
public static final MatchMode PARTIAL
public static final MatchMode ANY
public static final MatchMode ALLPARTIAL
public static final MatchMode ALLANY
public static final MatchMode PARTIALMAX
public static final MatchMode BOOLEAN
public static final MatchMode UNKNOWN
public static MatchMode[] values()
for (MatchMode c : MatchMode.values()) System.out.println(c);
public static MatchMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static MatchMode getValue(String mode)
MatchMode
whose name or toString()
method matches
the input argument. If no such MatchMode
is found, throws an IllegalArgumentException
.
This method should be used instead of Enum.valueOf(Class, String)
because this enum modifies
the return value of toString()
.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.