org.drools.workbench.models.datamodel.oracle
Class OperatorsOracle
java.lang.Object
org.drools.workbench.models.datamodel.oracle.OperatorsOracle
public class OperatorsOracle
- extends Object
An Oracle for all things "operator" related
|
Method Summary |
static boolean |
isValueRequired(String operator)
Operator "== null" and "! |
static boolean |
operatorRequiresList(String operator)
Check whether an operator requires a list of values (i.e. the operator is
either "in" or "not in"). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STANDARD_OPERATORS
public static final String[] STANDARD_OPERATORS
STANDARD_CONNECTIVES
public static final String[] STANDARD_CONNECTIVES
COMPARABLE_OPERATORS
public static final String[] COMPARABLE_OPERATORS
COMPARABLE_CONNECTIVES
public static final String[] COMPARABLE_CONNECTIVES
STRING_OPERATORS
public static final String[] STRING_OPERATORS
STRING_CONNECTIVES
public static final String[] STRING_CONNECTIVES
COLLECTION_OPERATORS
public static final String[] COLLECTION_OPERATORS
COLLECTION_CONNECTIVES
public static final String[] COLLECTION_CONNECTIVES
EXPLICIT_LIST_OPERATORS
public static final String[] EXPLICIT_LIST_OPERATORS
CONDITIONAL_ELEMENTS
public static final String[] CONDITIONAL_ELEMENTS
SIMPLE_CEP_OPERATORS
public static final String[] SIMPLE_CEP_OPERATORS
COMPLEX_CEP_OPERATORS
public static final String[] COMPLEX_CEP_OPERATORS
WINDOW_CEP_OPERATORS
public static final String[] WINDOW_CEP_OPERATORS
SIMPLE_CEP_CONNECTIVES
public static final String[] SIMPLE_CEP_CONNECTIVES
COMPLEX_CEP_CONNECTIVES
public static final String[] COMPLEX_CEP_CONNECTIVES
OperatorsOracle
public OperatorsOracle()
operatorRequiresList
public static boolean operatorRequiresList(String operator)
- Check whether an operator requires a list of values (i.e. the operator is
either "in" or "not in"). Operators requiring a list of values can only
be compared to literal values.
- Parameters:
operator -
- Returns:
- True if the operator requires a list values
isValueRequired
public static boolean isValueRequired(String operator)
- Operator "== null" and "!= null" do not need a Value. This method wraps the logic into a single method.
- Parameters:
operator - The operator to check
- Returns:
- true is a Value is required
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.