/************************************************************************************** * Copyright (C) 2008 EsperTech, Inc. All rights reserved. * * http://esper.codehaus.org * * http://www.espertech.com * * ---------------------------------------------------------------------------------- * * The software in this package is published under the terms of the GPL license * * a copy of which has been included with this distribution in the license.txt file. * **************************************************************************************/ package com.espertech.esper.epl.spec; import com.espertech.esper.epl.expression.ExprNode; import com.espertech.esper.util.MetaDefItem; import java.io.Serializable; /** * Descriptor for an on-set assignment. */ public class OnTriggerSetAssignment implements MetaDefItem, Serializable { private String variableName; private ExprNode expression; private static final long serialVersionUID = -3672553372059354285L; /** * Ctor. * @param variableName variable name * @param expression expression providing new variable value */ public OnTriggerSetAssignment(String variableName, ExprNode expression) { this.variableName = variableName; this.expression = expression; } /** * Returns the variable name * @return variable name */ public String getVariableName() { return variableName; } /** * Returns the expression providing the new variable value, or null if none * @return assignment expression */ public ExprNode getExpression() { return expression; } /** * Sets the expression providing the new variable value * @param expression assignment expression, or null if none */ public void setExpression(ExprNode expression) { this.expression = expression; } }