Package lumis.util.converter
Interface IConverter
-
- All Known Subinterfaces:
ISourceConverter
- All Known Implementing Classes:
AbstractConverter
,AbstractSourceConverter
,BooleanConverter
,CategorizationDataType.CategorizationConverter
,CollectionConverter
,ConverterDefaultParameterDecorator
,DateConverter
,DateTimeConverter
,DelegateToRegisteredConverter
,FileDataType.FileDataConverter
,FilesDataType.FilesDataConverter
,NumberConverter
,PageDataType.PageDataConverter
,PageOrPageTemplateDataType.PageOrPageTemplateDataConverter
,PageTemplateDataType.PageDataConverter
,ParentContentDataType.ParentContentDataConverter
,ResourcesDataType.ResourcesDataConverter
,RestConverter
,TimeConverter
,URLConverter
@StableMinor(version="14.2", sinceVersion="4.0") public interface IConverter
Converter interface defines the methods converters must implement.- Since:
- 4.0.4
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
convert(Class<T> type, Object value)
Converts the specified input object into an output object of the specified type.<T> T
convert(Class<T> type, Object value, Locale locale)
Converts the specified input object into an output object of the specified type.<T> T
convert(Class<T> type, Object value, Locale locale, String pattern)
Converts the specified input object into an output object of the specified type.
-
-
-
Method Detail
-
convert
<T> T convert(Class<T> type, Object value, Locale locale, String pattern)
Converts the specified input object into an output object of the specified type.- Type Parameters:
T
- generics support for the data type specified.- Parameters:
type
- data type to which the value should be converted.value
- the input value to be converted.locale
- locale to be used during conversion, if necessary.pattern
- converter specific conversion pattern, to be used during conversion, if necessary.- Since:
- 4.0.4
-
convert
<T> T convert(Class<T> type, Object value, Locale locale)
Converts the specified input object into an output object of the specified type.- Type Parameters:
T
- generics support for the data type specified.- Parameters:
type
- data type to which the value should be converted.value
- the input value to be converted.locale
- locale to be used during conversion- Since:
- 4.0.4
-
convert
<T> T convert(Class<T> type, Object value)
Converts the specified input object into an output object of the specified type.- Type Parameters:
T
- generics support for the data type specified.- Parameters:
type
- data type to which the value should be converted.value
- the input value to be converted.- Since:
- 4.0.4
-
-