|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LocalizedConverter<S,T>
Localized converter interface. Classes implement this interface to convert one object type to another. Methods are provided to localize the conversion.
| Method Summary | |
|---|---|
T |
convert(java.lang.Class<? extends T> targetClass,
S obj,
java.util.Locale locale,
java.util.TimeZone timeZone)
Converts obj to T. |
T |
convert(java.lang.Class<? extends T> targetClass,
S obj,
java.util.Locale locale,
java.util.TimeZone timeZone,
java.lang.String formatString)
Converts obj to T. |
T |
convert(S obj,
java.util.Locale locale,
java.util.TimeZone timeZone)
Converts obj to T. |
T |
convert(S obj,
java.util.Locale locale,
java.util.TimeZone timeZone,
java.lang.String formatString)
Converts obj to T. |
| Methods inherited from interface org.ofbiz.base.conversion.Converter |
|---|
canConvert, convert, convert, getSourceClass, getTargetClass |
| Method Detail |
|---|
T convert(S obj,
java.util.Locale locale,
java.util.TimeZone timeZone)
throws ConversionException
obj to T.
obj - The source Object to convertlocale - The locale used for conversion - must not be nulltimeZone - The time zone used for conversion - must not be null
Object
ConversionException
T convert(java.lang.Class<? extends T> targetClass,
S obj,
java.util.Locale locale,
java.util.TimeZone timeZone)
throws ConversionException
obj to T.
targetClass - The Class to convert toobj - The source Object to convertlocale - The locale used for conversion - must not be nulltimeZone - The time zone used for conversion - must not be null
Object
ConversionException
T convert(S obj,
java.util.Locale locale,
java.util.TimeZone timeZone,
java.lang.String formatString)
throws ConversionException
obj to T.
obj - The source Object to convertlocale - The locale used for conversion - must not be nulltimeZone - The time zone used for conversion - must not be nullformatString - Optional formatting string
Object
ConversionException
T convert(java.lang.Class<? extends T> targetClass,
S obj,
java.util.Locale locale,
java.util.TimeZone timeZone,
java.lang.String formatString)
throws ConversionException
obj to T.
targetClass - The Class to convert toobj - The source Object to convertlocale - The locale used for conversion - must not be nulltimeZone - The time zone used for conversion - must not be nullformatString - Optional formatting string
Object
ConversionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||