atg.scenario.expression
Interface MutableExpression

All Superinterfaces:
Expression

Deprecated. This class has been deprecated in favour of atg.process.expression.MutableExpression

public interface MutableExpression
extends Expression

An Expression that can be modified.

See Also:
MutableExpression

Field Summary
static java.lang.String CLASS_VERSION
          Deprecated. Class version string
static int OPERATOR_ADD
          Deprecated.  
static int OPERATOR_APPEND
          Deprecated.  
static int OPERATOR_APPEND_ALL
          Deprecated.  
static int OPERATOR_APPEND_ONCE
          Deprecated.  
static int OPERATOR_ASSIGN
          Deprecated.  
static int OPERATOR_SUBTRACT
          Deprecated.  
 
Method Summary
 void modifyValue(ScenarioExecutionContext pContext, int pOperator, java.lang.Object pModifierValue)
          Deprecated. Modifies the data pointed to by the expression, using the given scenario execution context to resolve the pointer.
 
Methods inherited from interface atg.scenario.expression.Expression
canGetValue, getValue
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
Deprecated. 
Class version string

See Also:
Constant Field Values

OPERATOR_ASSIGN

static final int OPERATOR_ASSIGN
Deprecated. 
See Also:
Constant Field Values

OPERATOR_APPEND

static final int OPERATOR_APPEND
Deprecated. 
See Also:
Constant Field Values

OPERATOR_APPEND_ONCE

static final int OPERATOR_APPEND_ONCE
Deprecated. 
See Also:
Constant Field Values

OPERATOR_APPEND_ALL

static final int OPERATOR_APPEND_ALL
Deprecated. 
See Also:
Constant Field Values

OPERATOR_ADD

static final int OPERATOR_ADD
Deprecated. 
See Also:
Constant Field Values

OPERATOR_SUBTRACT

static final int OPERATOR_SUBTRACT
Deprecated. 
See Also:
Constant Field Values
Method Detail

modifyValue

void modifyValue(ScenarioExecutionContext pContext,
                 int pOperator,
                 java.lang.Object pModifierValue)
                 throws ScenarioException
Deprecated. 
Modifies the data pointed to by the expression, using the given scenario execution context to resolve the pointer. For example, if the expression represents a profile property, that property is modified in the profile pointed to by the context.

This method should be called only if the scenario execution context is known to contain all the information necessary to resolve and modify the expression (in other words, if Expression.canGetValue returns true).

Parameters:
pOperator - one of OPERATOR_ASSIGN, OPERATOR_APPEND, OPERATOR_APPEND_ONCE, OPERATOR_APPEND_ALL, OPERATOR_ADD, and OPERATOR_SUBTRACT; OPERATOR_APPEND, OPERATOR_APPEND_ONCE, and OPERATOR_APPEND_ALL should only be used if the expression evaluates to an array/List/Set; OPERATOR_ADD and OPERATOR_SUBTRACT should only be used if the expression evaluates to a Number
pModifierValue - the value used to modify the current value, according to the given operator; the type of the value should be compatible with the type of the evaluated expression and the operator
Throws:
ScenarioException - if the expression could not be resolved, or the value could not be modified, for example because the given operator or modifier value is invalid for this expression