public class DynaBeanExpression extends Object implements Expression
DynaBean
Constructor and Description |
---|
DynaBeanExpression()
Crates a new DynaBeanExpression.
|
DynaBeanExpression(String propertyName)
Crates a new DynaBeanExpression.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public DynaBeanExpression()
public DynaBeanExpression(String propertyName)
propertyName
- the name of the DynaBean property to usepublic Object evaluate(Context context)
null
if no DynaBean is stored
in the Context or if the propertyName has not been set.evaluate
in interface Expression
context
- the content containing the DynaBeannull
public void update(Context context, String newValue)
update
in interface Expression
context
- update this Context
newValue
- the new value for this expressionExpression.update(org.apache.commons.betwixt.expression.Context, java.lang.String)
public String getPropertyName()
public void setPropertyName(String propertyName)
propertyName
- the property that this expression reads, not nullCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.