public static enum Query.Operator extends Enum<Query.Operator>
Query
Enum Constant and Description |
---|
EQ
Constant of test's operator for 'equals to' comparison
|
EXISTS
Operator testing the existence of a property.
|
GE
Constant of test's operator for 'greater than or equals to' comparison
|
GT
Constant of test's operator for 'greater than' comparison
|
LE
Constant of test's operator for 'less than or equals to' comparison
|
LIKE
Constant of test's operator for 'like' comparison.
|
LT
Constant of test's operator for 'less than' comparison
|
NE
Constant of test's operator for 'not equals to' comparison
|
SEARCH
Constant of test's operator for textual search, on unstemmed terms.
|
SEARCH_STEMMED
Constant of test's operator for textual search, on stemmed terms.
|
Modifier and Type | Field and Description |
---|---|
private String |
_name |
private static Map<String,Query.Operator> |
_OP_NAMES |
Modifier and Type | Method and Description |
---|---|
static Query.Operator |
fromName(String name)
Get an Operator object from its name.
|
String |
getName()
Get the operator name.
|
static Query.Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Query.Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Query.Operator EXISTS
public static final Query.Operator SEARCH
public static final Query.Operator SEARCH_STEMMED
public static final Query.Operator LIKE
public static final Query.Operator LT
public static final Query.Operator LE
public static final Query.Operator GT
public static final Query.Operator GE
public static final Query.Operator EQ
public static final Query.Operator NE
private static Map<String,Query.Operator> _OP_NAMES
public static Query.Operator[] values()
for (Query.Operator c : Query.Operator.values()) System.out.println(c);
public static Query.Operator 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 Query.Operator fromName(String name)
name
- the operator name.