public class StringExpression extends Object implements Expression
StringExpression returns the current context object as a string.
| Constructor and Description |
|---|
StringExpression()
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(Context context)
Return the context bean as a string
|
static StringExpression |
getInstance()
Gets the singleton
|
String |
toString()
Returns something useful for logging.
|
void |
update(Context context,
String newValue)
Do nothing
|
public StringExpression()
public static StringExpression getInstance()
StringExpression instancepublic Object evaluate(Context context)
evaluate in interface Expressioncontext - evaluate expression against this contexttoString() representation of the context beanpublic void update(Context context, String newValue)
update in interface Expressioncontext - update this ContextnewValue - the new value for this expressionExpressionCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.