Enum RsqlSearchOperation
- java.lang.Object
-
- java.lang.Enum<RsqlSearchOperation>
-
- com.broadleafcommerce.data.tracking.core.filtering.fetch.rsql.RsqlSearchOperation
-
- All Implemented Interfaces:
Serializable
,Comparable<RsqlSearchOperation>
public enum RsqlSearchOperation extends Enum<RsqlSearchOperation>
Enumeration of supported operation components for RSQL filters- Author:
- Jeff Fischer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BETWEEN
EQUAL
EQUAL_IGNORE_CASE
GREATER_THAN
GREATER_THAN_OR_EQUAL
IN
IS_NULL
LESS_THAN
LESS_THAN_OR_EQUAL
NOT_EQUAL
NOT_EQUAL_IGNORE_CASE
NOT_IN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description cz.jirutka.rsql.parser.ast.ComparisonOperator
getOperator()
static RsqlSearchOperation
getSimpleOperator(cz.jirutka.rsql.parser.ast.ComparisonOperator operator)
static RsqlSearchOperation
valueOf(String name)
Returns the enum constant of this type with the specified name.static RsqlSearchOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUAL
public static final RsqlSearchOperation EQUAL
-
NOT_EQUAL
public static final RsqlSearchOperation NOT_EQUAL
-
GREATER_THAN
public static final RsqlSearchOperation GREATER_THAN
-
GREATER_THAN_OR_EQUAL
public static final RsqlSearchOperation GREATER_THAN_OR_EQUAL
-
LESS_THAN
public static final RsqlSearchOperation LESS_THAN
-
LESS_THAN_OR_EQUAL
public static final RsqlSearchOperation LESS_THAN_OR_EQUAL
-
IN
public static final RsqlSearchOperation IN
-
NOT_IN
public static final RsqlSearchOperation NOT_IN
-
BETWEEN
public static final RsqlSearchOperation BETWEEN
-
IS_NULL
public static final RsqlSearchOperation IS_NULL
-
EQUAL_IGNORE_CASE
public static final RsqlSearchOperation EQUAL_IGNORE_CASE
-
NOT_EQUAL_IGNORE_CASE
public static final RsqlSearchOperation NOT_EQUAL_IGNORE_CASE
-
-
Method Detail
-
values
public static RsqlSearchOperation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RsqlSearchOperation c : RsqlSearchOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RsqlSearchOperation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getSimpleOperator
public static RsqlSearchOperation getSimpleOperator(cz.jirutka.rsql.parser.ast.ComparisonOperator operator)
-
getOperator
public cz.jirutka.rsql.parser.ast.ComparisonOperator getOperator()
-
-