net.smartlab.web.bean
Class Converter

java.lang.Object
  extended by net.smartlab.web.bean.Converter
Direct Known Subclasses:
BooleanConverter, CharConverter, CollectionConverter, CurrencyConverter, DateConverter, DateTimeConverter, EnumerationConverter, NumberConverter, StringConverter, StringEnumerationConverter, TimeConverter, URLConverter

public abstract class Converter
extends java.lang.Object

TODO Documentation

Author:
gperrone, rlogiacco

Constructor Summary
Converter()
           
 
Method Summary
abstract  java.lang.Object convert(java.lang.Class type, java.lang.Object value, java.util.Locale locale)
          TODO documentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

convert

public abstract java.lang.Object convert(java.lang.Class type,
                                         java.lang.Object value,
                                         java.util.Locale locale)
                                  throws ConversionException
TODO documentation

Parameters:
type - the target type
value - the value to be converted
locale - the locale to be used for the conversion
Returns:
an instance of the specified type which represents the converted input value
Throws:
ConversionException - if something wrong occurs during conversion or if the conversion couldn't be performed


Copyright © 2004-2009 The SmartWeb Team. All Rights Reserved.