Class DataFlowParameterValidation
java.lang.Object
com.espertech.esper.common.client.dataflow.util.DataFlowParameterValidation
Utility for validation data flow forge parameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.espertech.esper.common.internal.epl.expression.core.ExprNode
validate
(String name, com.espertech.esper.common.internal.epl.expression.core.ExprNode expr, EventType eventType, Class expectedReturnType, com.espertech.esper.common.internal.epl.dataflow.interfaces.DataFlowOpForgeInitializeContext context) Validate the provided expression.static com.espertech.esper.common.internal.epl.expression.core.ExprNode
validate
(String name, com.espertech.esper.common.internal.epl.expression.core.ExprNode expr, Class expectedReturnType, com.espertech.esper.common.internal.epl.dataflow.interfaces.DataFlowOpForgeInitializeContext context) Validate the provided expression.
-
Constructor Details
-
DataFlowParameterValidation
public DataFlowParameterValidation()
-
-
Method Details
-
validate
public static com.espertech.esper.common.internal.epl.expression.core.ExprNode validate(String name, com.espertech.esper.common.internal.epl.expression.core.ExprNode expr, Class expectedReturnType, com.espertech.esper.common.internal.epl.dataflow.interfaces.DataFlowOpForgeInitializeContext context) throws com.espertech.esper.common.internal.epl.expression.core.ExprValidationException Validate the provided expression.- Parameters:
name
- parameter nameexpr
- expressionexpectedReturnType
- expected result typecontext
- forge initialization context- Returns:
- validated expression node
- Throws:
com.espertech.esper.common.internal.epl.expression.core.ExprValidationException
- when validation failed
-
validate
public static com.espertech.esper.common.internal.epl.expression.core.ExprNode validate(String name, com.espertech.esper.common.internal.epl.expression.core.ExprNode expr, EventType eventType, Class expectedReturnType, com.espertech.esper.common.internal.epl.dataflow.interfaces.DataFlowOpForgeInitializeContext context) throws com.espertech.esper.common.internal.epl.expression.core.ExprValidationException Validate the provided expression.- Parameters:
name
- parameter nameeventType
- event typeexpr
- expressionexpectedReturnType
- expected result typecontext
- forge initialization context- Returns:
- validated expression node
- Throws:
com.espertech.esper.common.internal.epl.expression.core.ExprValidationException
- when validation failed
-