org.apache.commons.betwixt.expression
Interface Expression

All Known Implementing Classes:
ClassNameExpression, ConstantExpression, DynaBeanExpression, EmptyExpression, IteratorExpression, MethodExpression, StringExpression, VariableExpression

public interface Expression

Expression represents an arbitrary expression on a bean.

Author:
James Strachan

Method Summary
 java.lang.Object evaluate(Context context)
          Evaluates the expression on the bean with the given context and returns the result
 void update(Context context, java.lang.String newValue)
          Deprecated. 0.5 use Updater instead
 

Method Detail

evaluate

java.lang.Object evaluate(Context context)
Evaluates the expression on the bean with the given context and returns the result

Parameters:
context - evaluate against this Context
Returns:
the value of the expression

update

void update(Context context,
            java.lang.String newValue)
Deprecated. 0.5 use Updater instead

Updates the current bean context with a new String value. This is typically used when parsing XML and updating a beans value from XML.

Parameters:
context - update this Context
newValue - the new value for this expression


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.