atg.scenario.expression
Interface Expression

All Known Subinterfaces:
MutableExpression

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

public interface Expression

A non-mutable expression.

See Also:
Expression

Field Summary
static java.lang.String CLASS_VERSION
          Deprecated. Class version string
 
Method Summary
 boolean canGetValue(ScenarioExecutionContext pContext)
          Deprecated. Returns true if the expression can be resolved in the given scenario execution context, false otherwise.
 java.lang.Object getValue(ScenarioExecutionContext pContext)
          Deprecated. Resolves the expression in the given scenario execution context, and returns the resulting value.
 

Field Detail

CLASS_VERSION

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

See Also:
Constant Field Values
Method Detail

canGetValue

boolean canGetValue(ScenarioExecutionContext pContext)
Deprecated. 
Returns true if the expression can be resolved in the given scenario execution context, false otherwise. Thus, false is returned if the context does not yet contain all of the information necessary to evaluate the expression - for example, if the expression refers to properties of the profile, and the context is missing the particular profile that the scenario is being executed on.

It's legal to call this method with a null argument; true will be returned if the context is not required at all to evaluate the expression.


getValue

java.lang.Object getValue(ScenarioExecutionContext pContext)
                          throws ScenarioException
Deprecated. 
Resolves the expression in the given scenario execution context, and returns the resulting value. For example, if the expression represents a profile property, it is resolved using the profile pointed to by the context. The context argument can be null if the value of the expression does not depend on the context.

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

Throws:
ScenarioException - if the expression could not be resolved