public enum Condition extends Enum<Condition>
| Enum Constant and Description |
|---|
APPROXIMATELY_EQUAL
Plus or or minus 0.5 for floating point numbers
|
BEGINS_WITH
Search for an exact prefix.
|
CONTAINS
Search for occurrence inside text.
|
DATE_AFTER
Date is strictly later than.
|
DATE_AFTER_OR_ON
Date is later than or on.
|
DATE_BEFORE
Date is strictly prior to.
|
DATE_BEFORE_OR_ON
Date is prior to or on.
|
ENDS_WITH
Search for an exact suffix.
|
EQUAL
Search for an exact match.
|
GREATER_THAN
Greater than ">" (numerical)
|
GREATER_THAN_OR_EQUAL_TO
Greater than or equal ">=" (numerical)
|
IN_RANGE
Inside a range.
|
LESS_THAN
Less than "<" (numerical)
|
LESS_THAN_OR_EQUAL_TO
Less than or equal "<=" (numerical)
|
NOT_CONTAINS
Exclude if occurs inside text.
|
NOT_EQUAL
Anything but an exact match.
|
STRING_LENGTH_GREATER_THAN
Length of text is greater than.
|
STRING_LENGTH_LESS_THAN
Length of text is less than.
|
| Modifier and Type | Field and Description |
|---|---|
String |
name
Human readable name of condition.
|
| Modifier and Type | Method and Description |
|---|---|
static Condition |
fromName(String niceName)
Get the condition back from name.
|
int |
numberOfArgs()
Returns the number of values associated with this condition.
|
static Condition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Condition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Condition EQUAL
public static final Condition NOT_EQUAL
public static final Condition APPROXIMATELY_EQUAL
public static final Condition CONTAINS
public static final Condition NOT_CONTAINS
public static final Condition BEGINS_WITH
public static final Condition ENDS_WITH
public static final Condition GREATER_THAN
public static final Condition GREATER_THAN_OR_EQUAL_TO
public static final Condition LESS_THAN
public static final Condition LESS_THAN_OR_EQUAL_TO
public static final Condition IN_RANGE
public static final Condition STRING_LENGTH_GREATER_THAN
public static final Condition STRING_LENGTH_LESS_THAN
public static final Condition DATE_AFTER
public static final Condition DATE_BEFORE
public static final Condition DATE_AFTER_OR_ON
public static final Condition DATE_BEFORE_OR_ON
public final String name
public static Condition[] values()
for (Condition c : Condition.values()) System.out.println(c);
public static Condition 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 int numberOfArgs()