| java.lang.Object org.geotools.util.Converters
Converters | final public class Converters (Code) | | Convenience class for converting an object from one type to an object of another.
author: Justin Deoliveira, The Open Planning Project since: 2.4 |
convert | public static Object convert(Object source, Class target, Hints hints)(Code) | | Converts an object of a particular type into an object of a differnt type.
This method uses the
ConverterFactory extension point to find a converter capable
of performing the conversion. The first converter found is the one used. Using this class
there is no way to guarantee which converter will be used.
Parameters: source - The object to convert. Parameters: target - The type of the converted value. Parameters: hints - Any hints for the converter factory. The converted value as an instnace of target, or null if a converter could not be found. since: 2.4 |
getConverterFactories | public static synchronized Set getConverterFactories(Hints hints)(Code) | | Returns a set of all available implementations for the
ConverterFactory interface.
Parameters: hints - An optional map of hints, or null if none. Set of available ConverterFactory implementations. |
|
|