org.apache.commons.betwixt.expression
Class StringExpression
java.lang.Object
|
+--org.apache.commons.betwixt.expression.StringExpression
- All Implemented Interfaces:
- Expression
- public class StringExpression
- extends java.lang.Object
- implements Expression
StringExpression
returns the current context object as a string.
- Version:
- $Revision: 155402 $
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringExpression
public StringExpression()
- Base constructor. Should this be private?
getInstance
public static StringExpression getInstance()
- Gets the singleton
- Returns:
- the singleton
StringExpression
instance
evaluate
public java.lang.Object evaluate(Context context)
- Return the context bean as a string
- Specified by:
evaluate
in interface Expression
- Parameters:
context
- evaluate expression against this context- Returns:
- the
toString()
representation of the context bean
update
public void update(Context context,
java.lang.String newValue)
- Do nothing
- Specified by:
update
in interface Expression
- See Also:
Expression
toString
public java.lang.String toString()
- Returns something useful for logging.
- Overrides:
toString
in class java.lang.Object
- Returns:
- the (short) class name
Copyright © 2002-2005 The Apache Software Foundation. All Rights Reserved.