org.springframework.webflow.engine.support
Class AttributeExpression

java.lang.Object
  extended by org.springframework.webflow.engine.support.AttributeExpression
All Implemented Interfaces:
org.springframework.binding.expression.Expression, org.springframework.binding.expression.SettableExpression

public class AttributeExpression
extends java.lang.Object
implements org.springframework.binding.expression.SettableExpression

Expression evaluator that can evalute attribute maps and supported request context scope types.

Author:
Keith Donald, Erwin Vervaet
See Also:
RequestContext, AttributeMap

Constructor Summary
AttributeExpression(org.springframework.binding.expression.Expression expression)
          Create a new expression evaluator that executes given expression in an attribute map.
AttributeExpression(org.springframework.binding.expression.Expression expression, ScopeType scopeType)
          Create a new expression evaluator that executes given expression in the specified scope.
 
Method Summary
 java.lang.Object evaluate(java.lang.Object target, org.springframework.binding.expression.EvaluationContext context)
           
 void evaluateToSet(java.lang.Object target, java.lang.Object value, org.springframework.binding.expression.EvaluationContext context)
           
protected  org.springframework.binding.expression.Expression getExpression()
          Returns the expression that will be evaluated.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeExpression

public AttributeExpression(org.springframework.binding.expression.Expression expression)
Create a new expression evaluator that executes given expression in an attribute map. When using this wrapper to set a property value, make sure the given expression is a SettableExpression}.

Parameters:
expression - the nested evaluator to execute

AttributeExpression

public AttributeExpression(org.springframework.binding.expression.Expression expression,
                           ScopeType scopeType)
Create a new expression evaluator that executes given expression in the specified scope. When using this wrapper to set a property value, make sure the given expression is a SettableExpression}.

Parameters:
expression - the nested evaluator to execute
scopeType - the scopeType
Method Detail

getExpression

protected org.springframework.binding.expression.Expression getExpression()
Returns the expression that will be evaluated.


evaluate

public java.lang.Object evaluate(java.lang.Object target,
                                 org.springframework.binding.expression.EvaluationContext context)
                          throws org.springframework.binding.expression.EvaluationException
Specified by:
evaluate in interface org.springframework.binding.expression.Expression
Throws:
org.springframework.binding.expression.EvaluationException

evaluateToSet

public void evaluateToSet(java.lang.Object target,
                          java.lang.Object value,
                          org.springframework.binding.expression.EvaluationContext context)
                   throws org.springframework.binding.expression.EvaluationException
Specified by:
evaluateToSet in interface org.springframework.binding.expression.SettableExpression
Throws:
org.springframework.binding.expression.EvaluationException

toString

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


Copyright © 2004-2007. All Rights Reserved.