org.mvel2
public class DataConversion extends java.lang.Object
ConversionHandler
Constructor and Description |
---|
DataConversion() |
Modifier and Type | Method and Description |
---|---|
static void |
addConversionHandler(java.lang.Class type,
ConversionHandler handler)
Register a new
ConversionHandler with the factory. |
static boolean |
canConvert(java.lang.Class toType,
java.lang.Class convertFrom) |
static <T> T |
convert(java.lang.Object in,
java.lang.Class<T> toType) |
public static boolean canConvert(java.lang.Class toType, java.lang.Class convertFrom)
public static <T> T convert(java.lang.Object in, java.lang.Class<T> toType)
public static void addConversionHandler(java.lang.Class type, ConversionHandler handler)
ConversionHandler
with the factory.type
- - Target type represented by the conversion handler.handler
- - An instance of the handler.Copyright © 2014. All Rights Reserved.