|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ConditionalOperator>
net.sf.doolin.gui.display.ConditionalOperator
public enum ConditionalOperator
Operator that evaluates to boolean results.
| Enum Constant Summary | |
|---|---|
BLANK
Evaluates to true if value as a string is
blank. |
|
BOOLEAN_FALSE
Evaluates to true if value can be evaluated to
a boolean that is false. |
|
BOOLEAN_TRUE
Evaluates to true if value can be evaluated to
a boolean that is true. |
|
EQ
Evaluates to true if value is equal to the
operand. |
|
EQ_STR
Evaluates to true if value is equal to the
operand when comparing their String representation. |
|
GT
Evaluates to true if value is greater than the
operand. |
|
GTE
Evaluates to true if value is greater or equal
than the operand. |
|
LT
Evaluates to true if value is less than the
operand. |
|
LTE
Evaluates to true if value is less or equal
than the operand. |
|
NEQ
Evaluates to true if value is not equal to the
operand. |
|
NOT_BLANK
Evaluates to true if value as a string is not
blank. |
|
NOT_NULL
Evaluates to true if value is not
null. |
|
NULL
Evaluates to true if value is *
null. |
|
| Method Summary | |
|---|---|
abstract boolean |
evaluate(Object value,
Object operand)
Evaluates the operator with the value and the operand. |
static ConditionalOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ConditionalOperator[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ConditionalOperator NOT_NULL
true if value is not
null. The operand is not used.
public static final ConditionalOperator NULL
true if value is *
null. The operand is not used.
public static final ConditionalOperator NOT_BLANK
true if value as a string is not
blank. The operand is not used.
public static final ConditionalOperator BLANK
true if value as a string is
blank. The operand is not used.
public static final ConditionalOperator EQ
true if value is equal to the
operand.
public static final ConditionalOperator EQ_STR
true if value is equal to the
operand when comparing their String representation.
public static final ConditionalOperator NEQ
true if value is not equal to the
operand.
public static final ConditionalOperator GTE
true if value is greater or equal
than the operand.
public static final ConditionalOperator GT
true if value is greater than the
operand.
public static final ConditionalOperator LTE
true if value is less or equal
than the operand.
public static final ConditionalOperator LT
true if value is less than the
operand.
public static final ConditionalOperator BOOLEAN_TRUE
true if value can be evaluated to
a boolean that is true.
public static final ConditionalOperator BOOLEAN_FALSE
true if value can be evaluated to
a boolean that is false.
| Method Detail |
|---|
public static ConditionalOperator[] values()
for (ConditionalOperator c : ConditionalOperator.values()) System.out.println(c);
public static ConditionalOperator valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public abstract boolean evaluate(Object value,
Object operand)
value - Valueoperand - Operand (may not be used by some operators)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||