Enum Class Filter.AttributeOperator
- All Implemented Interfaces:
Serializable,Comparable<Filter.AttributeOperator>,Constable
- Enclosing class:
- Filter
An attribute operator defines the comparison mechanism used in an attribute expression
between some named attribute and a given value.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed in anFilter.AttributeExpressionto indicate that a string attribute must contain a specific value.Used in anFilter.AttributeExpressionto indicate that an attribute must be equal to the specified value.Used in anFilter.AttributeExpressionto indicate that a string attribute must end with a specific value.Used in anFilter.AttributeExpressionto indicate that a numeric attribute must be greater than or equal to the specified value.Used in anFilter.AttributeExpressionto indicate that a numeric attribute must be greater than the specified value.Used in anFilter.AttributeExpressionto indicate that a numeric attribute must be less than or equal to the specified value.Used in anFilter.AttributeExpressionto indicate that a numeric attribute must be less than the specified value.Used in anFilter.AttributeExpressionto indicate that an attribute must not be equal to a specific value.Used in anFilter.AttributeExpressionto indicate that an attribute must be present; i.e.Used in anFilter.AttributeExpressionto indicate that a string attribute must start with a specific value. -
Method Summary
Modifier and TypeMethodDescriptionReturns theFilter.AttributeOperatorrepresented by the given, case-insensitive, name.static Filter.AttributeOperatorReturns the enum constant of this class with the specified name.static Filter.AttributeOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQ
Used in anFilter.AttributeExpressionto indicate that an attribute must be equal to the specified value. -
NE
Used in anFilter.AttributeExpressionto indicate that an attribute must not be equal to a specific value. -
CO
Used in anFilter.AttributeExpressionto indicate that a string attribute must contain a specific value. -
SW
Used in anFilter.AttributeExpressionto indicate that a string attribute must start with a specific value. -
EW
Used in anFilter.AttributeExpressionto indicate that a string attribute must end with a specific value. -
PR
Used in anFilter.AttributeExpressionto indicate that an attribute must be present; i.e. it has a value. -
GT
Used in anFilter.AttributeExpressionto indicate that a numeric attribute must be greater than the specified value. -
GE
Used in anFilter.AttributeExpressionto indicate that a numeric attribute must be greater than or equal to the specified value. -
LT
Used in anFilter.AttributeExpressionto indicate that a numeric attribute must be less than the specified value. -
LE
Used in anFilter.AttributeExpressionto indicate that a numeric attribute must be less than or equal to the specified value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getByName
Returns theFilter.AttributeOperatorrepresented by the given, case-insensitive, name.- Parameters:
attributeOperator- the name of the operator- Returns:
- the operator; or
null, if no operator has the given name
-