org.xwiki.properties
Interface ConverterManager

All Known Implementing Classes:
DefaultConverterManager

@ComponentRole
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
Version:
$Id$

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

Method Detail

convert

<T> T convert(java.lang.reflect.Type targetType,
              java.lang.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


Copyright © 2004-2011 XWiki. All Rights Reserved.