org.xwiki.properties
Interface ConverterManager

All Known Implementing Classes:
DefaultConverterManager

@Role
public interface ConverterManager

Simple API to do universal conversion between two types.

To add support for another target type, implements a new Converter component

Since:
2.0M2

Method Summary
<T> T
convert(Type targetType, Object sourceValue)
          Convert provided value into the provided target type.
 

Method Detail

convert

<T> T convert(Type targetType,
              Object sourceValue)
Convert provided value into the provided target type.

Type Parameters:
T - the type in which the provided value has to be converted
Parameters:
targetType - the type in which the provided value has to be converted
sourceValue - the value to convert
Returns:
the converted value
Since:
3.0M1