public class

DynaBeanExpression

extends Object
implements Expression
java.lang.Object
   ↳ org.apache.commons.betwixt.expression.DynaBeanExpression

Class Overview

An Expression that gets a property value from a DynaBean.

See Also
  • org.apache.commons.beanutils.DynaBean

Summary

Public Constructors
DynaBeanExpression()
Crates a new DynaBeanExpression.
DynaBeanExpression(String propertyName)
Crates a new DynaBeanExpression.
Public Methods
Object evaluate(Context context)
Returns the value of a DynaBean property from the bean stored in the Context.
String getPropertyName()
Gets the name of the property to get from the DynaBean.
void setPropertyName(String propertyName)
Sets the name of the property to get from the DynaBean.
void update(Context context, String newValue)
Do nothing.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.commons.betwixt.expression.Expression

Public Constructors

public DynaBeanExpression ()

Crates a new DynaBeanExpression.

public DynaBeanExpression (String propertyName)

Crates a new DynaBeanExpression.

Parameters
propertyName the name of the DynaBean property to use

Public Methods

public Object evaluate (Context context)

Returns the value of a DynaBean property from the bean stored in the Context. Returns null if no DynaBean is stored in the Context or if the propertyName has not been set.

Parameters
context the content containing the DynaBean
Returns
  • the DynaBean property value or null

public String getPropertyName ()

Gets the name of the property to get from the DynaBean.

Returns
  • the name of the property that this expression reads

public void setPropertyName (String propertyName)

Sets the name of the property to get from the DynaBean.

Parameters
propertyName the property that this expression reads, not null

public void update (Context context, String newValue)

Do nothing.

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