1 16 package org.apache.commons.betwixt.expression; 17 18 19 25 public class ClassNameExpression implements Expression { 26 27 28 public ClassNameExpression() { 29 } 30 31 37 public Object evaluate(Context context) { 38 Object bean = context.getBean(); 39 if ( bean != null ) { 40 return bean.getClass().getName(); 41 } 42 return null; 43 } 44 45 49 public void update(Context context, String newValue) { 50 } 52 53 57 public String toString() { 58 return "ClassNameExpression"; 59 } 60 } 61 | Popular Tags |