com.jscape.util.workflow
Class VariableExpression

java.lang.Object
  extended by com.jscape.util.workflow.VariableExpression
All Implemented Interfaces:
Expression

public final class VariableExpression
extends java.lang.Object
implements Expression

Variable expression.

Author:
Alex

Constructor Summary
VariableExpression()
          Creates a new expression instance.
VariableExpression(java.lang.String variableName)
          Creates a new expression instance.
 
Method Summary
 java.lang.Object compute(Context context)
          Computes expression value.
 java.lang.String getVariableName()
          Returns variable name.
 void setVariableName(java.lang.String value)
          Sets variable name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableExpression

public VariableExpression(java.lang.String variableName)
Creates a new expression instance.

Parameters:
variableName - the variable name

VariableExpression

public VariableExpression()
Creates a new expression instance.

Method Detail

getVariableName

public java.lang.String getVariableName()
Returns variable name.

Returns:
variable name

setVariableName

public void setVariableName(java.lang.String value)
Sets variable name.

Parameters:
value - the variable name

compute

public java.lang.Object compute(Context context)
Computes expression value.

Specified by:
compute in interface Expression
Parameters:
context - the workflow context
Returns:
computed value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 JSCAPE Corp. All Rights Reserved.