1 16 package org.apache.commons.betwixt.strategy; 17 18 import java.io.Serializable ; 19 20 import org.apache.commons.betwixt.expression.Context; 21 22 39 public class ObjectStringConverter implements Serializable { 40 41 52 public String objectToString(Object object, Class type, String flavour, Context context) { 53 if ( object != null ) { 54 return object.toString(); 55 } 56 return ""; 57 } 58 59 71 public Object stringToObject(String value, Class type, String flavour, Context context) { 72 return value; 73 } 74 } 75 | Popular Tags |