org.apache.beehive.netui.util.type
Class BaseTypeConverter

Object
  extended by BaseTypeConverter
All Implemented Interfaces:
TypeConverter
Direct Known Subclasses:
DelegatingTypeConverter

public class BaseTypeConverter
extends Object
implements TypeConverter

Default implementation of the TypeConverter interface.


Constructor Summary
BaseTypeConverter()
           
 
Method Summary
 Object convertToObject(String value)
          Convert the String to a type.
 Object convertToObject(String value, Locale locale)
          Convert the String to a type, optinally using the given locale.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTypeConverter

public BaseTypeConverter()
Method Detail

convertToObject

public Object convertToObject(String value)
Convert the String to a type. The base implementation delegates to the convertToObject(java.lang.String, java.util.Locale) method with null for the locale.

Specified by:
convertToObject in interface TypeConverter
Parameters:
value - the String value to convert
Returns:
the converted object

convertToObject

public Object convertToObject(String value,
                              Locale locale)
Convert the String to a type, optinally using the given locale.