Package com.evolveum.midpoint.prism.util
Class JavaTypeConverter
java.lang.Object
com.evolveum.midpoint.prism.util.JavaTypeConverter
Generic universal type converter. It is supposed to covert anything to anything as long
as there is any way to convert it. This means converting string containing a decimal representation
of a number to int, PolyString to string, etc. This is supposed to work in a fashion similar to
many scripting languages (e.g. perl) where the programmer does not really care about the type
and the type conversion is done automatically.
TODO clean this up as it is now part of prism-api!
- Author:
- Radovan Semancik
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JavaTypeConverter
public JavaTypeConverter()
-
-
Method Details
-
convert
-
convert
-
isTypeCompliant
public static <T> boolean isTypeCompliant(@Nullable T value, @Nullable @Nullable Class<?> expectedClass)
-