Class OperatorsOracle
- java.lang.Object
-
- org.kie.soup.project.datamodel.oracle.OperatorsOracle
-
public class OperatorsOracle extends Object
An Oracle for all things "operator" related
-
-
Field Summary
Fields Modifier and Type Field Description static String[]COLLECTION_CONNECTIVESstatic String[]COLLECTION_OPERATORSstatic String[]COMPARABLE_CONNECTIVESstatic String[]COMPARABLE_OPERATORSstatic String[]COMPLEX_CEP_CONNECTIVESstatic String[]COMPLEX_CEP_OPERATORSstatic String[]CONDITIONAL_ELEMENTSstatic String[]EXPLICIT_LIST_OPERATORSstatic String[]SIMPLE_CEP_CONNECTIVESstatic String[]SIMPLE_CEP_OPERATORSstatic String[]STANDARD_CONNECTIVESstatic String[]STANDARD_OPERATORSstatic String[]STRING_CONNECTIVESstatic String[]STRING_OPERATORSstatic String[]WINDOW_CEP_OPERATORS
-
Constructor Summary
Constructors Constructor Description OperatorsOracle()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisValueRequired(String operator)Operator "== null" and "!static booleanoperatorRequiresList(String operator)Check whether an operator requires a list of values (i.e. the operator is either "in" or "not in").
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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
-
-