br.com.caelum.iogi.conversion
Class TypeConverter<T>

java.lang.Object
  extended by br.com.caelum.iogi.conversion.TypeConverter<T>
All Implemented Interfaces:
Instantiator<T>
Direct Known Subclasses:
BigDecimalConverter, BigIntegerConverter, BooleanPrimitiveConverter, BooleanWrapperConverter, BytePrimitiveConverter, ByteWrapperConverter, CharacterPrimitiveConverter, CharacterWrapperConverter, DoublePrimitiveConverter, DoubleWrapperConverter, EnumConverter, FallbackConverter, FloatPrimitiveConverter, FloatWrapperConverter, IntegerPrimitiveConverter, IntegerWrapperConverter, LocaleBasedCalendarConverter, LongPrimitiveConverter, LongWrapperConverter, ShortPrimitiveConverter, ShortWrapperConverter, StringConverter

public abstract class TypeConverter<T>
extends Object
implements Instantiator<T>


Constructor Summary
TypeConverter()
           
 
Method Summary
protected abstract  T convert(String stringValue, Target<?> to)
           
 T instantiate(Target<?> target, Parameters parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface br.com.caelum.iogi.Instantiator
isAbleToInstantiate
 

Constructor Detail

TypeConverter

public TypeConverter()
Method Detail

convert

protected abstract T convert(String stringValue,
                             Target<?> to)
                      throws Exception
Throws:
Exception

instantiate

public final T instantiate(Target<?> target,
                           Parameters parameters)
Specified by:
instantiate in interface Instantiator<T>


Copyright © 2014. All Rights Reserved.