Enum Expression.Operator
- java.lang.Object
-
- java.lang.Enum<Expression.Operator>
-
- org.ametys.plugins.repository.query.expression.Expression.Operator
-
- All Implemented Interfaces:
Serializable,Comparable<Expression.Operator>
- Enclosing interface:
- Expression
public static enum Expression.Operator extends Enum<Expression.Operator>
Enumeration of available operators inExpression
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQConstant of test's operator for 'equals to' comparisonGEConstant of test's operator for 'greater than or equals to' comparisonGTConstant of test's operator for 'greater than' comparisonLEConstant of test's operator for 'less than or equals to' comparisonLTConstant of test's operator for 'less than' comparisonNEConstant of test's operator for 'not equals to' comparisonWDConstant of test's operator for 'like' comparison.
-
Constructor Summary
Constructors Modifier Constructor Description privateOperator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Expression.OperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static Expression.Operator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WD
public static final Expression.Operator WD
Constant of test's operator for 'like' comparison. Works only for type String
-
LT
public static final Expression.Operator LT
Constant of test's operator for 'less than' comparison
-
LE
public static final Expression.Operator LE
Constant of test's operator for 'less than or equals to' comparison
-
GT
public static final Expression.Operator GT
Constant of test's operator for 'greater than' comparison
-
GE
public static final Expression.Operator GE
Constant of test's operator for 'greater than or equals to' comparison
-
EQ
public static final Expression.Operator EQ
Constant of test's operator for 'equals to' comparison
-
NE
public static final Expression.Operator NE
Constant of test's operator for 'not equals to' comparison
-
-
Constructor Detail
-
Operator
private Operator()
-
-
Method Detail
-
values
public static Expression.Operator[] 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 (Expression.Operator c : Expression.Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Expression.Operator 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
-
-