Class LocaleConverter

java.lang.Object
org.nuiton.converter.LocaleConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter, NuitonConverter<Locale>

public class LocaleConverter extends Object implements NuitonConverter<Locale>
To convert Locale from and to String.
Since:
1.0
Author:
Tony Chemit - chemit@codelutin.com
  • Constructor Details

    • LocaleConverter

      public LocaleConverter()
  • Method Details

    • convert

      public <T> T convert(Class<T> aClass, Object value)
      Specified by:
      convert in interface org.apache.commons.beanutils.Converter
    • valueOf

      public Locale valueOf(String value)
    • isEnabled

      protected boolean isEnabled(Class<?> aClass)
    • getType

      public Class<Locale> getType()
      Specified by:
      getType in interface NuitonConverter<Locale>
      Returns:
      the main type of the converter.