org.apache.commons.betwixt.expression
Class ClassNameExpression

java.lang.Object
  extended by org.apache.commons.betwixt.expression.ClassNameExpression
All Implemented Interfaces:
Expression

public class ClassNameExpression
extends java.lang.Object
implements Expression

ClassNameExpression returns the current class name of the context bean

Since:
0.5
Author:
James Strachan

Constructor Summary
ClassNameExpression()
          Base constructor
 
Method Summary
 java.lang.Object evaluate(Context context)
          Evaluate on the current context and return the class name
 java.lang.String toString()
          Returns something useful for logging.
 void update(Context context, java.lang.String newValue)
          Do nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassNameExpression

public ClassNameExpression()
Base constructor

Method Detail

evaluate

public java.lang.Object evaluate(Context context)
Evaluate on the current context and return the class name

Specified by:
evaluate in interface Expression
Parameters:
context - the context against which this expression will be evaluated
Returns:
the name of the class of the current contex bean

update

public void update(Context context,
                   java.lang.String newValue)
Do nothing.

Specified by:
update in interface Expression
Parameters:
context - update this Context
newValue - the new value for this expression
See Also:
Expression

toString

public java.lang.String toString()
Returns something useful for logging.

Overrides:
toString in class java.lang.Object
Returns:
something useful for logging


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.