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

Object
  extended by BaseTypeConverter
      extended by DelegatingTypeConverter
All Implemented Interfaces:
TypeConverter

public final class DelegatingTypeConverter
extends BaseTypeConverter

Implementation of the TypeConverter interface that delegates to a TypeConverter implementation which doesn't extend BaseTypeConverter.


Constructor Summary
DelegatingTypeConverter(TypeConverter converter)
           
 
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

DelegatingTypeConverter

public DelegatingTypeConverter(TypeConverter converter)
Method Detail

convertToObject

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

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

convertToObject

public Object convertToObject(String value,
                              Locale locale)
Description copied from class: BaseTypeConverter
Convert the String to a type, optinally using the given locale.

Overrides:
convertToObject in class BaseTypeConverter