|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.betwixt.expression.DynaBeanExpression
public class DynaBeanExpression
An Expression that gets a property value from a DynaBean.
DynaBean
Constructor Summary | |
---|---|
DynaBeanExpression()
Crates a new DynaBeanExpression. |
|
DynaBeanExpression(java.lang.String propertyName)
Crates a new DynaBeanExpression. |
Method Summary | |
---|---|
java.lang.Object |
evaluate(Context context)
Returns the value of a DynaBean property from the bean stored in the Context. |
java.lang.String |
getPropertyName()
Gets the name of the property to get from the DynaBean. |
void |
setPropertyName(java.lang.String propertyName)
Sets the name of the property to get from the DynaBean. |
void |
update(Context context,
java.lang.String newValue)
Do nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynaBeanExpression()
public DynaBeanExpression(java.lang.String propertyName)
propertyName
- the name of the DynaBean property to useMethod Detail |
---|
public java.lang.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 DynaBean
null
public void update(Context context, java.lang.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 java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
propertyName
- the property that this expression reads, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |