lumis.util.converter
Interface IConverter

Package class diagram package IConverter
All Known Subinterfaces:
ISourceConverter
All Known Implementing Classes:
AbstractConverter, AbstractSourceConverter, BooleanConverter, CollectionConverter, ConverterDefaultParameterDecorator, DateConverter, DateTimeConverter, DelegateToRegisteredConverter, FileDataType.FileDataConverter, FilesDataType.FilesDataConverter, NumberConverter, PageDataType.PageDataConverter, ResourcesDataType.ResourcesDataConverter, TimeConverter

@StableMinor(version="4.1",
             sinceVersion="4.0")
public interface IConverter

Converter interface defines the methods converters must implement.

Since:
4.0.4

Method Summary
<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


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.