|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<MatchMode> com.endeca.infront.navigation.model.MatchMode
public enum MatchMode
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<MatchMode>
public 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()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |