2.17.2: 2011-06-17

net.sf.basedb.util.extensions.debug
Class StringConverter

java.lang.Object
  extended by net.sf.basedb.util.extensions.debug.StringConverter

public class StringConverter
extends Object

Convert strings to other data types. This class is experimental only and may change in the future.

Version:
2.7
Author:
nicklas
Last modified
$Date: 2008-09-11 22:08:14 +0200 (Thu, 11 Sep 2008) $

Field Summary
private static Map<Class,StringConverter> converter
           
private  Object defaultValue
           
private  Type type
           
 
Constructor Summary
private StringConverter(Type type, Object defaultValue)
           
 
Method Summary
private  Object convert(String value)
           
static Object convertString(Class toClass, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

converter

private static Map<Class,StringConverter> converter

type

private final Type type

defaultValue

private final Object defaultValue
Constructor Detail

StringConverter

private StringConverter(Type type,
                        Object defaultValue)
Method Detail

convertString

public static Object convertString(Class toClass,
                                   String value)

convert

private Object convert(String value)

2.17.2: 2011-06-17