Class CEPOracle
- java.lang.Object
-
- org.kie.workbench.common.widgets.client.datamodel.CEPOracle
-
public class CEPOracle extends Object
An Oracle for all things "CEP" related
-
-
Constructor Summary
Constructors Constructor Description CEPOracle()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Integer>getCEPOperatorParameterSets(String operator)Get the parameter sets for the given CEP Operator (simple, or connective) e.g.static List<String>getCEPWindowOperators()Return a list of operators applicable to CEP windowsstatic booleanisCEPOperator(String operator)Check whether an operator is a CEP operatorstatic booleanisCEPWindowOperator(String operator)Check whether an operator is a CEP 'window' operatorstatic booleanisCEPWindowOperatorLength(String operator)Check if the operator is 'window over:length'static booleanisCEPWindowOperatorTime(String operator)Check if the operator is 'window over:time'
-
-
-
Method Detail
-
isCEPOperator
public static boolean isCEPOperator(String operator)
Check whether an operator is a CEP operator- Parameters:
operator-- Returns:
- True if the operator is a CEP operator
-
getCEPOperatorParameterSets
public static List<Integer> getCEPOperatorParameterSets(String operator)
Get the parameter sets for the given CEP Operator (simple, or connective) e.g. CEP operator "during" requires 0, 1, 2 or 4 parameters so the returned list contains 0, 1, 2 and 4.- Parameters:
operator-- Returns:
-
getCEPWindowOperators
public static List<String> getCEPWindowOperators()
Return a list of operators applicable to CEP windows- Returns:
-
isCEPWindowOperator
public static boolean isCEPWindowOperator(String operator)
Check whether an operator is a CEP 'window' operator- Parameters:
operator-- Returns:
- True if the operator is a CEP 'window' operator
-
isCEPWindowOperatorTime
public static boolean isCEPWindowOperatorTime(String operator)
Check if the operator is 'window over:time'- Parameters:
operator-- Returns:
- if
-
isCEPWindowOperatorLength
public static boolean isCEPWindowOperatorLength(String operator)
Check if the operator is 'window over:length'- Parameters:
operator-- Returns:
- if
-
-