br.com.caelum.iogi.conversion
Class LocaleBasedCalendarConverter

java.lang.Object
  extended by br.com.caelum.iogi.conversion.TypeConverter<Calendar>
      extended by br.com.caelum.iogi.conversion.LocaleBasedCalendarConverter
All Implemented Interfaces:
Instantiator<Calendar>

public class LocaleBasedCalendarConverter
extends TypeConverter<Calendar>


Constructor Summary
LocaleBasedCalendarConverter(LocaleProvider localeProvider)
           
 
Method Summary
protected  Calendar convert(String stringValue, Target<?> to)
           
 boolean isAbleToInstantiate(Target<?> target)
           
 
Methods inherited from class br.com.caelum.iogi.conversion.TypeConverter
instantiate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleBasedCalendarConverter

public LocaleBasedCalendarConverter(LocaleProvider localeProvider)
Method Detail

isAbleToInstantiate

public boolean isAbleToInstantiate(Target<?> target)

convert

protected Calendar convert(String stringValue,
                           Target<?> to)
                    throws ParseException
Specified by:
convert in class TypeConverter<Calendar>
Throws:
ParseException


Copyright © 2014. All Rights Reserved.