Class DateTimeConverters.GenericLocalizedConverter<S,T>

java.lang.Object
org.apache.ofbiz.base.conversion.AbstractConverter<S,T>
org.apache.ofbiz.base.conversion.AbstractLocalizedConverter<S,T>
org.apache.ofbiz.base.conversion.DateTimeConverters.GenericLocalizedConverter<S,T>
All Implemented Interfaces:
Converter<S,T>, ConverterLoader, LocalizedConverter<S,T>
Direct Known Subclasses:
DateTimeConverters.DateToCalendar, DateTimeConverters.DateToString, DateTimeConverters.SqlDateToString, DateTimeConverters.SqlTimeToString, DateTimeConverters.StringToDate, DateTimeConverters.StringToSqlDate, DateTimeConverters.StringToSqlTime, DateTimeConverters.StringToTimestamp, DateTimeConverters.TimestampToString
Enclosing class:
DateTimeConverters

public abstract static class DateTimeConverters.GenericLocalizedConverter<S,T> extends AbstractLocalizedConverter<S,T>
  • Constructor Details

    • GenericLocalizedConverter

      protected GenericLocalizedConverter(Class<S> sourceClass, Class<T> targetClass)
  • Method Details

    • convert

      public T convert(S obj) throws ConversionException
      Description copied from interface: Converter
      Converts obj to T.
      Parameters:
      obj - The source Object to convert
      Returns:
      The converted Object
      Throws:
      ConversionException
    • convert

      public T convert(S obj, Locale locale, TimeZone timeZone) throws ConversionException
      Description copied from interface: LocalizedConverter
      Converts obj to T.
      Parameters:
      obj - The source Object to convert
      locale - The locale used for conversion - must not be null
      timeZone - The time zone used for conversion - must not be null
      Returns:
      The converted Object
      Throws:
      ConversionException