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.

Version:
$Revision: 1.6.2.1 $
Author:
James Strachan

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

Method Detail

evaluate

public java.lang.Object evaluate(org.apache.commons.betwixt.expression.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

public void update(org.apache.commons.betwixt.expression.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-2004 The Apache Software Foundation. All Rights Reserved.