Package org.apache.ofbiz.base.conversion
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 Summary
ModifierConstructorDescriptionprotected
GenericLocalizedConverter
(Class<S> sourceClass, Class<T> targetClass) -
Method Summary
Methods inherited from class org.apache.ofbiz.base.conversion.AbstractLocalizedConverter
convert, convert
Methods inherited from class org.apache.ofbiz.base.conversion.AbstractConverter
canConvert, convert, getSourceClass, getTargetClass, loadConverters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.ofbiz.base.conversion.Converter
canConvert, convert, getSourceClass, getTargetClass
Methods inherited from interface org.apache.ofbiz.base.conversion.LocalizedConverter
convert
-
Constructor Details
-
GenericLocalizedConverter
-
-
Method Details
-
convert
Description copied from interface:Converter
Convertsobj
toT
.- Parameters:
obj
- The sourceObject
to convert- Returns:
- The converted
Object
- Throws:
ConversionException
-
convert
Description copied from interface:LocalizedConverter
Convertsobj
toT
.- Parameters:
obj
- The sourceObject
to convertlocale
- The locale used for conversion - must not benull
timeZone
- The time zone used for conversion - must not benull
- Returns:
- The converted
Object
- Throws:
ConversionException
-