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, PageOrPageTemplateDataType.PageOrPageTemplateDataConverter, PageTemplateDataType.PageDataConverter, ParentContentDataType.ParentContentDataConverter, ResourcesDataType.ResourcesDataConverter, RestConverter, TimeConverter

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

Converter interface defines the methods converters must implement.

Since:
4.0.4

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


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