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="17.0", sinceVersion="4.0") public interface IConverter
Converter interface defines the methods converters must implement.- Since:
- 4.0.4
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
convert(java.lang.Class<T> type, java.lang.Object value)
Converts the specified input object into an output object of the specified type.<T> T
convert(java.lang.Class<T> type, java.lang.Object value, java.util.Locale locale)
Converts the specified input object into an output object of the specified type.<T> T
convert(java.lang.Class<T> type, java.lang.Object value, java.util.Locale locale, java.lang.String pattern)
Converts the specified input object into an output object of the specified type.
-
-
-
Method Detail
-
convert
<T> T convert(java.lang.Class<T> type, java.lang.Object value, java.util.Locale locale, java.lang.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(java.lang.Class<T> type, java.lang.Object value, java.util.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(java.lang.Class<T> type, java.lang.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
-
-